Puppet Dashboard; node.rake

108 views
Skip to first unread message

Stefan Heijmans

unread,
Dec 7, 2011, 6:54:50 AM12/7/11
to puppet...@googlegroups.com
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

Stefan Heijmans

unread,
Dec 10, 2011, 4:08:43 PM12/10/11
to puppet...@googlegroups.com
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
fulllist.rake

Nigel Kersten

unread,
Dec 11, 2011, 1:01:14 PM12/11/11
to puppet...@googlegroups.com, Kelsey Hightower, Dan Bode
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.


--
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...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



--
Nigel Kersten
Product Manager, Puppet Labs


Stefan Heijmans

unread,
Dec 13, 2011, 3:50:57 PM12/13/11
to puppet...@googlegroups.com, Kelsey Hightower, Dan Bode


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
 
Reply all
Reply to author
Forward
0 new messages