Ask Your Question
0

Add classes to node via command line

asked 2015-11-26 02:44:45 -0500

Declan gravatar image

Hi,

Using Linux command line i need to be able to add a class to a node e.g.

Add cowsay class to node 'server4' via command line/config file

The problem i have is i can use site.pp but it doesnt show up as a registered class in Puppet Enterprise web panel.

How would i go about adding it via command line while it still showing up as a class registered in the web interface?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-27 03:06:46 -0500

If its pre puppet 3,7 I'd recommend rake: rake

post 3.7 have a look at the node classifier service api: node classifier api

cheers Stuart

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: 2015-11-26 02:44:45 -0500

Seen: 173 times

Last updated: Nov 27 '15