[Puppet Users] Re: passing array param to hiera

2012-11-23 Thread mickael avedissian
FYI, if I replace $hostnames = [ 'dummy_host', 'dummy_host1' ] by $hostnames = 'dummy_host' this works. On Friday, November 23, 2012 12:19:11 PM UTC-5, mickael avedissian wrote: > > Hi, > > I'm having an issue trying to pass an array parameter

[Puppet Users] passing array param to hiera

2012-11-23 Thread mickael avedissian
Hi, I'm having an issue trying to pass an array parameter for a hiera lookup hiera.yaml: :hierarchy: - some_place/%{hostnames} dummy_host.yaml: --- host: 'dummy_host' instances: dummy01:1.2.3.4 dummy02:1.2.3.4 dummy03:1.2.3.4 in my manifest I have: $hostnames = [ 'dummy_host', 'dummy_h

Re: [Puppet Users] Puppet passing an array to a define to move directories

2012-11-19 Thread mickael avedissian
arning flag, that you're doing something > outside > the intended design of puppet. e.g. are you aware that your define will > try > to move the directories every time you run the agent with this? > > > > Best Regards, David > > On Sun, 18 Nov 2012 23:14:29 -0800 (P

[Puppet Users] Puppet passing an array to a define to move directories

2012-11-18 Thread mickael avedissian
Hi, I'm trying to use puppet to move some folders from one directory to another in Windows. That being said I have a parameterized define which looks like that: define module_name::move ($dir_name, $arg2){ $dir_origin = "c:/${dir_name}" $dir_destination = "c:/tmp/${arg2}" file { $dir_destinat

[Puppet Users] Re: Pass args as array to definition, Template...

2012-11-18 Thread mickael avedissian
On Friday, November 6, 2009 5:24:54 PM UTC-5, Douglas wrote: > > Can I do this in puppet? I think the example is pretty self explanatory. > > jboss::create_inst { > tfel0: > version => $jboss_version, > naming_port => "1099", > db_info => [ db_name