Re: [Puppet Users] Hiera isn't merging hashes

2014-02-26 Thread Andrey Kozichev
you need to use hiera 1.2 and enable deep merging On 26 Feb 2014 22:19, paul.le...@complex.com wrote: I have been doing some experimenting with Puppet + Hiera with some of my hashes, but when it is going through my hierarchy it is returning whatever hash it hits first and skipping the others.

Re: [Puppet Users] return codes from puppet command

2014-02-19 Thread Andrey Kozichev
puppet help agent * --detailed-exitcodes: Provide transaction information via exit codes. If this is enabled, an exit code of '2' means there were changes, an exit code of '4' means there were failures during the transaction, and an exit code of '6' means there were both changes and

Re: [Puppet Users] Re: Reg : War deployment with Puppet

2014-01-30 Thread Andrey Kozichev
we used to package into rpms as well On 30 January 2014 11:50, PaulC paul.can...@gmail.com wrote: Must admit i would be interested in seeing what other peoples approaches has been for this, we have been thinking about going down the route of getting the war files and any relevant library

Re: [Puppet Users] circular dependency between user/home and parent directory owned by that user

2014-01-30 Thread Andrey Kozichev
Something like managehome = false ? On 30 Jan 2014 16:51, David Portabella david.portabe...@gmail.com wrote: again, it is a circular dependency. what you are saying is to first create user and then file. but to create the user, we need the file first also. On Thursday, January 30, 2014

Re: [Puppet Users] hiera suggestion

2014-01-22 Thread Andrey Kozichev
Yes, I was thinking something like that. Is there a %{module} variable ? On 22 Jan 2014 07:39, Jose Luis Ledesma joseluis.lede...@gmail.com wrote: Copied from another thread: :hierarchy: ... - %{environment}/classes/%{calling_class} Perhaps it is easier that way. Regards -- You

[Puppet Users] hiera suggestion

2014-01-21 Thread Andrey Kozichev
Hi community, I need a suggestion. Some of my modules like nagios or nfs shares are having a lot of static data which needs to be defined in the bottom of hierarchy. It makes my file generic.yaml quite massive and not that readable. What are the options do I have to separate this into more

Re: [Puppet Users] hiera suggestion

2014-01-21 Thread Andrey Kozichev
or two static vars. I would suggest putting defaults in your modules so you don't need to set so many variables. Basing those defaults of custom facts would help reduce your need to set vars in hiera. On 21 January 2014 21:28, Andrey Kozichev akozic...@gmail.com wrote: Hi community, I need

Re: [Puppet Users] Problems with onlyif in Exec

2014-01-20 Thread Andrey Kozichev
Onliif looks at exit code, not at echo value. If you are piping - it will be exit code of the last command. Use grep -q or something to get a non-zero code On 20 Jan 2014 13:02, Jan-Frederic Markert jan-frederic.mark...@codecentric.de wrote: Hey, we want to check a condition before

Re: [Puppet Users] puppet user context

2014-01-17 Thread Andrey Kozichev
Not sure, what is your task. Where are you getting users from? Is it everyone or do you have defined list? Andrey On 17 Jan 2014 07:39, Robert Turk r.t...@reproflex.de wrote: Am 16.01.14 13:50, schrieb Andrey Kozichev: Do you need to run this only for logged in users? No not really

Re: [Puppet Users] Augeas: Duplicate declaration

2014-01-17 Thread Andrey Kozichev
ah, right you are supplying entire hash in your defined resource. Missed it. If your defined resource would accept: name, iphost and hostname - then you can use create_resources to define all 3 entry. On 17 Jan 2014 15:21, Reinaldo Lima reiml...@gmail.com wrote: With create_resources the error

Re: [Puppet Users] Puppet Fundamentals training - how fundamental is it?

2014-01-17 Thread Andrey Kozichev
Best training you can get: define a task and then try to solve it. On 17 Jan 2014 17:38, David Taylor david.a.tay...@gmail.com wrote: Hi all, I've been playing around with Puppet with a view to implementing it at my workplace. I've already run through the Learning Puppet tutorial on

Re: [Puppet Users] puppet user context

2014-01-16 Thread Andrey Kozichev
Do you need to run this only for logged in users? You can use facter fact to return logged in users and use it in your manifest. Andrey On 16 January 2014 07:12, Robert Turk r.t...@reproflex.de wrote: Good morning, I have a question concerning puppet and modifying user data. I am on Mac OS

Re: [Puppet Users] 400 Error on nodes when trying to receive catalog from master

2014-01-16 Thread Andrey Kozichev
looks like your apache redirect doesn't work. Or puppet master stopped.(if you are using mongrel) check htttpd.conf Andrey On 16 Jan 2014 19:20, Jordan Piel jbenp...@gmail.com wrote: I've dabbled with puppet, but this is my first time setting it up. I'm running RHEL 6.5 on PE 3.1.1 on both my

Re: [Puppet Users] Augeas: Duplicate declaration

2014-01-16 Thread Andrey Kozichev
another option to use create_resources('hostinclude',$netentry) On 16 Jan 2014 23:47, Nick Cammorato nick.cammor...@gmail.com wrote: Your augeas resource is always called hosts_include which is why it's doing that. Try including the entry[name] in that resource name. On Jan 16, 2014 4:15 PM,

Re: [Puppet Users] Replace multiple expression with a variable in a selector

2014-01-15 Thread Andrey Kozichev
try $VARIABLE ='(host1|host2|host3)' $testing = $::hostname ? { /$VARIABLE/ = 'filetest', default= 'file', } On 15 January 2014 11:19, Francisco José Bejarano fjbejar...@gmail.comwrote: Greetings to all I have a question about the use of selectors. I am using 3.4.2 I have

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Andrey Kozichev
without making create_resources inside of create_resources or run loop on nfs_resouce_name and then create_resource for each item. There must be simpler way. Any hints appreciated. Andrey Andrey On 14 January 2014 02:38, Ian Mortimer i.morti...@uq.edu.au wrote: On 14/01/14 03:49, Andrey

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Andrey Kozichev
Thank you John, it looks like what I need. I was doing something similar but was getting an error on create_resource, I think I see now what was wrong. I will try this. Andrey On 14 Jan 2014 23:16, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, January 14, 2014 6:37:56 AM UTC-6,

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Andrey Kozichev
Thanks for the link. I will have a look. On 15 Jan 2014 04:16, Garrett Honeycutt g...@garretthoneycutt.com wrote: On Monday, January 13, 2014 9:38:33 PM UTC-5, ianm wrote: On 14/01/14 03:49, Andrey Kozichev wrote: This scenario works well if on the class input I just supply single

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-13 Thread Andrey Kozichev
Hello guys, I am working on similar task. Trying to find the way to define all NFS shares somewhere in the high level of hierarchy and then just add/remove them on the node level just by name. So I am using the class which accepts mountpoint names, then I want to do hiera lookup for each name

[Puppet Users] puppetlabs mcollective module + clustering

2014-01-10 Thread Andrey Kozichev
Is anyone using mcollective module from puppetlabs? is there built-in way to configure activemq clustering between 2 DCs which I am missing? Andrey -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop

Re: [Puppet Users] Single certificate, multiple nodes... or image-based systems

2014-01-09 Thread Andrey Kozichev
Maybe look into running masterless to avoid problems with certs. Just run puppet apply on the new server. On 9 Jan 2014 09:42, Pablo Fernandez pablo.fernan...@cscs.ch wrote: Dear all, We are thinking about the possibility of using Puppet in an image-based cluster. The compute nodes would boot

Re: [Puppet Users] Single certificate, multiple nodes... or image-based systems

2014-01-09 Thread Andrey Kozichev
! BR/Pablo On 01/09/2014 12:16 PM, Andrey Kozichev wrote: Maybe look into running masterless to avoid problems with certs. Just run puppet apply on the new server. On 9 Jan 2014 09:42, Pablo Fernandez pablo.fernan...@cscs.ch wrote: Dear all, We are thinking about the possibility of using

Re: [Puppet Users] Single certificate, multiple nodes... or image-based systems

2014-01-09 Thread Andrey Kozichev
not entirely image-based, when new server was booted for the first time: 1. it made http call to puppetmaster with it's hostname to do puppet cert clean hostname 2. do puppet run 3. made HTTP call to do puppet cert sign It was kind of autosign + in case of CERT already existed it was removed

Re: [Puppet Users] Where do custom facter facts go on the Learning VM ? Is that the cause of these behaviors?

2014-01-08 Thread Andrey Kozichev
i think everything is fine with your code. Problem might be with location. Dont know about PE, but for facter if you do export FACTERLIB= you dir, then you can run facter to see your custom fact On 8 Jan 2014 21:52, Shark Laser sharklaser1...@gmail.com wrote: Platform: I've downloaded and

Re: [Puppet Users] only subclasses can modify ?

2014-01-07 Thread Andrey Kozichev
You need to inherit users::local in users::modify On 7 Jan 2014 10:12, Klavs Klavsen kl...@enableit.dk wrote: I'm trying to modify certain users, created with by calling the define users::local. I tried to do it, by calling users::local::modify - but then puppet complains that only

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-07 Thread Andrey Kozichev
Content of the yaml file - any quotes there which might cause issues? Try puppet master compile for the node - is it failing as well? What version of Puppet are you running? *3.4.1 for both master and agent* As what user is the master running? (Typically an unprivileged user named 'puppet'.)

Re: [Puppet Users] dashed by dashboard

2014-01-06 Thread Andrey Kozichev
Yum expects to find rpm package and you installed it from gem. On 6 Jan 2014 18:36, Stuart Cracraft smcracr...@gmail.com wrote: So I have decided to give Foreman a try. Yet, the following occurred when I tried to install It. Ruby enthusiasts, any thoughts? The rest-client installed is

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-06 Thread Andrey Kozichev
I assume ssh_service_config is indeed defined in your yaml file? I would suggest to define it in the top level hierarchy in defaults and then gradually move 1 level down until you find when it disappears. Andrey On 6 January 2014 19:20, kai kaiva...@gmail.com wrote: I have the following

Re: [Puppet Users] Hiera and puppet apply/puppet agent

2014-01-06 Thread Andrey Kozichev
Anything in the puppet master logs? Not sure, but i think puppet apply - hiera lookup is done by client, puppet agent - lookup is done by puppet master. Andrey On 6 Jan 2014 21:33, kai kaiva...@gmail.com wrote: Yes it's defined in :

Re: [Puppet Users] sudo class not found

2014-01-06 Thread Andrey Kozichev
init.pp should be inside the manifests folder. On 7 Jan 2014 07:03, Tim Dunphy bluethu...@gmail.com wrote: Hey all, I'm attempting to follow along with the puppet pro book. And I'm trying to create my first module without much success. This is the error that I'm getting when I do a puppet

[Puppet Users] Hiera + parametrised classes

2014-01-03 Thread Andrey Kozichev
Hi! Couldn't find the answer in the documentation. Is it possible to source data from Hiera directly into parametrised classes? To explain: I have class mcollective(type,middleware_hosts,securityprovider ) Can I define all arguments for this class in Hiera and fetch them all in one Hiera

Re: [Puppet Users] Hiera + parametrised classes

2014-01-03 Thread Andrey Kozichev
dahhh, tried to invent a bicycle, thanks :) On 3 January 2014 15:08, Felix Frank felix.fr...@alumni.tu-berlin.dewrote: Hi, you didn't look hard enough ;-) http://docs.puppetlabs.com/hiera/1/puppet.html#automatic-parameter-lookup HTH, Felix On 01/03/2014 03:54 PM, Andrey Kozichev wrote

Re: [Puppet Users] Hiera + parametrised classes

2014-01-03 Thread Andrey Kozichev
https://groups.google.com/groups/opt_out. Le 3 janv. 2014 à 15:54, Andrey Kozichev akozic...@gmail.com a écrit : Hi! Couldn't find the answer in the documentation. Is it possible to source data from Hiera directly into parametrised classes? To explain: I have class mcollective(type

Re: [Puppet Users] run puppet for few modules only, not for all catalogue

2012-07-19 Thread Andrey Kozichev
Thanks a lot Martin! This is exactly what I need. On 19 Jul 2012, at 12:44, Martin Alfke tux...@gmail.com wrote: Hi On 19.07.2012, at 11:52, Andrew wrote: I am looking the way to apply only few selected modules to the puppet node instead of all catalogue. I need this step to be done as