diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-02-20 17:06:47 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-02-20 17:06:47 -0500 |
commit | 6e051c3b8567c78ce029b1fac514dbd6975effa0 (patch) | |
tree | c03aa0677ebe21c6b53a3c6df27d4534f36281b1 | |
parent | 6afd9a84eed3789936f693b1e9acfc56d521971d (diff) | |
download | puppet-postfix-6e051c3b8567c78ce029b1fac514dbd6975effa0.tar.gz puppet-postfix-6e051c3b8567c78ce029b1fac514dbd6975effa0.tar.bz2 |
convert to file resources to stdlib's file_line
-rw-r--r-- | manifests/transport.pp | 4 | ||||
-rw-r--r-- | manifests/virtual.pp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/manifests/transport.pp b/manifests/transport.pp index 90c5468..bab9574 100644 --- a/manifests/transport.pp +++ b/manifests/transport.pp @@ -34,9 +34,9 @@ Example usage: */ define postfix::transport ($ensure="present", $destination) { - line {"${name} ${destination}": + file_line {"${name} ${destination}": ensure => $ensure, - file => "/etc/postfix/transport", + path => "/etc/postfix/transport", line => "${name} ${destination}", notify => Exec["generate /etc/postfix/transport.db"], require => Package["postfix"], diff --git a/manifests/virtual.pp b/manifests/virtual.pp index d6912a4..4a434d2 100644 --- a/manifests/virtual.pp +++ b/manifests/virtual.pp @@ -34,9 +34,9 @@ Example usage: */ define postfix::virtual ($ensure="present", $destination) { - line {"${name} ${destination}": + file_line {"${name} ${destination}": ensure => $ensure, - file => "/etc/postfix/virtual", + path => "/etc/postfix/virtual", line => "${name} ${destination}", notify => Exec["generate /etc/postfix/virtual.db"], require => Package["postfix"], |