module-nginx/manifests/package.pp

47 lines
1.1 KiB
ObjectPascal
Raw Normal View History

2011-06-07 01:05:27 +02:00
# Class: nginx::package
#
# This module manages NGINX package installation
#
# Parameters:
#
# 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': }
case $::operatingsystem {
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
}
}