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) {
|
||||
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'],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue