Commit graph

7 commits

Author SHA1 Message Date
Garrett Honeycutt
dc9b81d87e Use absolute class name in example 2015-11-06 12:19:21 -05:00
Ewoud Kohl van Wijngaarden
c7403a4e05 Style fixes 2015-07-25 13:34:31 +02:00
Chris Barker
cf499315c1 uses include type class declaration
previous behavior used class { 'stdlib::stages':} which isn't singleton and could cause duplication resource declaration on the stages class.

Since many community modules work by calling 'include stdlib' we should make stdlib's include of stages singleton as well.
2015-04-20 10:06:00 -07:00
nfagerlund
fa2fde6635 Docs: Update documentation of stdlib classes
This commit edits the puppetdoc text of the stdlib and stdlib::stages classes
to remove redundancy and add additional information.
2011-08-18 12:39:04 -07:00
Jeff McCune
6e9e838a0e Move stages to after main
Working with the stages in stdlib, I quickly ran into an issue where
most of the stages were before the main stage.  This made it difficult
to declare any resources in a traditional "include" style class while
hiding the end user from the stages being associated with other module
classes.

For example, in class mcollective, a package would be declared in main.
However, if mcollective declared class mcollective::service in stage
infra_deploy and this was before main, there would be a dependency loop
between the package and the service.

There appears to be a convention around "chain your stages after main"
to avoid the need to create relatively empty shell classes.
2011-05-26 10:21:42 -07:00
Jeff McCune
6f8b78cc67 Add standard set of run stages.
Many modules I'm working on need a standard but
relatively granular location in the catalog.  For example,
any module that configures the packaging system should
run "early"

Add the following stages which have inter-dependencies
in the top to bottom order listed:

 * setup
 * deploy
 * runtime
 * setup_infra
 * deploy_infra
 * main
 * setup_app
 * deploy_app
2011-05-24 11:25:51 -07:00
Jeff McCune
6e9d0465bc Initial commit 2011-05-24 11:06:30 -07:00