17430b7507
In anticipation of puppet 4, start trying to deal with puppet 4 things that can be helpfully predicted by puppet lint plugins. Also fix errors caught by the puppet-lint-unquoted_string-check and puppet-lint-absolute_classname-check gems. Change-Id: I9d74d25d2f2c95ec52a6db3bf070903240e1b933
39 lines
649 B
Puppet
39 lines
649 B
Puppet
# Class: httpd
|
|
#
|
|
# This class installs Apache
|
|
#
|
|
# Parameters:
|
|
#
|
|
# Actions:
|
|
# - Install Apache
|
|
# - Manage Apache service
|
|
#
|
|
# Requires:
|
|
#
|
|
# Sample Usage:
|
|
#
|
|
class httpd {
|
|
include ::httpd::params
|
|
|
|
package { 'httpd':
|
|
ensure => installed,
|
|
name => $httpd::params::apache_name,
|
|
}
|
|
|
|
service { 'httpd':
|
|
ensure => running,
|
|
name => $httpd::params::apache_name,
|
|
enable => true,
|
|
subscribe => Package['httpd'],
|
|
}
|
|
|
|
file { 'httpd_vdir':
|
|
ensure => directory,
|
|
path => $httpd::params::vdir,
|
|
recurse => true,
|
|
purge => true,
|
|
notify => Service['httpd'],
|
|
require => Package['httpd'],
|
|
}
|
|
}
|