M F Haris
2009-Nov-12 13:32 UTC
[Puppet Users] Managing ''services'' (daemons) in AIX Client
Dear all, I want to manage services in my AIX node. I mean i can start/stop service using exec { command => "/etc/rc/blah-service start",} but i like this to be done by puppet itself with its type reference ''service''. has anyone manage the services on AIX machine ??? if yes, please share it! PS: All services in my AIX nodes are located to different runlevels (rc.something) . Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jcbollinger
2009-Nov-12 20:07 UTC
[Puppet Users] Re: Managing ''services'' (daemons) in AIX Client
On Nov 12, 7:32 am, M F Haris <mfha...@fleetboard.com> wrote:> I want to manage services in my AIX node. I mean i can start/stop > service using > exec { command => "/etc/rc/blah-service start",} but i like this to be > done by puppet itself with its type reference ''service''. > > has anyone manage the services on AIX machine ??? if yes, please share it! > > PS: All services in my AIX nodes are located to different runlevels > (rc.something) .Puppet''s Service resource is the right place to look among the built- in resource types. Have you tried it? I haven''t any AIX-specific experience, but Puppet should be able to provide some level of management. You could start with something like this: service { "blah-service": enable => true, ensure => "running", path => "/etc/rc", # might not be necessary } Some or all of these additional properties might be useful: hasstatus, hasrestart, status, pattern. There are other knobs you could tweak, too, but I recommend starting simple. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
M F Haris
2009-Nov-13 09:04 UTC
[Puppet Users] Re: Managing ''services'' (daemons) in AIX Client
jcbollinger schrieb:> > On Nov 12, 7:32 am, M F Haris <mfha...@fleetboard.com> wrote: > >> I want to manage services in my AIX node. I mean i can start/stop >> service using >> exec { command => "/etc/rc/blah-service start",} but i like this to be >> done by puppet itself with its type reference ''service''. >> >> has anyone manage the services on AIX machine ??? if yes, please share it! >> >> PS: All services in my AIX nodes are located to different runlevels >> (rc.something) . >> > > Puppet''s Service resource is the right place to look among the built- > in resource types. Have you tried it? I haven''t any AIX-specific > experience, but Puppet should be able to provide some level of > management. You could start with something like this: > > service { "blah-service": > enable => true, > ensure => "running", > path => "/etc/rc", # might not be necessary > } > > Some or all of these additional properties might be useful: hasstatus, > hasrestart, status, pattern. There are other knobs you could tweak, > too, but I recommend starting simple. > > > >Yes i tried to tweak with puppet resources, when i set *ensure => running* and run puppet in debug mode then puppet executes following command as; /service/Manageservice[ssh]/Exec[sshd]: Executing ''/etc/rc.d/init.d/sshd /*running*/'' similarly, with* ensure => true* it executes /service/Manageservice[ssh]/Exec[sshd]: Executing ''/etc/rc.d/init.d/sshd /*true*/'' and therefore, failed to start the service because the my init script takes either ''start'' or ''stop'' as argument. unusual behavior! anyway i am looking in to it but if you guys got any solution please share it. regards --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
jcbollinger
2009-Nov-13 17:28 UTC
[Puppet Users] Re: Managing ''services'' (daemons) in AIX Client
On Nov 13, 3:04 am, M F Haris <mfha...@fleetboard.com> wrote:> Yes i tried to tweak with puppet resources, when i set > *ensure => running* and run puppet in debug mode > then puppet executes following command as; > > /service/Manageservice[ssh]/Exec[sshd]: Executing ''/etc/rc.d/init.d/sshd > /*running*/'' > > similarly, with* ensure => true* > it executes > /service/Manageservice[ssh]/Exec[sshd]: Executing ''/etc/rc.d/init.d/sshd > /*true*/'' > > and therefore, failed to start the service because the my init script > takes either ''start'' or ''stop'' as argument.It looks like puppet is falling back to its most basic level of service support. There are two directions you can go from here: 1) Try to find a more featureful Service provider that your system will support. See http://reductivelabs.com/trac/puppet/wiki/TypeReference#id287 for details of the available providers. To make your service use a different provider, set its provider parameter; e.g., provider => "init" 2) Whether you find a better provider or stick with the one Puppet chose for you, you can control the command Puppet uses to start / stop / restart / check status via the "start", "stop", "restart", and "status" parameters; e.g., start => "/etc/rc.d/ssh start" Good luck, John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---