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

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') —-

[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