Created
October 5, 2014 22:00
-
-
Save gsarjeant/3451b5589c6cc5193b1f to your computer and use it in GitHub Desktop.
Puppet default node definition that incorporates server_role if specified
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node default { | |
if $::server_role { | |
include $::server_role | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If site.pp defines the default node as above, then all nodes can incorporate their server role by setting a fact called server_role. This can be useful if you don't want to use the PE console for node classification and also don't want to use an ENC.