We''re utilizing the Dashboard to manage which modules are included for each node. In this setup, nodes.pp is empty. E.g.: modules/repos includes the various repository files for each OS. ...And in the dashboard, there is a class titled ''repos'' and is assigned to the various nodes that we want to have their repo files managed. I''d like the ''repos'' module to be in the ''pre'' stage. I can instantiate the ''pre'' stage in a number of ways, but how can I assign the ''repos'' modules to the ''pre'' stage? I''ve read the documentation, and it seems to only work by placing it in a class { "repos": stage => pre; } block in something like nodes.pp; however, the problem with this is that this not only assigns ''repos'' to ''pre'', but ALSO includes the ''repos'' module for all nodes. Again, module assignment to nodes is managed in the dashboard, not nodes.pp. -- 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 Jan 24, 4:51 pm, sbb <sbbow...@gmail.com> wrote:> class { "repos": stage => pre; }I don''t think Dashboard has native support for run levels of classes, so you might have to do something like: class repos_pre { class { "repos": stage => pre; } } and then assign repos_pre to your nodes in Dashboard. -- 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.
Thanks for the reply. That is perhaps an interim solution, albeit not elegant and not within the motivations and spirit of the puppet goals. How about a feature request to manage class/module parameters like this directly in the Dashboard within the Class configuration? Or in the module definition (manifests/init.pp) as configurable directive ($stage = "pre")? On Jan 24, 12:11 pm, "luke.bigum" <luke.bi...@fasthosts.co.uk> wrote:> On Jan 24, 4:51 pm, sbb <sbbow...@gmail.com> wrote: > > > class { "repos": stage => pre; } > > I don''t think Dashboard has native support for run levels of classes, > so you might have to do something like: > > class repos_pre { > class { "repos": stage => pre; } > > } > > and then assign repos_pre to your nodes in Dashboard.-- 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 Mon, Jan 24, 2011 at 1:13 PM, sbb <sbbowman@gmail.com> wrote:> Thanks for the reply. > > That is perhaps an interim solution, albeit not elegant and not within > the motivations and spirit of the puppet goals. > > How about a feature request to manage class/module parameters like > this directly in the Dashboard within the Class configuration? Or in > the module definition (manifests/init.pp) as configurable directive > ($stage = "pre")?We''re working on adding support for parameterized classes in external node classifiers, and once that''s all done we''ll be adding the equivalent support to the Dashboard, as it''s an ENC.> > On Jan 24, 12:11 pm, "luke.bigum" <luke.bi...@fasthosts.co.uk> wrote: >> On Jan 24, 4:51 pm, sbb <sbbow...@gmail.com> wrote: >> >> > class { "repos": stage => pre; } >> >> I don''t think Dashboard has native support for run levels of classes, >> so you might have to do something like: >> >> class repos_pre { >> class { "repos": stage => pre; } >> >> } >> >> and then assign repos_pre to your nodes in Dashboard. > > -- > 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. > >-- 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.