Shreejit Nair
2013-May-12 19:50 UTC
[Puppet Users] How to restart Apache server instances (running on nodes) with Puppet & MCollective ?
Hello All, I am new to puppet and mcollective, so need help from you guys to work on it. I am using open source version of mcollective and puppet. and I am using RHEL as operating system on my servers. I have installed mcollective and have installed puppet agent (on nodes) and I am able to run puppet agent and the predefined methods in the puppet agent. But now i am facing some problems and have following questions regarding that : 1) How can I make puppet & mcollective work together to call a puppet script placed on server to execute commands on other Nodes (In which puppet agent is installed) ? 2) How can I manually restart more than one apache instances running on the Nodes using mcollective and puppet ? Please help me with these questions and give me a detailed solution as i am new to puppet and mcollective. Thanks, Regards, Shreejit Nair Shreejit13@gmail.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Jakov Sosic
2013-Jul-03 13:11 UTC
Re: [Puppet Users] How to restart Apache server instances (running on nodes) with Puppet & MCollective ?
On 05/12/2013 09:50 PM, Shreejit Nair wrote:> 1) How can I make puppet & mcollective work together to call a puppet > script placed on server to execute commands on other Nodes (In which > puppet agent is installed) ?If you want to see what nodes respond to mcollective: # mco ping To see what agents a node supports: # mco rpc rpcutil agent_inventory -I hostname To restart a ''httpd'' service on a single node: # mco rpc service restart service=httpd -I hostname> 2) How can I manually restart more than one apache instances running on > the Nodes using mcollective and puppet ?Use discovery filters: http://docs.puppetlabs.com/mcollective/reference/basic/basic_cli_usage.html#selecting-request-targets-using-filters -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.