PaulS
2012-Sep-13 18:17 UTC
[Puppet Users] nodes including modules that are not assigned in the site.pp file
This is my /etc/puppet/manifests/site.pp Can anyone see why nodes 5051,5052,5010,5110,5116,5102,5117,5118,5121,6012,and 5052 would grab/include the very last nodes module? node server616 module tomcat6 File { ignore => ''.svn'' } node ''server6010'' { include centos6 } node ''server6011'' { include centos6 include tomcat } node ''server6012'' { include centos6 include tomcat } node ''server6013'' { include centos6 include tomcat } node ''server6014'' { include centos6 include tomcat } node ''server6015'' { include centos6 include postgres } node ''server5010'' { include centos5 } node ''server5039'' { include centos5 include apache } node ''server5051'' { include centos5 } node ''server5071'' { include ldap } node ''server5052'' { include centos5 } node ''server5092'' { include centos5 include mongodb } node ''igsxgjdtweb01'' { include centos5 include apache-dev } node ''server5110'' { include centos5 } node ''server5116'' { include centos5 } node ''server5117'' { include centos5 include clamav include shakecast } node ''server5118'' { include centos5 } node ''server5121'' { include centos5 include postgres include mysql } node ''serverisvmlks1'' { include centos5 } node ''server616'' { include tomcat6 } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/r4V6d780q-UJ. 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.
PaulS
2012-Sep-13 20:52 UTC
[Puppet Users] Re: nodes including modules that are not assigned in the site.pp file
On Thursday, September 13, 2012 12:17:38 PM UTC-6, PaulS wrote:> > This is my /etc/puppet/manifests/site.pp > > Can anyone see why nodes > 5051,5052,5010,5110,5116,5102,5117,5118,5121,6012,and 5052 > > would grab/include the very last nodes module? node server616 module > tomcat6 > > > File { ignore => ''.svn'' } > > > node ''server6010'' { > > include centos6 > > } > > > node ''server6011'' { > > include centos6 > > include tomcat > > } > > > node ''server6012'' { > > include centos6 > > include tomcat > > } > > > node ''server6013'' { > > include centos6 > > include tomcat > > } > > > node ''server6014'' { > > include centos6 > > include tomcat > > } > > > node ''server6015'' { > > include centos6 > > include postgres > > } > > > node ''server5010'' { > > include centos5 > > } > > > node ''server5039'' { > > include centos5 > > include apache > > } > > > node ''server5051'' { > > include centos5 > > } > > > node ''server5071'' { > > include ldap > > } > > > node ''server5052'' { > > include centos5 > > } > > > node ''server5092'' { > > include centos5 > > include mongodb > > } > > > node ''igsxgjdtweb01'' { > > include centos5 > > include apache-dev > > } > > > node ''server5110'' { > > include centos5 > > } > > > node ''server5116'' { > > include centos5 > > } > > > node ''server5117'' { > > include centos5 > > include clamav > > include shakecast > > } > > > node ''server5118'' { > > include centos5 > > } > > > node ''server5121'' { > > include centos5 > > include postgres > > include mysql > > } > > > node ''serverisvmlks1'' { > > include centos5 > > } > > > node ''server616'' { > > include tomcat6 > > } > > >================================UPDATE========================================== It must have been my /etc/puppet/modules/tomcat6/manifests/init.pp could putting something like class centos6 { file {"/etc/security": owner => root, source => "puppet:///tomcat6/files/etc/security", path => "/etc/security", recurse => true, ensure => present, selinux_ignore_defaults => true, } } Note the “class centos6” and not “class tomcat6” Would that push the files that have “include centos6” in my /etc/puppet/manifests/site.pp? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/vovUVa3cyVQJ. 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.
Denmat
2012-Sep-13 20:53 UTC
Re: [Puppet Users] nodes including modules that are not assigned in the site.pp file
Hi, Is tomcat6 included elsewhere in your manifest? Can you grep for ''include tomcat6'' and check? Cheers, Den On 14/09/2012, at 4:17, PaulS <paul_sperry@hotmail.com> wrote:> This is my /etc/puppet/manifests/site.pp > Can anyone see why nodes 5051,5052,5010,5110,5116,5102,5117,5118,5121,6012,and 5052 > would grab/include the very last nodes module? node server616 module tomcat6 > > File { ignore => ''.svn'' } > > node ''server6010'' { > include centos6 > } > > node ''server6011'' { > include centos6 > include tomcat > } > > node ''server6012'' { > include centos6 > include tomcat > } > > node ''server6013'' { > include centos6 > include tomcat > } > > node ''server6014'' { > include centos6 > include tomcat > } > > node ''server6015'' { > include centos6 > include postgres > } > > node ''server5010'' { > include centos5 > } > > node ''server5039'' { > include centos5 > include apache > } > > node ''server5051'' { > include centos5 > } > > node ''server5071'' { > include ldap > } > > node ''server5052'' { > include centos5 > } > > node ''server5092'' { > include centos5 > include mongodb > } > > node ''igsxgjdtweb01'' { > include centos5 > include apache-dev > } > > node ''server5110'' { > include centos5 > } > > node ''server5116'' { > include centos5 > } > > node ''server5117'' { > include centos5 > include clamav > include shakecast > } > > node ''server5118'' { > include centos5 > } > > node ''server5121'' { > include centos5 > include postgres > include mysql > } > > node ''serverisvmlks1'' { > include centos5 > } > > node ''server616'' { > include tomcat6 > } > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/r4V6d780q-UJ. > 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.-- 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.
PaulS
2012-Sep-13 21:02 UTC
[Puppet Users] Re: nodes including modules that are not assigned in the site.pp file
On Thursday, September 13, 2012 12:17:38 PM UTC-6, PaulS wrote:> > This is my /etc/puppet/manifests/site.pp > > Can anyone see why nodes > 5051,5052,5010,5110,5116,5102,5117,5118,5121,6012,and 5052 > > would grab/include the very last nodes module? node server616 module > tomcat6 > > > File { ignore => ''.svn'' } > > > node ''server6010'' { > > include centos6 > > } > > > node ''server6011'' { > > include centos6 > > include tomcat > > } > > > node ''server6012'' { > > include centos6 > > include tomcat > > } > > > node ''server6013'' { > > include centos6 > > include tomcat > > } > > > node ''server6014'' { > > include centos6 > > include tomcat > > } > > > node ''server6015'' { > > include centos6 > > include postgres > > } > > > node ''server5010'' { > > include centos5 > > } > > > node ''server5039'' { > > include centos5 > > include apache > > } > > > node ''server5051'' { > > include centos5 > > } > > > node ''server5071'' { > > include ldap > > } > > > node ''server5052'' { > > include centos5 > > } > > > node ''server5092'' { > > include centos5 > > include mongodb > > } > > > node ''igsxgjdtweb01'' { > > include centos5 > > include apache-dev > > } > > > node ''server5110'' { > > include centos5 > > } > > > node ''server5116'' { > > include centos5 > > } > > > node ''server5117'' { > > include centos5 > > include clamav > > include shakecast > > } > > > node ''server5118'' { > > include centos5 > > } > > > node ''server5121'' { > > include centos5 > > include postgres > > include mysql > > } > > > node ''serverisvmlks1'' { > > include centos5 > > } > > > node ''server616'' { > > include tomcat6 > > } > > >grep tomcat6 /etc/puppet/modules/tomcat6/manifests/init.pp class tomcat6 { source => "puppet:///tomcat6/files/usr/local", class tomcat6 { class tomcat6 { source => "puppet:///tomcat6/files/etc/sysconfig", class tomcat6 { source => "puppet:///tomcat6/files/etc/security", class tomcat6 { And grep ''include tomcat6'' /etc/puppet/manifests/site.pp include tomcat6 just one node ''igsfort616'' { include tomcat6 } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/vNUOyC3y5joJ. 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.