aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-20 17:06:47 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-20 17:06:47 -0500
commit6e051c3b8567c78ce029b1fac514dbd6975effa0 (patch)
treec03aa0677ebe21c6b53a3c6df27d4534f36281b1
parent6afd9a84eed3789936f693b1e9acfc56d521971d (diff)
downloadpuppet-postfix-6e051c3b8567c78ce029b1fac514dbd6975effa0.tar.gz
puppet-postfix-6e051c3b8567c78ce029b1fac514dbd6975effa0.tar.bz2
convert to file resources to stdlib's file_line
-rw-r--r--manifests/transport.pp4
-rw-r--r--manifests/virtual.pp4
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"],