system-config/modules/exim/manifests/init.pp
James E. Blair 70ea88cd03 Fix exim depends.
Handles "Could not perform immediate configuration on 'exim4-daemon-light'".

Change-Id: I49049071af2f5f323ef90485252d825351367522
Reviewed-on: https://review.openstack.org/353
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2011-08-30 19:24:40 +00:00

37 lines
770 B
Puppet

class exim() {
package { 'exim4-base':
ensure => present;
}
package { 'exim4-config':
ensure => present;
}
package { 'exim4-daemon-light':
ensure => present,
require => [Package[exim4-base], Package[exim4-config]],
}
service { 'exim4':
ensure => running,
hasrestart => true,
subscribe => File['/etc/exim4/exim4.conf'],
}
file { '/etc/exim4/exim4.conf':
owner => 'root',
group => 'root',
mode => 444,
ensure => 'present',
source => 'puppet:///modules/exim/exim4.conf',
replace => 'true',
}
file { '/etc/aliases':
owner => 'root',
group => 'root',
mode => 444,
ensure => 'present',
source => 'puppet:///modules/exim/aliases',
replace => 'true',
}
}