[Puppet Users] facter external fact tips?

2015-01-08 Thread Christopher Wood
(As background, I am attempting to create an is/oos toggle, for servers, in facter. Before I file bugs on two oddities, maybe somebody here could tell me if I'm misunderstanding something. I am using facter 2.3.0 from the puppetlabs apt/yum repositories, required from an external ruby script. I

Re: [Puppet Users] Vagrant Puppetmaster Cert

2015-01-08 Thread Drew
Yep, that's exactly what I'm saying. Like I said, it's weird. Maybe something with the time? Thanks! On Tuesday, January 6, 2015 6:21:14 PM UTC-5, Felix.Frank wrote: > > Hi, > > so are you saying that after SSL breaks, you can fix it by restarting > the service? > > On 01/02/2015 08:39 PM,

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2015-01-08 Thread Christopher Wood
Yes it does, and that's something that you would configure to not happen at the same time (with fqdn_rand, or better, remote syslog). https://docs.puppetlabs.com/references/latest/function.html#fqdnrand I found some irritating hitches with running through a cut-down environment using mcollectiv

[Puppet Users] Re: Puppet master on Windows

2015-01-08 Thread Alejandro del Castillo
Hi Chris, Before I saw your answer, I went ahead and installed puppet agent on Windows, thinking that it should get me most of the pieces needed for puppet master installed. I was pleasantly surprised to discover that puppet has a single entry point for master, agent, cert, etc, which means tha

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Raphael
Got it ! Thx for these explanation :D Le jeudi 8 janvier 2015 17:17:06 UTC+1, Martin Alfke a écrit : > > > On 08 Jan 2015, at 17:12, Raphael > > wrote: > > > Hi Martin, > > thx for this quick answer :] > > > > When in puppet you use hiera_hash, the behaviour is the same as the -h > option i

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Martin Alfke
On 08 Jan 2015, at 17:12, Raphael wrote: > Hi Martin, > thx for this quick answer :] > > When in puppet you use hiera_hash, the behaviour is the same as the -h option > in cli ? Yes. CLI <-> Puppet: hiera -a <-> hiera_array(…) hiera -h <-> hiser_hash(…) hiera <-> hiera(…) > > Le jeudi 8 ja

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Raphael
Hi Martin, thx for this quick answer :] When in puppet you use hiera_hash, the behaviour is the same as the -h option in cli ? Le jeudi 8 janvier 2015 17:09:32 UTC+1, Martin Alfke a écrit : > > When using cli you want to tell hiera to look up all hashes: > > hiera -h site_users fqdn=myhost > >

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Martin Alfke
When using cli you want to tell hiera to look up all hashes: hiera -h site_users fqdn=myhost On 08 Jan 2015, at 17:02, Raphael wrote: > Oh yeah ! Sorry for this noise ! The manifest on my nodes applyed properly > ... and I've got the the proper output from cli with the facts provided. > > Reg

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Raphael
Oh yeah ! Sorry for this noise ! The manifest on my nodes applyed properly ... and I've got the the proper output from cli with the facts provided. Regarding the lookup, here what I have : Based on https://docs.puppetlabs.com/hiera/1/lookup_types.html hiera site_users {"bob"=>{"uid"=>501, "shel

Re: [Puppet Users] Install puppet agent via puppet master

2015-01-08 Thread Dan White
How about "yum install puppet" ? The puppet master setup I built uses the $::fqdn for the certname, so on the agent, is it a basic install it and run it. All the nitty-gritty details are done on the master. “Sometimes I think the surest sign that intelligent life exists elsewhere in the univ

[Puppet Users] Re: Install puppet agent via puppet master

2015-01-08 Thread kaustubh chaudhari
There are other tools which can do it, like HPSA it will scan the n/w and install the agent on the system that you want. With puppet no. The best option is already suggested. Have the agent installed in your template and deploy the vm using the template, you will have Puppet agent running on t

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Johan De Wit
Hi Raphael, hiera smtpserver domain=example.com That should work. If using hiera from CLI, you need to provide the facts etc also. See the docs : https://docs.puppetlabs.com/hiera/1/command_line.html hth johan On 08/01/15 09:52, Raphael wrote: Hi, I have a working puppetmaster installed

Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Martin Alfke
Hi, > On 08.01.2015, at 09:52, Raphael wrote: > > Hi, > I have a working puppetmaster installed from package on an ubuntu server > 14.04 64bits. > I've been struggeling for a while now with hiera to achieve what it is > written in the doc ; > > My hiera version is 1.3.0 > Puppetmaster version

[Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Raphael
Hi, I have a working puppetmaster installed from package on an ubuntu server 14.04 64bits. I've been struggeling for a while now with hiera to achieve what it is written in the doc ; My hiera version is 1.3.0 Puppetmaster version 3.4.3 My hierachy settings is quite simple, with a common file an

[Puppet Users] Re: Using http_proxy environment variable

2015-01-08 Thread jcbollinger
On Wednesday, January 7, 2015 3:28:30 PM UTC-6, Kai Timmer wrote: > > Hello, > I have to use a proxy to connect to the internet. > > My puppet works fine when I call it manually as root (with http_proxy > set). But the "normal" agent doesn't seem to use the proxy. I always get a > timeout when

Re: [Puppet Users] Re: many agents connecting at same time and 100+ nodes failed.

2015-01-08 Thread Suresh P
Hi All, I have found one more issue. When we install puppet agent, it creates logrotate which will kill the puppet and restart it. We have configured logroate for all the nodes at 1st minute of everday(00:01). Because of that all the node's puppet agent get reloaded at 00:01 minutes so

Re: [Puppet Users] Unable to retrieve catalog with Hiera as ENC

2015-01-08 Thread Adrien Kutak
Well, it works correctly now. Thanks Adrien Le mercredi 7 janvier 2015 10:26:17 UTC+1, Adrien Kutak a écrit : > > Hi felix, > > Yes, i'm using puppet 3.7.3 on debian.wheezy > I have also installed this gems : > > - hiera-file > - hiera-gpg 0.1.1 > > I'll delete all hiera's gems and retry > > T