Ask Your Question

How do I remotely run agent update

asked 2014-11-06 17:52:00 -0600

fillrobs gravatar image

I've installed Puppet Enterprise and have successfully added a couple of Ubuntu servers running the agent and a windows 2012 r2 server with the agent. The Nodes all successfully work to have classes applied using either puppet agent --test from them to pull the state or using the Live Management section on the PE Console.

I am trying to action this from another server (not managed by Puppet) - I've tried using Curl curl -k -X PUT -H "Content-Type: text/pson" -d "{}" https://puppetclient:8139/production/... * where puppetclient is the name of my Win2012 server

But it fails with curl: (7) couldn't connect to host I can ping it by name (added the ip/name to the host file on this external server)

I've read a bit about mcollective that seems to come with PE - but this doesn't seem to be setup for the console/command line.

I was trying to use mco ping to talk to the agents - but this fails with missing file errors.

Any step by step guides to get this working?

Really - I want to provision a VM and then have another server take the details of the VM - add it to Puppet (to a group) and then have puppet install software associated with that group through Classes.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-11-10 18:15:06 -0600

cbarbour gravatar image

I've read a bit about mcollective that seems to come with PE - but this doesn't seem to be setup for the console/command line.

The mco command is available under the peadmin user account on your puppetmasters. If you su to this user, mco should work.

For node classification on PE, sending classification commands to the master is the most direct approach for configuring your nodes. On PE 3.4 and above you can use the HTTP API for this. On older releases of PE you may use the Rake API.

I generally recommend installing the puppet agent as part of your machine image or bootstrap process.

edit flag offensive delete link more

answered 2014-11-11 08:16:49 -0600

I use the foreman for provisioning and as a Puppet ENC. The foreman has PXE boot support and image boot support by which you can kickstart a new host or boot an image and then that new host is assigned roles/groups/classes according to the the definition used to create the new instance. It has nice REST services and hammer cli to make this easy to integrate with as well.


Mcollective works great for orchestration and programatically running puppet across your network but it doesn't really help with provisioning new hardware as mcollective itself needs to be boot strapped along with the puppet agent itself before a new host can be provisioned and the foreman does this really nicely.

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


Asked: 2014-11-06 17:52:00 -0600

Seen: 552 times

Last updated: Nov 10 '14