diff options
author | mh <mh@immerda.ch> | 2010-08-31 18:07:38 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-08-31 18:07:38 +0200 |
commit | 24ae8925a5142aba0d2973fbfb361e9a8f593cbc (patch) | |
tree | e9dd2b18fb57be7db8b6c2101de7369cdba11e89 | |
parent | 7288c660738696af2b9200e7f9e3da8e7ee5709b (diff) |
manage sysconfig
-rw-r--r-- | files/sysconfig/dovecot.sysconfig | 7 | ||||
-rw-r--r-- | manifests/centos.pp | 11 | ||||
-rw-r--r-- | manifests/init.pp | 5 |
3 files changed, 22 insertions, 1 deletions
diff --git a/files/sysconfig/dovecot.sysconfig b/files/sysconfig/dovecot.sysconfig new file mode 100644 index 0000000..f1b9039 --- /dev/null +++ b/files/sysconfig/dovecot.sysconfig @@ -0,0 +1,7 @@ +# Here you can specify your dovecot command line options. +# +#OPTIONS="" +# +# If you want to set a certain ulimit for the dovecot process +# set the following variable to that ulimit +#DOVECOT_ULIMIT=1024 diff --git a/manifests/centos.pp b/manifests/centos.pp new file mode 100644 index 0000000..66de86a --- /dev/null +++ b/manifests/centos.pp @@ -0,0 +1,11 @@ +class dovecot::centos inherits dovecot::base { + file{'/etc/sysconfig/dovecot': + source => [ "puppet:///modules/site-dovecot/sysconfig/${fqdn}/dovecot", + "puppet:///modules/site-dovecot/sysconfig/${dovecot_type}/dovecot", + "puppet:///modules/site-dovecot/sysconfig/dovecot", + "puppet:///modules/dovecot/sysconfig/dovecot" ], + require => Package['dovecot'], + notify => Service['dovecot'], + owner => root, group => mail, mode => 0640; + } +} diff --git a/manifests/init.pp b/manifests/init.pp index f0f4b29..6c9093d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,7 +4,10 @@ # we take rpms from fedora class dovecot { - include dovecot::base + case $operatingsystem { + centos: { include dovecot::centos } + default: { include dovecot::base } + } if $dovecot_sql_sqlite or $dovecot_sql_pgsql or $dovecot_sql_mysql { include dovecot::sql |