2011-06-07 01:05:27 +02:00
|
|
|
# Class: nginx::package
|
|
|
|
#
|
|
|
|
# This module manages NGINX package installation
|
|
|
|
#
|
|
|
|
# Parameters:
|
2011-06-15 21:40:42 +02:00
|
|
|
#
|
|
|
|
# There are no default parameters for this class.
|
2011-06-07 01:05:27 +02:00
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
|
|
|
# This class file is not called directly
|
2011-06-02 21:49:39 +02:00
|
|
|
class nginx::package {
|
2011-06-21 21:03:47 +02:00
|
|
|
anchor { 'nginx::package::begin': }
|
|
|
|
anchor { 'nginx::package::end': }
|
|
|
|
|
2011-12-13 20:45:31 +01:00
|
|
|
case $::operatingsystem {
|
2012-12-11 00:58:58 +01:00
|
|
|
centos,fedora,rhel,redhat,scientific: {
|
2011-06-21 21:03:47 +02:00
|
|
|
class { 'nginx::package::redhat':
|
|
|
|
require => Anchor['nginx::package::begin'],
|
|
|
|
before => Anchor['nginx::package::end'],
|
|
|
|
}
|
2013-01-22 19:07:16 +01:00
|
|
|
}
|
2013-01-22 18:09:51 +01:00
|
|
|
amazon: {
|
|
|
|
class { 'nginx::package::amazon':
|
|
|
|
require => Anchor['nginx::package::begin'],
|
|
|
|
before => Anchor['nginx::package::end'],
|
|
|
|
}
|
2013-01-22 19:07:16 +01:00
|
|
|
}
|
2011-06-06 17:04:24 +02:00
|
|
|
debian,ubuntu: {
|
2011-06-21 21:03:47 +02:00
|
|
|
class { 'nginx::package::debian':
|
|
|
|
require => Anchor['nginx::package::begin'],
|
|
|
|
before => Anchor['nginx::package::end'],
|
|
|
|
}
|
2011-06-07 00:25:04 +02:00
|
|
|
}
|
|
|
|
opensuse,suse: {
|
2011-06-21 21:03:47 +02:00
|
|
|
class { 'nginx::package::suse':
|
|
|
|
require => Anchor['nginx::package::begin'],
|
|
|
|
before => Anchor['nginx::package::end'],
|
|
|
|
}
|
2011-06-07 00:25:04 +02:00
|
|
|
}
|
2011-06-06 17:04:24 +02:00
|
|
|
}
|
2011-06-15 21:40:42 +02:00
|
|
|
}
|