Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiera_include an role in different hiera levels #77

Open
MAXxATTAXx opened this issue Mar 21, 2016 · 1 comment
Open

hiera_include an role in different hiera levels #77

MAXxATTAXx opened this issue Mar 21, 2016 · 1 comment

Comments

@MAXxATTAXx
Copy link

Hi,
I was wondering, since this repo is using hiera_include in order to classify a node with it respective role and following the recomendation in a role-profile architecture for "one role-one node", what would be the solution when one defines a role for a node in the nodeSpecific hierarchy level, but there are already other role defined in the typeSpecific hierarchy level. This will cause hiera to apply more than one role to the node. This is an issue i'm facing right now. Currently looking for a way to mimic hiera_include that would do priority lookup but this is a long shot for me. Any suggestion?

Hierarchy:
-nodeSpecific
-typeSpecific
-common

@rnelson0
Copy link
Contributor

It's really up to you if you adhere to the one role, one node guideline, and if you do, it's also your job to make sure you don't assign it in two places. To that extent, I only assign roles in the puppet_role hierarchy in this repo.

It's also worth noting that it is a guideline and one you should only follow if it makes sense for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants