Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Matthew Kennedy
Gosh sorry, would be something like existant_class. On Wednesday, January 7, 2015 12:28:09 PM UTC-7, Felix.Frank wrote: > > On 01/07/2015 08:18 PM, Matthew Kennedy wrote: > > So changing this to: > > if ($profile == 'existantclass') { > include "profile::${separator}::${profile}" > } > > resu

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Felix Frank
On 01/07/2015 08:18 PM, Matthew Kennedy wrote: > So changing this to: > > if ($profile == 'existantclass') { > include "profile::${separator}::${profile}" > } > > results in Error 400 on SERVER: Could not find class > profile::app::existantclass for node1.vnet on node node1.vnet. Wait, what, so

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-07 Thread Matthew Kennedy
No, if you remove the defined() call and just include it will fail to find the class. Defined() is there simply to ensure that we can do the include. For a bit more context I've written an abstraction layer that assigns apps/roles to nodes and will pull in profiles if they exist, that is where

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-06 Thread Felix Frank
On 12/30/2014 09:05 PM, Matthew Kennedy wrote: > > | > if (defined("profile::${separator}::${profile}")) { > include "profile::${separator}::${profile}" > } > | Hi, Is the if defined() construct significant? Can you only reproduce when it is in place? Why is it there and what does i