Forgive a newbie question, but... I would like to plug in a USB key that has a base install of Debian + Puppet into a machine, and use Puppet to provision the key from a central server. What have have tried has not worked, and I''m hoping someone can point out my problem. ----------------------------------- In site.pp: node ''foobar.vanderbilt.edu'' { include provision_usb_key } In classes/provision_usb_key.pp: class provision_usb_key { package { "plover": ensure => latest } } ----------------------------------- I had thought this would detect whether the latest version of the "plover" package was installed, and otherwise use apt to download/install the package. However, when I run puppetd on the client with debugging, the debugging log shows nothing happening. Can someone enlighten me? Muchos gracias! Mat --~--~---------~--~----~------------~-------~--~----~ 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 Mat On Jan 9, 9:38 pm, "Mathew Binkley" <mathewbink...@gmail.com> wrote:> In site.pp: > > node ''foobar.vanderbilt.edu'' { > include provision_usb_key > } > > In classes/provision_usb_key.pp: > > class provision_usb_key { > package { "plover": > ensure => latest > } > } > > [..] > > However, when I run puppetd on the client with debugging, the debugging > log shows nothing happening.I suspect you''re not importing your provision_usb_key manifest. include only evaluates classes, it doesn''t tell Puppet to look for classes in external files (http://reductivelabs.com/trac/puppet/wiki/ LanguageTutorial). Add to the top of site.pp: import classes/provision_usb_key.pp or import classes/*.pp I hope this helps, Mark --~--~---------~--~----~------------~-------~--~----~ 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 Mark. I do have a import "classes/*" at the top of my site.pp file, so I''m afraid it''s not that. Thanks for the idea though. On Jan 9, 4:04 pm, Mark Drayton <mdray...@gmail.com> wrote:> Hi Mat > > On Jan 9, 9:38 pm, "Mathew Binkley" <mathewbink...@gmail.com> wrote: > > > > > In site.pp: > > > node ''foobar.vanderbilt.edu'' { > > include provision_usb_key > > } > > > In classes/provision_usb_key.pp: > > > class provision_usb_key { > > package { "plover": > > ensure => latest > > } > > } > > > [..] > > > However, when I run puppetd on the client with debugging, the debugging > > log shows nothing happening. > > I suspect you''re not importing your provision_usb_key manifest. > include only evaluates classes, it doesn''t tell Puppet to look for > classes in external files (http://reductivelabs.com/trac/puppet/wiki/ > LanguageTutorial). Add to the top of site.pp: > > import classes/provision_usb_key.pp > > or > > import classes/*.pp > > I hope this helps, > > Mark--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Can you see puppetd make requests to the puppetmaster? What do the puppetd logs look like? What about the puppetmaster logs if there is a request? On Fri, Jan 9, 2009 at 2:38 PM, Mathew Binkley <mathewbinkley@gmail.com>wrote:> > Forgive a newbie question, but... I would like to plug in a USB key > that has a base install of Debian + Puppet into a machine, and use > Puppet to provision the key from a central server. What have have tried > has not worked, and I''m hoping someone can point out my problem. > > ----------------------------------- > > In site.pp: > > node ''foobar.vanderbilt.edu'' { > include provision_usb_key > } > > In classes/provision_usb_key.pp: > > class provision_usb_key { > package { "plover": > ensure => latest > } > } > > ----------------------------------- > > I had thought this would detect whether the latest version of the > "plover" package was installed, and otherwise use apt to > download/install the package. > > However, when I run puppetd on the client with debugging, the debugging > log shows nothing happening. > > Can someone enlighten me? Muchos gracias! > > > Mat > > > >--~--~---------~--~----~------------~-------~--~----~ 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 Andrew. That helped us figure it out. Turns out someone had misconfigured the firewall on that IP, and fixed it over the weekend. I came in this morning, and everything Just Works. Thanks for the assistance! On Jan 10, 2:34 pm, "Andrew Shafer" <and...@reductivelabs.com> wrote:> Can you see puppetd make requests to the puppetmaster? > > What do the puppetd logs look like? What about the puppetmaster logs if > there is a request? > > On Fri, Jan 9, 2009 at 2:38 PM, Mathew Binkley <mathewbink...@gmail.com>wrote: > > > > > Forgive a newbie question, but... I would like to plug in a USB key > > that has a base install of Debian + Puppet into a machine, and use > > Puppet to provision the key from a central server. What have have tried > > has not worked, and I''m hoping someone can point out my problem. > > > ----------------------------------- > > > In site.pp: > > > node ''foobar.vanderbilt.edu'' { > > include provision_usb_key > > } > > > In classes/provision_usb_key.pp: > > > class provision_usb_key { > > package { "plover": > > ensure => latest > > } > > } > > > ----------------------------------- > > > I had thought this would detect whether the latest version of the > > "plover" package was installed, and otherwise use apt to > > download/install the package. > > > However, when I run puppetd on the client with debugging, the debugging > > log shows nothing happening. > > > Can someone enlighten me? Muchos gracias! > > > Mat--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---