29c3c8519c
find . -type f -exec perl -pi -e 's/postfix-ng/postfix/' {} \;
21 lines
497 B
Puppet
21 lines
497 B
Puppet
define postfix::hash ($ensure) {
|
|
file {"${name}":
|
|
ensure => $ensure,
|
|
mode => 600,
|
|
seltype => "postfix_etc_t",
|
|
}
|
|
|
|
file {"${name}.db":
|
|
ensure => $ensure,
|
|
mode => 600,
|
|
require => [File["${name}"], Exec["generate ${name}.db"]],
|
|
seltype => "postfix_etc_t",
|
|
}
|
|
|
|
exec {"generate ${name}.db":
|
|
command => "postmap ${name}",
|
|
#creates => "${name}.db", # this prevents postmap from being run !
|
|
subscribe => File["${name}"],
|
|
refreshonly => true
|
|
}
|
|
}
|