Ask Your Question
0

Confused by PE Puppet-Dashboard Rake documentation

asked 2014-06-23 12:35:07 -0500

Red Cricket gravatar image

updated 2014-06-23 12:37:59 -0500

Hi,

I do not understand the documentation for adding a node via PE 3.2 >> Console >> Rake API

So if I want to add a node called node-one and have it belong to group GROUP-A I would execute this command:

sudo -u puppet-dashboard /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile node:add['node-one','GROUP-A',,skip]

right?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-06-23 18:32:43 -0500

updated 2014-06-23 18:33:43 -0500

What's the purpose of the skip in your example? Does node-one areleady exist? If not, you'll need two separate rake commands, although you can stack them. If doesn't exist, I would format it like so: sudo /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile node:add['node-one'] nodegroup:add['GROUP-A'] node:addgroup['node-one','GROUP-A']

This would create node-one, then create the GROUP-A, then add node-one to GROUP-A.

Additionally, not to toot my own horn, but I may have written a blog post about this very topic! A general overview of adding nodes, groups, and classes from the command line can be found here: http://puppetlabs.com/blog/using-rake...

Edit: and a quick note, you'll want to drop the "sudo -u puppet-dashboard" as you won't need to be the puppet-dashboard user, and in fact will get an error message.

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: 2014-06-23 12:35:07 -0500

Seen: 242 times

Last updated: Jun 23 '14