From 433a3eb900a092fe514bbb60a8cb0d2f49d4a473 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 23 Nov 2011 00:14:30 +0100 Subject: there is another Listen example already commented out --- manifests/centos.pp | 4 ++-- manifests/centos/itk_plus.pp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/centos.pp b/manifests/centos.pp index 95d06ce..6bb9ed8 100644 --- a/manifests/centos.pp +++ b/manifests/centos.pp @@ -46,8 +46,8 @@ class apache::centos inherits apache::package { require => Package['apache'], notify => Service['apache']; 'adjust_listen': - command => 'sed -i "s/^#Listen \(.*\)/Listen \1/g" /etc/httpd/conf/httpd.conf', - unless => "grep -qE '^Listen ' /etc/httpd/conf/httpd.conf", + command => 'sed -i "s/^#Listen 80/Listen 80/g" /etc/httpd/conf/httpd.conf', + unless => "grep -qE '^Listen 80' /etc/httpd/conf/httpd.conf", require => Package['apache'], notify => Service['apache']; } diff --git a/manifests/centos/itk_plus.pp b/manifests/centos/itk_plus.pp index 9bcd8ca..bab2409 100644 --- a/manifests/centos/itk_plus.pp +++ b/manifests/centos/itk_plus.pp @@ -5,8 +5,8 @@ class apache::centos::itk_plus inherits apache::centos::itk { unless => "grep -qE '^#PidFile ' /etc/httpd/conf/httpd.conf", } Exec['adjust_listen']{ - command => "sed -i 's/^Listen \(.*\)/#Listen \1/g' /etc/httpd/conf/httpd.conf", - unless => "grep -qE '^#Listen ' /etc/httpd/conf/httpd.conf", + command => "sed -i 's/^Listen 80/#Listen 80/g' /etc/httpd/conf/httpd.conf", + unless => "grep -qE '^#Listen 80' /etc/httpd/conf/httpd.conf", } Apache::Config::Global['00-listen.conf']{ -- cgit v1.2.3