[Puppet Users] puppet-jenkins_plugin module

2019-08-07 Thread Johan De Wit
Hi, For those interested in jenkins plugin configuration using puppet/groovy, have a look at https://github.com/witjoh/puppet-jenkins_plugin.git. This is still work in progress.  Comments/suggestions are very welcome. Grts -- Johan De Wit Open Source Consultant -- Open-Future Red Hat Certi

Re: [Puppet Users] Accessing the list of classes assigned to a node from within puppet

2019-08-07 Thread John Warburton
Thanks Dan But we are not using an ENC, so "classes" is not set. The lookup in site.pp yields: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Function lookup() did not find a value for the name 'classes' I am programatically looking for the content of /op

Re: [Puppet Users] Accessing the list of classes assigned to a node from within puppet

2019-08-07 Thread 'Dan White' via Puppet Users
How about a variation on this : # In site.pp, outside of any node definitions and below any top-scope variables: lookup('classes', Array[String], 'unique').include Lose the “include” and you have : $class_list = lookup('classes', Array[String], 'unique') —- "Someti

[Puppet Users] Accessing the list of classes assigned to a node from within puppet

2019-08-07 Thread John Warburton
Hi Everyone Back in the day of 2.x/3.x, I used to access the "classes" top scope variable and dump into templates - like this . I can't see to find the equivalent in puppet 6.x. Nothing in the built in variables doc