2011-05-24 20:25:51 +02:00
|
|
|
# Class: stdlib::stages
|
|
|
|
#
|
|
|
|
# This class manages a standard set of Run Stages for Puppet.
|
|
|
|
#
|
|
|
|
# The high level stages are (In order):
|
|
|
|
#
|
|
|
|
# * setup
|
2011-05-26 19:21:42 +02:00
|
|
|
# * main
|
2011-05-24 20:25:51 +02:00
|
|
|
# * runtime
|
|
|
|
# * setup_infra
|
|
|
|
# * deploy_infra
|
|
|
|
# * setup_app
|
|
|
|
# * deploy_app
|
2011-05-26 19:21:42 +02:00
|
|
|
# * deploy
|
2011-05-24 20:25:51 +02:00
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
#
|
|
|
|
# Declares various run-stages for deploying infrastructure,
|
|
|
|
# language runtimes, and application layers.
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
|
|
|
# node default {
|
|
|
|
# include stdlib::stages
|
|
|
|
# class { java: stage => 'runtime' }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
class stdlib::stages {
|
|
|
|
|
2011-05-26 19:21:42 +02:00
|
|
|
stage { 'setup': before => Stage['main'] }
|
|
|
|
stage { 'runtime': require => Stage['main'] }
|
|
|
|
-> stage { 'setup_infra': }
|
|
|
|
-> stage { 'deploy_infra': }
|
|
|
|
-> stage { 'setup_app': }
|
|
|
|
-> stage { 'deploy_app': }
|
|
|
|
-> stage { 'deploy': }
|
2011-05-24 20:25:51 +02:00
|
|
|
|
|
|
|
}
|