From 25c6405b88d4e1f2463706dd926c7e1f803e284e Mon Sep 17 00:00:00 2001 From: duritong Date: Sun, 17 May 2009 15:54:10 +0200 Subject: manage the sysconfig file on centos --- manifests/init.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 90a84a0..3a5d4bf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -138,6 +138,16 @@ class apache::centos inherits apache::package { path => '/var/www/html/index.html', } + file{'/etc/sysconfig/httpd': + source => [ "puppet://$server/files/apache/sysconfig/${fqdn}/httpd", + "puppet://$server/files/apache/sysconfig/httpd", + "puppet://$server/apache/sysconfig/${operatingsystem}/httpd", + "puppet://$server/apache/sysconfig/httpd" ], + require => Package['apache'], + notify => Service['apache'], + owner => root, group => 0, mode => 0644; + } + apache::config::file{ 'welcome.conf': } apache::config::file{ 'vhosts.conf': } } -- cgit v1.2.3