|
|
class httpd {
package { httpd:
ensure => installed,
tag => httpd
}
service { httpd:
ensure => running,
enable => true,
hasrestart => true,
hasstatus => true,
require => Package['httpd'],
tag => httpd
}
configfile { '/etc/httpd/virtualhost.d':
recurse => true,
source => "httpd/$fqdn/virtualhosts",
require => Package['httpd'],
owner => "root",
group => "root",
purge => true,
tag => httpd,
notify => Service['httpd']
}
configfile { '/etc/httpd/conf/httpd.conf':
source => "httpd/$fqdn/httpd.conf",
require => Package['httpd'],
owner => "root",
group => "root",
tag => httpd,
notify => Service['httpd']
}
}
|