puppet-httpd/manifests/init.pp
Clark Boylan 1609bb6a44 Fix leading :: on class includes to make linter happy
Why this needed to be a linter rule I do not know.

Change-Id: I27ba74c6060c9d2ad09b52bc38090ff9c1f83721
2020-03-05 09:14:07 -08:00

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'],
}
}