Ask Your Question

What's the easiest way to apply a class to all nodes

asked 2016-09-29 10:41:19 -0600

kartikv gravatar image

I believe it is creating a all nodes nodegroup in PE console and then adding the class to it. The second way is through mcollective. The third is hiera.yaml, common

But are there any other methods to accomplish this.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-09-29 12:46:43 -0600

lupin gravatar image

You can use the site.pp and add a default node definition with all class included on it , but that's not really a good practice. Docs here for your reference.

edit flag offensive delete link more

answered 2016-09-29 14:17:03 -0600

DarylW gravatar image

If you are looking to do this permanently, not just in a one-off ad-hoc way, the way that I do it is with the roles and profiles pattern. We have a 'base' profile that is included in all of our roles (our roles all inherit the base role class, which contains any profiles that we wish to put on every 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


Asked: 2016-09-29 10:41:19 -0600

Seen: 65 times

Last updated: Sep 29 '16