use stdlib file_line instead of deprecated line from common module

This commit is contained in:
varac 2015-03-05 09:09:00 +01:00
parent 316dedeb14
commit 06a63a98fc

View file

@ -27,11 +27,11 @@
# }
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'],
}
}