Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a few remote environments where i can only connect from outside but not from inside to outside. for my deployments/configuration needs i used fabric and capistrano that works fine but I have pressure to use a complete configuration system as puppet or chef.

is there a way i can push specific commands via puppet or chef ? (please keep in mind that the remote hosts can not connect to my site where i would have the puppet/chef server)


share|improve this question
I'm not adding this as an answer because I don't use Chef and I'm not very familiar with it, but a former co-worker of mine told me once that one thing he appreciated on Chef over Puppet was that you could, from the command line, tell it to run a command over a number of machines. From the way he told me, it was with chef itself you did it. – Daniel C. Sobral Aug 16 '11 at 15:13

You can use mcollective to run remote commands. You have to install a client on each puppet client though.
Note that mcollective also requires an activemq server.

share|improve this answer
does mcollective needs an activemq server (this is what is written into their getting started) ? – silviud Aug 15 '11 at 17:31
yes you do need one for mcollective to run – Mike Aug 15 '11 at 20:41
it is bundled as part of puppet-enterprise; you can grab a demo with 10 nodes without a needing to purchase a license. – Preflightsiren Feb 23 '13 at 4:46

At the risk of reviving an old thread, check out Ansible for running arbitrary commands over a set of hosts. Set up a hosts file with a group named "all" and then type ansible all -a "/bin/echo hello" to see the results.

share|improve this answer
thanks - yes this is what i'm using! – silviud Feb 15 '13 at 15:35

Chef has a "deploy" resource that can be used to do a fabric/capistrano style of deployment. It is documented here with examples:

Guides for more sophisticated fully automated setup and deployment can be found on the Opscode knowledge base.

Django and Rails application deployment examples are used.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.