Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-21 Thread jcbollinger
On Wednesday, August 20, 2014 8:11:13 AM UTC-5, R.I. Pienaar wrote: It also works if you quote the 'Class[myclass]' so it should work if it comes from JSON or whatever Really? That's news to me. I wonder when that was added. John -- You received this message because you are

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-21 Thread Vincent Miszczak
I've done some tests : Foreman really just reply a YAML hash with the class name and its parameters (there is a viewer, it just output what it should). I've been trying parse order issue (myclass is output after applications), but having anotherclass that come before, it does not work. I've

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-21 Thread Ramin K
On 8/21/14 6:00 AM, jcbollinger wrote: On Wednesday, August 20, 2014 8:11:13 AM UTC-5, R.I. Pienaar wrote: It also works if you quote the 'Class[myclass]' so it should work if it comes from JSON or whatever Really? That's news to me. I wonder when that was added. John I'm curious

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-21 Thread R.I.Pienaar
- Original Message - From: Vincent Miszczak vincent.miszc...@gmail.com To: puppet-users@googlegroups.com Sent: Thursday, August 21, 2014 7:19:07 PM Subject: Re: [Puppet Users] Re: require broken with create_resources() ? I've done some tests : Foreman really just reply a YAML

[Puppet Users] Re: require broken with create_resources() ?

2014-08-20 Thread jcbollinger
On Wednesday, August 20, 2014 6:04:56 AM UTC-5, Vincent Miszczak wrote: Hello, I have a define like this : define application::install($root,$url,$user=root) { include git #Puppet wants a command to start with /something... $cmd=/bin/echo 1{ cd $root||mkdir $rootcd $root ; }git

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-20 Thread R.I.Pienaar
- Original Message - From: jcbollinger john.bollin...@stjude.org To: puppet-users@googlegroups.com Sent: Wednesday, August 20, 2014 2:01:09 PM Subject: [Puppet Users] Re: require broken with create_resources() ? On Wednesday, August 20, 2014 6:04:56 AM UTC-5, Vincent Miszczak

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-20 Thread Vincent Miszczak
I've simplified things a bit in the description to make it easy to read. I don't really have $apps = { test = { url= https://mygitrepos/myapp.git;, root= /opt/apps/myapp, user=root, require=Class[myclass], } } Instead, I pass a YAML hash through an ENC (Foreman to be

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-20 Thread Joseph Swick
On 20/08/14 09:50, Vincent Miszczak wrote: trim Instead, I pass a YAML hash through an ENC (Foreman to be precise): test: url: https://mygitrepos/myapp.git; root:/opt/apps/myapp user: root require: Class[myclass] I finally understand this won't work because this is expanded to