module-nginx/manifests/init.pp

57 lines
1.2 KiB
ObjectPascal
Raw Normal View History

2011-06-07 01:05:27 +02:00
# Class: nginx
#
# This module manages NGINX.
#
# Parameters:
#
2011-06-07 01:05:27 +02:00
# There are no default parameters for this class. All module parameters are managed
# via the nginx::params class
#
# Actions:
#
# Requires:
2011-06-21 21:03:47 +02:00
# puppetlabs-stdlib - https://github.com/puppetlabs/puppetlabs-stdlib
#
2011-06-07 01:05:27 +02:00
# Packaged NGINX
# - RHEL: EPEL or custom package
# - Debian/Ubuntu: Default Install or custom package
# - SuSE: Default Install or custom package
#
# stdlib
# - puppetlabs-stdlib module >= 0.1.6
# - plugin sync enabled to obtain the anchor type
#
2011-06-07 01:05:27 +02:00
# Sample Usage:
#
# The module works with sensible defaults:
#
# node default {
# include nginx
# }
2011-05-25 04:20:48 +02:00
class nginx {
include stdlib
class { 'nginx::package':
2011-06-21 21:03:47 +02:00
notify => Class['nginx::service'],
}
2011-06-21 21:03:47 +02:00
class { 'nginx::config':
require => Class['nginx::package'],
notify => Class['nginx::service'],
}
2011-06-21 21:03:47 +02:00
class { 'nginx::service': }
# Allow the end user to establish relationships to the "main" class
# and preserve the relationship to the implementation classes through
# a transitive relationship to the composite class.
anchor{ 'nginx::begin':
before => Class['nginx::package'],
notify => Class['nginx::service'],
}
2011-06-21 21:03:47 +02:00
anchor { 'nginx::end':
require => Class['nginx::service'],
}
2011-05-25 04:20:48 +02:00
}