use stdlib file_line instead of deprecated line from common module
This commit is contained in:
parent
316dedeb14
commit
06a63a98fc
1 changed files with 7 additions and 7 deletions
|
@ -27,11 +27,11 @@
|
||||||
# }
|
# }
|
||||||
|
|
||||||
define postfix::smtp_auth ($user, $password, $ensure=present) {
|
define postfix::smtp_auth ($user, $password, $ensure=present) {
|
||||||
line { $name:
|
file_line { $name:
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
file => '/etc/postfix/smtp_auth',
|
path => '/etc/postfix/smtp_auth',
|
||||||
line => "${name} ${user}:${password}",
|
line => "${name} ${user}:${password}",
|
||||||
notify => Exec['generate /etc/postfix/smtp_auth.db'],
|
notify => Exec['generate /etc/postfix/smtp_auth.db'],
|
||||||
require => Package['postfix'],
|
require => Package['postfix'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue