convert to file resources to stdlib's file_line
This commit is contained in:
parent
6afd9a84ee
commit
6e051c3b85
2 changed files with 4 additions and 4 deletions
|
@ -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"],
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue