diff options
author | Michael Scherer <misc@mageia.org> | 2010-10-27 10:36:01 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-10-27 10:36:01 +0000 |
commit | e2e6aafa49ee93783a115874b76189ecc6867b58 (patch) | |
tree | f5fcc45ac049cdeaa7628465951bc536ab8a66f4 /modules/postfix/manifests | |
parent | 26c4a4bc4547ef5436d04397553b5dbf23a815cc (diff) | |
download | puppet-e2e6aafa49ee93783a115874b76189ecc6867b58.tar puppet-e2e6aafa49ee93783a115874b76189ecc6867b58.tar.gz puppet-e2e6aafa49ee93783a115874b76189ecc6867b58.tar.bz2 puppet-e2e6aafa49ee93783a115874b76189ecc6867b58.tar.xz puppet-e2e6aafa49ee93783a115874b76189ecc6867b58.zip |
- add a postfix module
Diffstat (limited to 'modules/postfix/manifests')
-rw-r--r-- | modules/postfix/manifests/init.pp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/modules/postfix/manifests/init.pp b/modules/postfix/manifests/init.pp new file mode 100644 index 00000000..7a1df0a0 --- /dev/null +++ b/modules/postfix/manifests/init.pp @@ -0,0 +1,39 @@ +class postfix { + # some trick to manage daemon directory, who is arch dependent on mdv + $usr_lib = $architecture ? { + x86_64 => "lib64", + default => "lib" + } + + $path_daemon_directory = "/usr/$usr_lib/postfix/" + + + class postfix_base { + package { postfix: + ensure => installed + } + + service { postfix: + ensure => running, + subscribe => [ Package['postfix']], + path => "/etc/init.d/postfix" + } + } + + file { '/etc/postfix/main.cf': + ensure => present, + owner => root, + group => root, + mode => 644, + require => Package["postfix"], + content => "", + notify => [Service['postfix']] + } + + + class postfix_simple_relay inherits postfix_base { + file { '/etc/postfix/main.cf': + content => template("postfix/simple_relay_main.conf"), + } + } +} |