I''m running into a bit of trouble trying to use virtual defines in a module. I''m attempting to deal with some discrepancies re. the ''user'' builtin type by defining a "user_bundle" resource in a module called "users", which will ensure that a home directory is created. I can get this working the way I want in an individual puppet recipe (located at http://shortbus.org/x/test.pp.txt), but I can''t get this functioning at all as a module in a site configuration. I''m attempting to follow the suggestions laid out in the Puppet Best Practices page for managing users, but instead of declaring user resources as virtual in users::virtual, I''m declaring user_bundles. However, when I include a subclass where these user_bundles are realized in a node, Puppet complains that it is unable to find the virtual resource I''m asking for. For completeness, I''ve put up my complete configuration at http://shortbus.org/x/puppet-manifest.tar.gz. I tried to strip everything extraneous out, but there are probably a few extra includes and searches around that don''t need to be- I''ve been grabbing at straws for the past hour. If anyone has any idea what could be going wrong here, I''m all ears. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
2008/8/25 peter woodman <peter@shortbus.org>:> I''m attempting to follow the suggestions laid out in the Puppet Best > Practices page for managing users, but instead of declaring user > resources as virtual in users::virtual, I''m declaring user_bundles. > However, when I include a subclass where these user_bundles are > realized in a node, Puppet complains that it is unable to find the > virtual resource I''m asking for. > > If anyone has any idea what could be going wrong here, I''m all ears.We do something similar to this in our configuration. You''ll want to follow the basic idea shown below: class users { define user_bundles { .... do some stuff ... } @user_bundles { "test": } } class something { include users realize Users::User_Bundles["test"] } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
2008/8/25 RijilV <rijilv@gmail.com>:> > class something { > include users > realize Users::User_Bundles["test"] > } >I miss-spoke, should be realize Users::User_bundles["test"] .r'' --~--~---------~--~----~------------~-------~--~----~ 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 Aug 26, 10:18 am, RijilV <rij...@gmail.com> wrote:> 2008/8/25 RijilV <rij...@gmail.com>: > realize Users::User_bundles["test"]Thanks, that did it. This seems like an odd language feature to me- as I was attempting to realize the object from inside the users module, I wouldn''t expect to need the namespace prefix, but sure enough it doesn''t work without it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---