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

2015-05-05 Thread Johnson Earls
I'm running into a frustrating issue, and I'm wondering if I'm just not doing something right. My understanding is that the puppet agent has to run with the config "user" and "group" set to "root" so that it can make changes to the system. The puppet server, on the other hand, runs as user and g

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

2015-05-05 Thread Allen Myers
definitely helps! that's the road I was just researching, but it helps to verify that I'm on the right track. :) Thanks! - Allen On Tuesday, May 5, 2015 at 5:06:15 PM UTC-7, Allen Myers wrote: > > Hi, > > I have shell script that generates a hash of user accounts that need to be > created/main

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

2015-05-05 Thread Charlie Sharpsteen
On Tuesday, May 5, 2015 at 5:06:15 PM UTC-7, Allen Myers wrote: > So, based on the error messages, it's obvious that the generate() function > is returning the string data type. Can I force it to return the hash data > type? > Or is there a way to convert a string to a hash? > The generate() f

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

2015-05-05 Thread Allen Myers
Hi, I have shell script that generates a hash of user accounts that need to be created/maintained by puppet. In my manifest I'm calling it using the generate() function: $myusers = generate ('/bin/sh', '-c', '/path/to/my/script.sh') The output of the script looks like: { 'user

Re: [Puppet Users] Multi-master with SRV records

2015-05-05 Thread Christopher Wood
On Tue, May 05, 2015 at 12:46:10PM -0700, Justin Lambert wrote: > > > I need to build a new puppet environment and was looking at using SRV > records for a multi-master setup. Having a single master and SRV records > works great, but I haven’t successfully been able to build a second master.

[Puppet Users] Multi-master with SRV records

2015-05-05 Thread Justin Lambert
I need to build a new puppet environment and was looking at using SRV records for a multi-master setup. Having a single master and SRV records works great, but I haven’t successfully been able to build a second master. https://docs.puppetlabs.com/guides/scaling_multiple_masters.html#option-4

[Puppet Users] Preserving single quotes

2015-05-05 Thread Marcos Renato
Hi how to add this command line (alias ls='ls --color=auto') to a file preserving single quotes? Thanks, Marcos -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an emai

Re: [Puppet Users] How to view the change in files on the puppet client?

2015-05-05 Thread Peter Kristolaitis
The option you're looking for is --show_diff However, you should just use "puppet agent runonce --test" when testing stuff; the --test flag sets all of the flags that you normally use for debugging, including --no-daemonize, --verbose, and --show_diff (plus a few others -- see the man page).

[Puppet Users] How to view the change in files on the puppet client?

2015-05-05 Thread Gang Qin
Dear Puppet Expert: When I run ''puppet agent --no-daemonize --verbose --onetime --noop " , I see a change in /etc/condor/config.d/wn-wn.config: Notice: /Stage[second]/Condor::Config-wn-westmere/File[/etc/condor/config.d/wn-wn.config]/content: current_value {md5}a13d0e32d20eac20006194794f

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

2015-05-05 Thread Hunter Haugen
On Tue, May 5, 2015 at 6:31 AM, Thomas Müller wrote: > hi > > I'm trying to get started with beaker testing. we will introduce the > role/profile pattern and want to enforce the acceptance criterias per > profile class. Operations would like to reuse the puppet tests on live > systems to verify t

Re: [Puppet Users] Puppet on s390

2015-05-05 Thread Michael Weiner
Rob Thank you. Do you know where I can get this source code? It doesn't appear that I can download anything from the debian link. It seems to me the problem I had was with facter On Tue, May 5, 2015 at 12:26 AM, Rob Browning wrote: > Michael Weiner writes: > > > Hello group. First post here!

[Puppet Users] run beaker tests on a live system

2015-05-05 Thread Thomas Müller
hi I'm trying to get started with beaker testing. we will introduce the role/profile pattern and want to enforce the acceptance criterias per profile class. Operations would like to reuse the puppet tests on live systems to verify the state. This leads to the requirement to be able to disabl

Re: [Puppet Users] Hiera Hash Merge - Avoiding Duplicating

2015-05-05 Thread jcbollinger
On Monday, May 4, 2015 at 9:04:37 AM UTC-5, Joseph Swick wrote: > My issue is that as more module support the passing of custom parameters > via a hash that people populate with Heira lookups (regardless of > storage backend), they're going to be running into this issue even more > and wonde

[Puppet Users] Re: Can't Execute Scripts?

2015-05-05 Thread Jacob W.
John, Thank you for your help; it pointed me in the right direction. My problem ended up being something quirky to our environment. Someone setup a script so when we pushed files a header would be added that said "Managed by Puppet" and such so no one would modify that file from the end system

[Puppet Users] Re: Is anyone using puppet server 2.0.0 successfully?

2015-05-05 Thread Chris Barbour
I recall reading that this default has changed in the latest releases of Puppetserver for the reasons you cite. If this host is a dedicated Puppemaster, be aware that the number of threads will dramatically affect the throughput of your master. Determining catalog compile time is pretty simple;