Hello, I''ve added an extra rake task (node:listfull) to node.rake which displays the nodes (all or by match) with defined groups & classes on it, like; Nodename = <node> Groups = <group1>,<group2>,<group3> Classes = <class1>,<class2>,<class3> For groups I use; NodeGroup.find(node.node_groups).each do |nodegroup| and classes; NodeClass.find(node.node_classes).each do |nodeclass| But now I also want to display the parameters defined on a node, how would I do that, could not find it (yet) in any other rake task. Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Z6vcopoPWBwJ. 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.
Finally found out how it worked, I''ve create a 2 new rake tasks (all or by match) to display a fulllist of nodes with Nodename : <node> Params : <param1>=<value1>,<param2>=<value2> Groups : <group1>,<group2>,<group3> Classes : <class1>,<class2>,<class3> fulllist of groups with Group : <group> Params : <param1>=<value1>,<param2>=<value2> Classes : <class1>,<class2>,<class3> Nodes : <node1>,<node2>,<node3> Now I can easily search where what is used. I''ve attached the rake file if people want to use it. Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/0bl7zHa0ukgJ. 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.
Nice work Stefan! (as an aside, we keep digging up positive contributors named "Stefan" in the Puppet community. If this trend continues, I expect 90% of posts to be from a "Stefan" in 12 months time ;-) ) I''ve cc''d Dan and Kelsey, who have both been working on a Dashboard Puppet Face for command-line control. Although the rake tasks are totally useful, we''d like to be able to have all this functionality under a "puppet dashboard ..." set of commands. On Sat, Dec 10, 2011 at 1:08 PM, Stefan Heijmans <heijmans@rechtspraak.nl>wrote:> Finally found out how it worked, I''ve create a 2 new rake tasks (all or by > match) to display a > fulllist of nodes with > Nodename : <node> > Params : <param1>=<value1>,<param2>=<value2> > Groups : <group1>,<group2>,<group3> > Classes : <class1>,<class2>,<class3> > > fulllist of groups with > Group : <group> > Params : <param1>=<value1>,<param2>=<value2> > Classes : <class1>,<class2>,<class3> > Nodes : <node1>,<node2>,<node3> > > Now I can easily search where what is used. > I''ve attached the rake file if people want to use it. > > Stefan > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/0bl7zHa0ukgJ. > > 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. >-- Nigel Kersten Product Manager, Puppet Labs -- 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.
Op zondag 11 december 2011 19:01:14 UTC+1 schreef Nigel Kersten het volgende:> > I''ve cc''d Dan and Kelsey, who have both been working on a Dashboard Puppet > Face for command-line control. Although the rake tasks are totally useful, > we''d like to be able to have all this functionality under a "puppet > dashboard ..." set of commands. > -- > Nigel Kersten > Product Manager, Puppet Labs >Hi Nigel, we use rake at the moment as; - we still run 2.6.12 in production - I don''t get the Dashboard Puppet Face working on our test system with RHEL5.7 which has ruby 1.8.5 gem install activerecord results in *** buffer overflow detected ***: /usr/bin/ruby terminated /lib64/libc.so.6(__chk_fail+0x2f)[0x326bae807f] and activerecord 2.3.14 does install but doesn''t seem to work. Stefan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/_gTltiX8x10J. 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.