[Puppet Users] puppet/hiera - how to debug errors ?

2013-05-14 Thread przemol
Hello all, we have been using puppet/hiera based configuration (puppet 3.1) . I have the following config: /etc/puppet/environments/env1/manifests/site.pp node default { hiera_include ( "classes", [] ) } in the common.yaml file: classes: - class1 - class2 - class3 vmwaretools::v

Re: [Puppet Users] puppet/hiera - how to debug errors ?

2013-05-14 Thread przemol
I have included it in my first post: /etc/puppet/environments/env1/ manifests/site.pp node default { hiera_include ( "classes", [] ) } On Tuesday, May 14, 2013 2:45:02 PM UTC+1, denmat wrote: > > What's on that line? > > On 14/05/2013, at 22:02, przemol

Re: [Puppet Users] puppet/hiera - how to debug errors ?

2013-05-15 Thread przemol
t; Incorrect YAML file was the culprit. Error is non-descriptive though. > > This will help you find the file. > for i in `find ./ -name *.yaml` ;do echo $i ; ruby -e "require 'yaml'; > YAML.parse(File.open('$i'))" ;done > > Cheers, > Den > &g

[Puppet Users] Delete directory contents if this is older then ..

2013-05-21 Thread przemol
Hello, I would like to clean up some directories (linux) and remove some old contents which is older than e.g. 7 days. One way is to setup cron job (of course using puppet ...) which clears these directories. Is there any other puppet recommended way of doing that ? Regards -- You received th

[Puppet Users] Re: Delete directory contents if this is older then ..

2013-05-21 Thread przemol
On Tuesday, May 21, 2013 11:52:22 AM UTC+1, Paul Tötterman wrote: > > Hi, > > Is there any other puppet recommended way of doing that ? >> > > http://docs.puppetlabs.com/references/latest/type.html#tidy > > Cheers, > Paul > Thanks Paul - this is what I was looking for :-) Cheers P. -- You r

[Puppet Users] How to trace an order of all execs ?

2013-05-23 Thread przemol
Hello, I have some class which has quite a lot of execs with notify etc. Since puppet is not required to run them in the order they are in a file is it possible to monitor an order of all execs including parameters/arguments for each exec ? Regards -- You received this message because you are

Re: [Puppet Users] How to trace an order of all execs ?

2013-05-23 Thread przemol
can watch the order > with > > --trace --debug > > but it might not give you the whole command parameter but just the exec > title. If you can make those to match you will be ok with that method. > > -- > Nikola > > On Thu, May 23, 2013 at 01:05:56AM -07

[Puppet Users] Grouping hosts within environments

2013-05-30 Thread przemol
Hello, we have been using puppet 3 with hiera based config and several (usually "typical") environments: test predev dev preprod prod ... Basically we apply the puppet config to test, then predev, then dev, etc But within each environment we have quite a large number of hosts (20/50/100/300/...)

Re: [Puppet Users] Grouping hosts within environments

2013-05-30 Thread przemol
;app1' |>> > } > > I would also introduce a fact that exposes the fact that user accounts > of 'app1' "belong" to a particular host > > On Thu, May 30, 2013 at 08:02:34AM -0700, przemol wrote: > > Hello, > > > > we hav

Re: [Puppet Users] Grouping hosts within environments

2013-06-04 Thread przemol
regarding deploying hiera based puppet in more diverse environments. On Friday, May 31, 2013 1:36:52 AM UTC+1, Pete wrote: > > On 31 May 2013 01:02, przemol > wrote: > >> Hello, >> >> we have been using puppet 3 with hiera based config and several (usually >&

Re: [Puppet Users] Grouping hosts within environments

2013-06-06 Thread przemol
you can use the third parameter for > create_resource which is just the default parameters. So you would have > something like this: > > $tags = { > tag => 'app1' > } > > create_resource(user, $myhash, $tags) > > > -- > Nikola > > On T