module-nginx/manifests/package.pp

41 lines
896 B
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': }
2011-06-06 17:04:24 +02:00
case $operatingsystem {
centos,fedora,rhel: {
2011-06-21 21:03:47 +02:00
class { 'nginx::package::redhat':
require => Anchor['nginx::package::begin'],
before => Anchor['nginx::package::end'],
}
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
}
}