Commit 5fd1e26a authored by mh's avatar mh
Browse files

refactor stuff into different files

parent dd346ec9
class imapproxy::base {
package { up-imapproxy:
ensure => present,
}
file{'/etc/imapproxy.conf':
source => [ "puppet://$server/files/imapproxy/${fqdn}/imapproxy.conf",
"puppet://$server/files/imapproxy/imapproxy.conf",
"puppet://$server/imapproxy/imapproxy.conf" ],
require => Package[up-imapproxy],
notify => Service[imapproxy],
owner => root, group => 0, mode => 0644;
}
service {'imapproxy':
ensure => running,
enable => true,
}
}
class imapproxy::gentoo inherits imapproxy::base {
Package[up-imapproxy]{
category => 'net-mail',
}
}
......@@ -3,42 +3,13 @@
# GPLv3
#
# modules_dir { "imapproxy": }
class imapproxy {
case $operatingsystem {
gentoo: { include imapproxy::gentoo }
default: { include imapproxy::base }
}
# if $selinux {
# include imapproxy::selinux
# }
}
class imapproxy::base {
package { up-imapproxy:
ensure => present,
}
file{'/etc/imapproxy.conf':
source => [ "puppet://$server/files/imapproxy/${fqdn}/imapproxy.conf",
"puppet://$server/files/imapproxy/imapproxy.conf",
"puppet://$server/imapproxy/imapproxy.conf" ],
require => Package[up-imapproxy],
notify => Service[imapproxy],
owner => root, group => 0, mode => 0644;
}
service {'imapproxy':
ensure => running,
enable => true,
}
}
class imapproxy::gentoo inherits imapproxy::base {
Package[up-imapproxy]{
category => 'net-mail',
if $use_shorewall {
include shorewall::imap::client
}
}
# manifests/selinux.pp
class imapproxy::selinux {
case $operatingsystem {
gentoo: { include imapproxy::selinux::gentoo }
}
}
class imapproxy::selinux::gentoo {
selinux::module {"squid_immerda":}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment