puppet-httpd/manifests/init.pp
Eric Shamow 42c636341f Changes to match style guide and pass puppet-lint without error
No substantive behavior changes - only spacing, line alignment,
quotation, etc.
2012-04-20 21:07:54 -07:00

39 lines
653 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':
ensure => installed,
name => $apache::params::apache_name,
}
service { 'httpd':
ensure => running,
name => $apache::params::apache_name,
enable => true,
subscribe => Package['httpd'],
}
file { 'httpd_vdir':
ensure => directory,
path => $apache::params::vdir,
recurse => true,
purge => true,
notify => Service['httpd'],
require => Package['httpd'],
}
}