Hello everybody! I try to start using puppet-dashboard. It was installed ok and can show reports from nodes. As next step, i want to manage classes-nodes association with puppet. How can i import curent class definition from /etc/puppet/manifest/ classes.pp ? Or i should create it from scratch? wbr, alw -- 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 Thu, 28 Oct 2010 03:16:13 -0700, walexey wrote:> > Hello everybody! > > I try to start using puppet-dashboard. It was installed ok and can > show reports from nodes. > As next step, i want to manage classes-nodes association with puppet. > How can i import curent class definition from /etc/puppet/manifest/ > classes.pp ? > Or i should create it from scratch? > > wbr, alw >Currently, I''m not aware of any automated way to import class and node -> class associations into Puppet Dashboard, and the Dashboard doesn''t currently ship with a tool to do this. Since the Dashboard is a mostly "standard" Ruby on Rails app, you do get a RESTy interface for free, so you could automate a good chunk of this yourself, if you wanted to. As things are right now, your options pretty much are to create classes and the node -> class associations by hand through the web interface, or to parse the files you''re interested in and use the RESTy interface to put the information into the Dashboard. -- Jacob Helwig
If you''re a not too bad on the command line, you could generate lists of your classes and nodes, then write a quick script to generate SQL to insert directly into the dashboard DB - the DB schema is quite simple. I do this to classify nodes into class groups - not because I use Dashboad as an external node source, but just for the grouping functionality in the interface. On Oct 28, 11:16 am, walexey <wale...@gmail.com> wrote:> Hello everybody! > > I try to start using puppet-dashboard. It was installed ok and can > show reports from nodes. > As next step, i want to manage classes-nodes association with puppet. > How can i import curent class definition from /etc/puppet/manifest/ > classes.pp ? > Or i should create it from scratch? > > wbr, alw-- 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.
not that i want to hijack the thread, but foreman[1] support this out of the box. Ohad [1] - http://theforeman.org/projects/foreman/wiki/External_Nodes#Import-your-environment-and-classes-setup On Thu, Oct 28, 2010 at 12:16 PM, walexey <walexey@gmail.com> wrote:> Hello everybody! > > I try to start using puppet-dashboard. It was installed ok and can > show reports from nodes. > As next step, i want to manage classes-nodes association with puppet. > How can i import curent class definition from /etc/puppet/manifest/ > classes.pp ? > Or i should create it from scratch? > > wbr, alw > > -- > 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<puppet-users%2Bunsubscribe@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.