Created
June 4, 2013 06:25
-
-
Save antoncohen/5703974 to your computer and use it in GitHub Desktop.
init.pp for the role class
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
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