Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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)

thanks

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
add comment

3 Answers

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
1  
does mcollective needs an activemq server (this is what is written into their getting started) ? –  silviud Aug 15 '11 at 17:31
1  
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
add comment

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
add comment

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

http://wiki.opscode.com/display/chef/Deploy+Resource

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

http://help.opscode.com/kb/otherhelp

Django and Rails application deployment examples are used.

share|improve this answer
add comment

Your Answer

 
discard

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.