Ask Your Question
0

How can I use a profile to include a class defined in hiera without getting dup class errors?

asked 2016-12-20 16:14:11 -0600

kritch gravatar image

I want to use a profile to call a class that is already defined in a higher level in hiera and provide different data to that class. When I call the class in my profile puppet complains that the class is already defined. Is there anything I can do to avoid the dup definition? I want to leave the current implementation in place for other servers not included in this profile.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-12-21 12:14:47 -0600

lupin gravatar image

Create a role add the profile(that include) the class to that role and assign the role to that specific server. If you're using Hiera set the class data on the highest level of hierarchy, specific to the node.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-12-20 16:14:11 -0600

Seen: 33 times

Last updated: Dec 21 '16