Skip to content

Instantly share code, notes, and snippets.

@gsarjeant
Created October 5, 2014 22:00
Show Gist options
  • Save gsarjeant/3451b5589c6cc5193b1f to your computer and use it in GitHub Desktop.
Save gsarjeant/3451b5589c6cc5193b1f to your computer and use it in GitHub Desktop.
Puppet default node definition that incorporates server_role if specified
node default {
if $::server_role {
include $::server_role
}
}
@gsarjeant
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment