Evan Hisey
2008-Sep-17 16:41 UTC
[Puppet Users] Multiple Service[named] resources not conflicting ??
As understand puppet I should not be able to have two service[named] entries in the same compiled manifest. To me this means the following should not work: In module named/manifest/init.pp I have: class named{ package{"bind": ensure => present, } service{"named": ensure => running, enable => true, hasstatus => true, hasrestart => true, } } And then in in module hpc/manifest/init.pp I have: class hpc::named{ include named service{"named": ensure => running, } file{"named.conf.cluster": path => "/etc/named.conf", source=> "puppet:///hpc/named.conf", notify => Service["named"], } } I randomly tried this expecting it to explode, while waiting for a reply to notifying resources across modules, as I need HPC File["named.conf.cluster"] to tell Service[named] to reload. I am very suprised this is working. can some explain why to me. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Chad Huneycutt
2008-Sep-22 15:25 UTC
[Puppet Users] Re: Multiple Service[named] resources not conflicting ??
Are you actually including both "named" and "hpc::named" on a single host? If not, then there will not be a conflict. - Chad On Wed, Sep 17, 2008 at 12:41 PM, Evan Hisey <ehisey@gmail.com> wrote:> > As understand puppet I should not be able to have two service[named] > entries in the same compiled manifest. To me this means the following > should not work: > > In module named/manifest/init.pp I have: > class named{ > package{"bind": > ensure => present, > } > service{"named": > ensure => running, > enable => true, > hasstatus => true, > hasrestart => true, > } > > } > > And then in in module hpc/manifest/init.pp I have: > class hpc::named{ > include named > service{"named": > ensure => running, > } > file{"named.conf.cluster": > path => "/etc/named.conf", > source=> "puppet:///hpc/named.conf", > notify => Service["named"], > } > } > > I randomly tried this expecting it to explode, while waiting for a > reply to notifying resources across modules, as I need HPC > File["named.conf.cluster"] to tell Service[named] to reload. I am very > suprised this is working. can some explain why to me. > > Evan > > > >-- Chad M. Huneycutt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Aj
2008-Sep-22 15:40 UTC
[Puppet Users] Re: Multiple Service[named] resources not conflicting ??
You''ll want to have one inherit the parent (named) and use the overide syntax on the resources. class named::hpc inherits named { Service[''named''] { enabled => false } } Regards, Aj On 23/09/2008, at 3:25 AM, "Chad Huneycutt" <chad.huneycutt@gmail.com> wrote:> > Are you actually including both "named" and "hpc::named" on a single > host? If not, then there will not be a conflict. > > - Chad > > On Wed, Sep 17, 2008 at 12:41 PM, Evan Hisey <ehisey@gmail.com> wrote: >> >> As understand puppet I should not be able to have two service[named] >> entries in the same compiled manifest. To me this means the following >> should not work: >> >> In module named/manifest/init.pp I have: >> class named{ >> package{"bind": >> ensure => present, >> } >> service{"named": >> ensure => running, >> enable => true, >> hasstatus => true, >> hasrestart => true, >> } >> >> } >> >> And then in in module hpc/manifest/init.pp I have: >> class hpc::named{ >> include named >> service{"named": >> ensure => running, >> } >> file{"named.conf.cluster": >> path => "/etc/named.conf", >> source=> "puppet:///hpc/named.conf", >> notify => Service["named"], >> } >> } >> >> I randomly tried this expecting it to explode, while waiting for a >> reply to notifying resources across modules, as I need HPC >> File["named.conf.cluster"] to tell Service[named] to reload. I am >> very >> suprised this is working. can some explain why to me. >> >> Evan >> >>> >> > > > > -- > Chad M. Huneycutt > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Sep-22 17:17 UTC
[Puppet Users] Re: Multiple Service[named] resources not conflicting ??
On Mon, Sep 22, 2008 at 10:25 AM, Chad Huneycutt <chad.huneycutt@gmail.com> wrote:> > Are you actually including both "named" and "hpc::named" on a single > host? If not, then there will not be a conflict. > > - ChadYup, that is why I am surprised there is not a conflict. I think I have actually found what is looking like abug in the autoloading of modules related to other modules. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Sep-22 17:18 UTC
[Puppet Users] Re: Multiple Service[named] resources not conflicting ??
On Mon, Sep 22, 2008 at 10:40 AM, Aj <aj@junglist.gen.nz> wrote:> > You''ll want to have one inherit the parent (named) and use the overide > syntax on the resources. > > class named::hpc inherits named { > Service[''named''] { enabled => false } > } >I am actually needing to call the service for a reload of named, but have found that the module class named was not being load by the hpc::named module class. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---