From b11bb5a891e96fafa01a431db8e168a41948b88a Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 9 Oct 2011 03:34:29 +0200 Subject: migrate to new file_line type --- manifests/centos.pp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'manifests/centos.pp') diff --git a/manifests/centos.pp b/manifests/centos.pp index e8a413d..b3af7f6 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -38,13 +38,17 @@ class apache::centos inherits apache::package { owner => root, group => 0, mode => 0644; } - line{ + file_line{ 'pidfile_httpd.conf': - file => '/etc/httpd/conf/httpd.conf', - line => 'PidFile run/httpd.pid'; + path => '/etc/httpd/conf/httpd.conf', + line => 'PidFile run/httpd.pid', + require => Package['apache'], + notify=> Package['apache']; 'listen_httpd.conf': - file => '/etc/httpd/conf/httpd.conf', - line => 'Listen 80'; + path => '/etc/httpd/conf/httpd.conf', + line => 'Listen 80', + require => Package['apache'], + notify=> Package['apache']; } apache::config::global{'00-listen.conf': ensure => absent, -- cgit v1.2.3