hi all , i had configured puppet with LDAP.... i.e. node information for stored in LDAP...... i want to triger puppetrun for pushing configuration for a perticular host. rather than $ puppetrun --all (which triggers all nodes) or $ puppet --class <classname> ( triggers all nodes ,which include this class). as i know when we use following : $ puppetrun --host <host_name> it will look for node entry in puppet class , not in Ldap...... but ,in my development environment , this functionality criticallly required . , i want to trigger only perticuler host through puppetrun. how can I achieve this functionality ? guide me to right direction ........ thanks: Sanjiv Singh (iLabs) Impetus Infotech (India). -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
hi all , i had configured puppet with LDAP.... i.e. node information for stored in LDAP...... i want to triger puppetrun for pushing configuration for a perticular host. rather than $ puppetrun --all (which triggers all nodes) or $ puppet --class <classname> ( triggers all nodes ,which include this class). as i know when we use following : $ puppetrun --host <host_name> it will look for node entry in puppet class , not in Ldap...... but ,in my development environment , this functionality criticallly required . , i want to trigger only perticuler host through puppetrun. how can I achieve this functionality ? guide me to right direction ........ thanks: Sanjiv Singh (iLabs) Impetus Infotech (India). -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Pittman
2010-Nov-17 02:03 UTC
Re: [Puppet Users] puppetrun + per host configuration push
"sanjiv.singh" <sanjiv.singh@impetus.co.in> writes:> i had configured puppet with LDAP.... > i.e. node information for stored in LDAP......[...]> $ puppet --class <classname> ( triggers all nodes ,which include this > class). > > as i know when we use following : > > $ puppetrun --host <host_name> > it will look for node entry in puppet class , not in Ldap...... > > but ,in my development environment , this functionality criticallly required > . , i want to trigger only perticuler host through puppetrun. > > how can I achieve this functionality ?You want mcollective, and the puppet plugin for that, which is the best current mechanism for achieving this. Regards, Daniel -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
sanjiv.singh
2010-Nov-19 06:33 UTC
[Puppet Users] Re: puppetrun + per host configuration push
hi Daniel, i got the problem of "Why does Puppet keep trying to start a running service?" The ideal way to check for a service is to use the hasstatus parameter, which calls the init script with the status parameter. This should report back to Puppet whether the service is running or stopped. In some broken scripts, however, the status output will be correct (“Ok” or “not running”), but the exit code of the script will be incorrect. Most commonly, the script will always blindly return 0, no matter what the actual service state is. Puppet only uses the exit code, so interprets this as “the service is stopped”. There are two workarounds, and one fix. If you must deal with the scripts broken behavior as is, you can modify your resource to either use the pattern parameter to look for a particular process name, or the status parameter to use a custom script to check for the service status. The fix is to rewrite the init script to use the proper exit codes. When rewriting them, or submitting bug reports to vendors or upstream, be sure to reference the LSB Init Script Actions standard. This should carry more weight by pointing out an official, published standard they’re failing to meet, rather than trying to explain how their bug is causing problems in Puppet. thanks : Sanjiv Singh(iLabs) Impetus InfoTech. On Nov 17, 7:03 am, Daniel Pittman <dan...@rimspace.net> wrote:> "sanjiv.singh" <sanjiv.si...@impetus.co.in> writes: > > i had configured puppet with LDAP.... > > i.e. node information for stored in LDAP...... > > [...] > > > $ puppet --class <classname> ( triggers all nodes ,which include this > > class). > > > as i know when we use following : > > > $ puppetrun --host <host_name> > > it will look for node entry in puppet class , not in Ldap...... > > > but ,in my development environment , this functionality criticallly required > > . , i want to trigger only perticuler host through puppetrun. > > > how can I achieve this functionality ? > > You want mcollective, and the puppet plugin for that, which is the best > current mechanism for achieving this. > > Regards, > Daniel > > -- > ✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707 > ♽ made with 100 percent post-consumer electrons-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.