Can someone with an external node database (ideally LDAP) add a notice "THIS IS A TEST" at the bottom of their site.pp file, and run a client and check the logs? I currently am unable to get this to work, and I''m trying to rule out external nodes causing it. 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 -~----------~----~----~----~------~----~------~--~---
On May 23, 2008, at 12:59 PM, Ashley Penney wrote:> Can someone with an external node database (ideally LDAP) add a > notice "THIS IS A TEST" at the bottom of their site.pp file, and run > a client and check the logs? I currently am unable to get this to > work, and I''m trying to rule out external nodes causing it.You mean that the ''notice'' isn''t working, or the site.pp is getting ignored entirely? -- Ours is the age that is proud of machines that think and suspicious of men who try to. -- H. Mumford Jones --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Well, I''m unsure! I have import template as the first line, and this works as it allows puppetclass: baseclass to work under LDAP. However, I moved notice "" to the second line and this failed. It also seemed to ignore the Package{} statement that I had too. I''m not sure how else I can test site.pp, other than via using notice statements. I could try adding a package { "emacs" } and see if it installs that I suppose. On Sat, May 24, 2008 at 1:26 PM, Luke Kanies <luke@madstop.com> wrote:> > On May 23, 2008, at 12:59 PM, Ashley Penney wrote: > > > Can someone with an external node database (ideally LDAP) add a > > notice "THIS IS A TEST" at the bottom of their site.pp file, and run > > a client and check the logs? I currently am unable to get this to > > work, and I''m trying to rule out external nodes causing it. > > You mean that the ''notice'' isn''t working, or the site.pp is getting > ignored entirely? > > -- > Ours is the age that is proud of machines that think and suspicious of > men who try to. -- H. Mumford Jones > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On May 24, 2008, at 4:07 PM, Ashley Penney wrote:> Well, I''m unsure! > > I have import template as the first line, and this works as it > allows puppetclass: baseclass to work under LDAP. However, I moved > notice "" to the second line and this failed. It also seemed to > ignore the Package{} statement that I had too. I''m not sure how > else I can test site.pp, other than via using notice statements. I > could try adding a package { "emacs" } and see if it installs that I > suppose.Can you define "failed"? And you can test by adding a ''notify'' instance that logs something or an ''exec'' instance that just echoes something. -- Writing is not necessarily something to be ashamed of, but do it in private and wash your hands afterwards. --Robert Heinlein --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Here is my site.pp: ------------ # site.pp include network network::ip { "eth0": ip => "$ip", netmask => "$netmask", gateway => "$gateway", network => "$network", broadcast => "$broadcast", gateway => "$gateway", hostname => "$cn", enabled => "yes" } filebucket { main: server => puppet } # global defaults File { backup => main } Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" } exec { "rhn-profile-sync": path => "/usr/sbin", } exec { "touch /tmp/test": path => "/bin", } Package { provider => yum, require => [ Yumrepo[''epel''], Yumrepo[''hls''], Exec[''rhn-profile-sync''], Service[''network''], Network::ip[''eth0''] ], } import "templates" ------------------ This should make /tmp/test, here''s a run on the client: -sh-3.2# puppetd -tv notice: Ignoring cache info: Caching catalog at /var/lib/puppet/localconfig.yaml notice: Starting catalog run notice: //Exec[rhn-profile-sync]/returns: executed successfully notice: //Node[default]/iclassifyserver/iclassify/iclassify::mysql/Exec[mysql -u root --password= --execute="GRANT ALL ON iclassify_production.* TO iclassify@localhost IDENTIFIED BY '''' ;"]/returns: executed successfully notice: //Node[default]/iclassifyserver/iclassify/iclassify::solr/Exec[iclassify-solr]/returns: executed successfully notice: //Exec[touch /tmp/test]/returns: executed successfully notice: Finished catalog run in 41.58 seconds ---------------------- So my problem is now that it works, but it doesn''t run things in order. I expected things in site.pp to execute before other things included as classes. I moved the import of template right to the end of site.pp thinking it wouldn''t process my baseclass/other classes like iclassify before executing the things in site.pp. As you can see from the Package{} statement, the intent was to ensure that four dependencies were set up before any package was installed, but this simply doesn''t work and it''ll start trying to install packages on a fresh install before handling the require => line. On Sat, May 24, 2008 at 6:36 PM, Luke Kanies <luke@madstop.com> wrote:> > On May 24, 2008, at 4:07 PM, Ashley Penney wrote: > > > Well, I''m unsure! > > > > I have import template as the first line, and this works as it > > allows puppetclass: baseclass to work under LDAP. However, I moved > > notice "" to the second line and this failed. It also seemed to > > ignore the Package{} statement that I had too. I''m not sure how > > else I can test site.pp, other than via using notice statements. I > > could try adding a package { "emacs" } and see if it installs that I > > suppose. > > > Can you define "failed"? > > And you can test by adding a ''notify'' instance that logs something or > an ''exec'' instance that just echoes something. > > -- > Writing is not necessarily something to be ashamed of, but do it in > private and wash your hands afterwards. --Robert Heinlein > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---