summaryrefslogtreecommitdiff
path: root/manifests/centos.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-09 03:34:29 +0200
committermh <mh@immerda.ch>2011-10-09 03:34:29 +0200
commitb11bb5a891e96fafa01a431db8e168a41948b88a (patch)
tree1a148919fde533dc6f392e89d934f486bf99451b /manifests/centos.pp
parent1165548443657760ff71cb753c84f6c8b94d9b28 (diff)
migrate to new file_line type
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r--manifests/centos.pp14
1 files changed, 9 insertions, 5 deletions
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,