puppet-httpd/manifests/init.pp
William Van Hevelingen 05fcec5f9c (#13073) Add missing puppet spec tests
This commit adds full puppet spec coverage
for all classes and defines.
2012-03-16 00:38:53 -07:00

37 lines
648 B
Puppet

# Class: apache
#
# This class installs Apache
#
# Parameters:
#
# Actions:
# - Install Apache
# - Manage Apache service
#
# Requires:
#
# Sample Usage:
#
class apache {
include apache::params
package { 'httpd':
name => $apache::params::apache_name,
ensure => installed,
}
service { 'httpd':
name => $apache::params::apache_name,
ensure => running,
enable => true,
subscribe => Package['httpd'],
}
file { "httpd_vdir":
name => $apache::params::vdir,
ensure => directory,
recurse => true,
purge => true,
notify => Service['httpd'],
require => Package['httpd'],
}
}