Re: [Puppet Users] run beaker tests on a live system

2015-05-06 Thread Thomas Müller
I discovered that rspec is able to have tags on describe/context/it and filter it with maybe rspec --tag liveacceptance:true to only include the relevant tests. You would definitely want to be careful on how to structure your tests. Any tests with `apply_manifest` or the like

Re: [Puppet Users] Re: trying to create a hash using the generate function

2015-05-06 Thread Allen Myers
thanks for the clarification. It's fixed by creating JSON format data and using parsejson. Thanks! - Allen On Tue, May 5, 2015 at 11:45 PM, Michael Pawlak m...@colovore.com wrote: Allen, The generate function simply returns the output of an external command, as executed on the puppet

Re: [Puppet Users] Re: permission denied errors on /var/lib/puppet stuff during puppetd -t

2015-05-06 Thread Mr Eathernet
Thank you! For me, it was in /usr/share/puppet/ext/rack/ The following fixed it: chown puppet:puppet /usr/share/puppet/ext/rack/config.ru -eathernet On Saturday, 17 March 2012 07:05:39 UTC+10, Justin Lloyd wrote: Finally found the answer in this thread:

[Puppet Users] API access without using TLS for VMware Orchestrator

2015-05-06 Thread Erling Ringen Elvsrud
Hi! We use VMware Orchestrator for provisioning and needs to integrate it with Puppet Enterprise 3.7.2. Orchestrator needs to access the certificate_status API endpoint like this (just an example with curl): curl --insecure -H Accept: pson

[Puppet Users] parsejson truncating output (i think)

2015-05-06 Thread Allen Myers
Hi, I've got the following statements in my manifest: $myusers_json = generate ('/bin/sh', '-c', '/path/to/my/script.sh') notice ($myusers_json) $myusers = parsejson ($myusers_json) notice ($myusers) My script generates a list of users in JSON and I've verified that the output format from

Re: [Puppet Users] marking last modified time in a template

2015-05-06 Thread Peter Berghold
my first answer to this was to look at the file modification time. For whatever reason they wanted to know if I could add a line saying something on the order of Last Modified By Puppet: date. I'm just going to tell them they're nuts. On Wed, May 6, 2015 at 2:59 PM Dan White

[Puppet Users] marking last modified time in a template

2015-05-06 Thread Peter Berghold
I use templates to manage a slew of configuration files. One request from my end user community (Operations folks) was to have Puppet mark the last time a file was modified by Puppet as a comment in the file. Seems like a Heisenburg problem to me. Just marking a time date inside a template

Re: [Puppet Users] marking last modified time in a template

2015-05-06 Thread Dan White
If Puppet manages the file, then the file's mod time is the time in question. Why do they want it IN the file ? Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. Bill Waterson (Calvin Hobbes) On May 6, 2015,

[Puppet Users] Re: Execute puppet agent on nodes from Jenkins jobs.

2015-05-06 Thread ffrodrigues2011
Hi Clayton, Thank you for your help Regards, Fernando Em domingo, 3 de maio de 2015 17:24:28 UTC-4, Fernando FFR escreveu: Hi Guys, I would like to use Jenkins to execute puppet agent on remote nodes. Does someone know how I could do that? Thanks, Regards, Fernando -- You

Re: [Puppet Users] puppet exported resources dramatic performance

2015-05-06 Thread Michael Pawlak
Frederic, Based on the size of your farm, you may want to start thinking about either load balancing your puppet master (nginx, ha proxy, SRV records, etc.) or possibly decentralizing your puppet deployments (masterless). Remember that all manifest compilations take place on the puppet master and

[Puppet Users] Error: Could not retrieve catalog from remote server: execution expired

2015-05-06 Thread Danny Roberts
Hi Folks, I have a new server (with a rather large amount of data in Hiera I must admit), when running the puppet client via the CLI I get the following: # puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote

[Puppet Users] puppet exported resources dramatic performance

2015-05-06 Thread SCHAER Frederic
Hi Puppet users, I know this has been discussed several times, but I did not find the information/fix I'm looking for, so here I go... I have a farm of ~370 servers. I have a single puppet master (12 physical cores, lots of RAM) on which I deployed puppet 3.7.5 this week (not using r10k, that's

[Puppet Users] Re: Puppet master cannot paas agent fqdp/hostname to enc

2015-05-06 Thread jcbollinger
On Wednesday, May 6, 2015 at 5:27:41 AM UTC-5, Journey Journey wrote: Hello Everyone puppet version:3.6.2 In order to simplify ssl certification management, our puppet agents use the same certname,like: certname=agent.puppet.google.com in puppet.conf puppet master use ENC to

Re: [Puppet Users] Re: puppet agent 4.0 running as root vs puppet server 2.0 running as puppet

2015-05-06 Thread Josh Cooper
On Wed, May 6, 2015 at 7:29 AM, Johnson Earls darkfoxpr...@gmail.com wrote: never mind. puppet agent ignores the user/group config settings, so those should be kept at puppet, and ${::settings::user} / ${::settings::group} should not be used to configure agent-related options (such as file

[Puppet Users] Timezone of Foreman-Logs / Puppet-Reports

2015-05-06 Thread hoize
Hello! I am searching for a solution to change the timezone of the Foreman-Logs in the MySQL Database. The Timezone of MySQL is the right one (UTC +2 / CEST), but I'm not sure if the problem is in foreman or in puppet or both. The Date/Time entry of the logs is timezone UTC. Does anyone has a

Re: [Puppet Users] Error: Could not retrieve catalog from remote server: execution expired

2015-05-06 Thread Danny Roberts
Just to add to this, we actually have a couple of servers that whilst not having their config in Hiera do have a SIGNIFICANTLY larger Puppet config. So I'm not entirely sure the amount of data is actually relevant. On 6 May 2015 at 16:29, Danny Roberts dannyroberts.perso...@googlemail.com wrote: