module-postfix/manifests/definitions/hash.pp
2008-12-03 17:53:28 +01:00

19 lines
436 B
Puppet

define postfix-ng::hash ($ensure) {
file {"${name}":
ensure => $ensure,
mode => 600,
}
file {"${name}.db":
ensure => $ensure,
mode => 600,
require => [File["${name}"], Exec["generate ${name}.db"]],
}
exec {"generate ${name}.db":
command => "postmap ${name}",
#creates => "${name}.db", # this prevents postmap from being run !
subscribe => File["${name}"],
refreshonly => true
}
}