1609bb6a44
Why this needed to be a linter rule I do not know. Change-Id: I27ba74c6060c9d2ad09b52bc38090ff9c1f83721
39 lines
647 B
Puppet
39 lines
647 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'],
|
|
}
|
|
}
|