]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
use stdlib file_line instead of deprecated line from common module
authorvarac <varacanero@zeromail.org>
Thu, 5 Mar 2015 08:09:00 +0000 (09:09 +0100)
committervarac <varacanero@zeromail.org>
Thu, 5 Mar 2015 08:09:00 +0000 (09:09 +0100)
manifests/smtp_auth.pp

index ae6a9a5eaf49c553683f277a7804a7b84ee3f797..845a38ba1eb55c9b5d67f650a05f2475cefbae73 100644 (file)
 #  }
 
 define postfix::smtp_auth ($user, $password, $ensure=present) {
-  line { $name:
-    ensure  => $ensure,
-    file    => '/etc/postfix/smtp_auth',
-    line    => "${name} ${user}:${password}",
-    notify  => Exec['generate /etc/postfix/smtp_auth.db'],
-    require => Package['postfix'],
-  }
+  file_line { $name:
+      ensure  => $ensure,
+      path    => '/etc/postfix/smtp_auth',
+      line    => "${name} ${user}:${password}",
+      notify  => Exec['generate /etc/postfix/smtp_auth.db'],
+      require => Package['postfix'],
+    }
 }