convert to file resources to stdlib's file_line

This commit is contained in:
Jerome Charaoui 2015-02-20 17:06:47 -05:00
parent 6afd9a84ee
commit 6e051c3b85
2 changed files with 4 additions and 4 deletions

View file

@ -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"],

View file

@ -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"],