Re: [Puppet Users] Grouping hosts within environments

2013-06-06 Thread przemol
have something like this: $tags = { tag = 'app1' } create_resource(user, $myhash, $tags) -- Nikola On Thu, May 30, 2013 at 09:51:48AM -0700, przemol wrote: This approach requires to keep all the users in *.pp files. Currently we keep users in yaml file: accounts

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 p@cmcmarkets.com javascript: wrote: Hello, we have been using puppet 3 with hiera based config and several (usually typical

[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
accounts belong to that host by realizing only those that you need. node node10,node20 { User| tag == '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

[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

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

2013-05-23 Thread przemol
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 -0700, przemol wrote: Hello, I have some class which

[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

[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 received

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

2013-05-15 Thread przemol
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 On Tue, May 14, 2013 at 11:59 PM, przemol p@cmcmarkets.comjavascript: wrote

[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

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 p@cmcmarkets.com javascript