1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'manifests/install.pp', line 1
class apache::install {
case $::osfamily {
RedHat: {
$http_package = 'httpd'
}
Debian: {
$http_package = 'apache2'
}
Linux: {
case $::operatingsystem {
Amazon: {
$http_package = 'httpd'
}
default: {
fail("${::hostname}: This module does not support operatingsystem ${::operatingsystem}")
}
}
}
default: {
fail("${::hostname}: This module does not support osfamily ${::osfamily}")
}
}
package { $http_package:
ensure => installed,
alias => 'httpd'
}
}
|