Skip to content

Instantly share code, notes, and snippets.

@antoncohen
Created June 4, 2013 06:25
Show Gist options
  • Save antoncohen/5703974 to your computer and use it in GitHub Desktop.
Save antoncohen/5703974 to your computer and use it in GitHub Desktop.
init.pp for the role class
class role {
include stdlib
$roles = hiera_array('roles')
# Require base first in case it is needed by other classes
if member($roles, 'role::base') {
require role::base
}
include $roles
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment