Add support for FreeBSD package installation
This commit is contained in:
parent
622c3906e2
commit
f2a36f7a2f
3 changed files with 20 additions and 1 deletions
|
@ -65,6 +65,14 @@ class nginx::package(
|
||||||
before => Anchor['nginx::package::end'],
|
before => Anchor['nginx::package::end'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
'FreeBSD': {
|
||||||
|
class { 'nginx::package::freebsd':
|
||||||
|
package_name => $package_name,
|
||||||
|
package_ensure => $package_ensure,
|
||||||
|
require => Anchor['nginx::package::begin'],
|
||||||
|
before => Anchor['nginx::package::end'],
|
||||||
|
}
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
'amazon': {
|
'amazon': {
|
||||||
|
|
12
manifests/package/freebsd.pp
Normal file
12
manifests/package/freebsd.pp
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Class: nginx::package::freebsd
|
||||||
|
#
|
||||||
|
# Manage the nginx package on FreeBSD
|
||||||
|
class nginx::package::freebsd (
|
||||||
|
$package_name = 'nginx',
|
||||||
|
$package_ensure = 'present'
|
||||||
|
) {
|
||||||
|
|
||||||
|
package { $package_name:
|
||||||
|
ensure => $package_ensure,
|
||||||
|
}
|
||||||
|
}
|
|
@ -140,7 +140,6 @@ class nginx::params {
|
||||||
$nx_http_access_log = "${nx_logdir}/access.log"
|
$nx_http_access_log = "${nx_logdir}/access.log"
|
||||||
|
|
||||||
# package name depends on distribution, e.g. for Debian nginx-full | nginx-light
|
# package name depends on distribution, e.g. for Debian nginx-full | nginx-light
|
||||||
|
|
||||||
$package_name = 'nginx'
|
$package_name = 'nginx'
|
||||||
$package_ensure = 'present'
|
$package_ensure = 'present'
|
||||||
$package_source = 'nginx'
|
$package_source = 'nginx'
|
||||||
|
|
Loading…
Reference in a new issue