summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/disable/debian.pp6
-rw-r--r--manifests/transport.pp4
-rw-r--r--manifests/virtual.pp4
3 files changed, 9 insertions, 5 deletions
diff --git a/manifests/disable/debian.pp b/manifests/disable/debian.pp
index dc48578..213efc5 100644
--- a/manifests/disable/debian.pp
+++ b/manifests/disable/debian.pp
@@ -1,5 +1,9 @@
# debian has some issues with absent
-# init scripts
+# init scripts.
+# It's a bug in debian's provider that should be fixed in puppet, but in the
+# meantime we need this hack.
+#
+# see: https://projects.puppetlabs.com/issues/9381
class postfix::disable::debian inherits postfix::disable::base {
Service['postfix']{
hasstatus => false,
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"],