Sha256: 7829bb651cf591d3c46ed77ba20f1af2a3c41c606bdcadb07a879e0e89098607

Contents?: true

Size: 1.56 KB

Versions: 20

Compression:

Stored size: 1.56 KB

Contents

# Class: nginx::package
#
# This module manages NGINX package installation
#
# Parameters:
#
# There are no default parameters for this class.
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
# This class file is not called directly
class nginx::package {
  anchor { 'nginx::package::begin': }
  anchor { 'nginx::package::end': }

  case $::osfamily {
    'redhat': {
      class { 'nginx::package::redhat':
        require => Anchor['nginx::package::begin'],
        before  => Anchor['nginx::package::end'],
      }
    }
    'debian': {
      class { 'nginx::package::debian':
        require => Anchor['nginx::package::begin'],
        before  => Anchor['nginx::package::end'],
      }
    }
    'suse': {
      class { 'nginx::package::suse':
        require => Anchor['nginx::package::begin'],
        before  => Anchor['nginx::package::end'],
      }
    }
    default: {
      case $::operatingsystem {
        'amazon': {
          # Amazon was added to osfamily RedHat in 1.7.2
          # https://github.com/puppetlabs/facter/commit/c12d3b6c557df695a7b2b009da099f6a93c7bd31#lib/facter/osfamily.rb
          warning("Module ${module_name} support for ${::operatingsystem} with facter < 1.7.2 is deprecated")
          warning("Please upgrade from facter ${::facterversion} to >= 1.7.2")
          class { 'nginx::package::redhat':
            require => Anchor['nginx::package::begin'],
            before  => Anchor['nginx::package::end'],
          }
        }
        default: {
          fail("Module ${module_name} is not supported on ${::operatingsystem}")
        }
      }
    }
  }
}

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/nginx/manifests/package.pp
freighthop-0.6.0 modules/nginx/manifests/package.pp
freighthop-0.5.2 modules/nginx/manifests/package.pp
freighthop-0.5.1 modules/nginx/manifests/package.pp
freighthop-0.5.0 modules/nginx/manifests/package.pp
freighthop-0.4.1 modules/nginx/manifests/package.pp
freighthop-0.4.0 modules/nginx/manifests/package.pp
freighthop-0.3.3 modules/nginx/manifests/package.pp
freighthop-0.3.2 modules/nginx/manifests/package.pp
freighthop-0.3.1 modules/nginx/manifests/package.pp
freighthop-0.3.0 modules/nginx/manifests/package.pp
freighthop-0.2.1 modules/nginx/manifests/package.pp
freighthop-0.2.0 modules/nginx/manifests/package.pp
freighthop-0.1.0 modules/nginx/manifests/package.pp
freighthop-0.0.6 modules/nginx/manifests/package.pp
freighthop-0.0.5 modules/nginx/manifests/package.pp
freighthop-0.0.4 modules/nginx/manifests/package.pp
freighthop-0.0.3 modules/nginx/manifests/package.pp
freighthop-0.0.2 modules/nginx/manifests/package.pp
freighthop-0.0.1 modules/nginx/manifests/package.pp