[Puppet Users] run module although with time condition, but also possibilty execute even so not in that time frame

2013-09-04 Thread Andreas Dvorak
Hi, I need an idea to write modules that have a time condition, so software should only be installed between 1 and 2 o'clock. But in special situations I need to run the software installation right now and can not wait for the time frame. Here is my idea for the time frame condition. Is that

[Puppet Users] Re: hiera-gpg, CentOS6 and puppet 3.2.4

2013-09-04 Thread Luke Bigum
On Tuesday, September 3, 2013 10:57:39 PM UTC+1, Worker Bee wrote: > Has anyone been able to get this working? > I use those very same versions and it works so don't despair, it took me three separate attempts to get it working over the course of a few months - my tripfall was GPG keys though ;

[Puppet Users] Re: Changing the PE3 console's RAILS_RELATIVE_URL_ROOT? How to prepend a URL string?

2013-09-04 Thread Stephen Wallace
OK...my fat fingers got in the way. The need is to be able to modify https://console.puppet.net/nodes into https://console.puppet.net/MYPUPPETPREFIX/nodes, https://console.puppet.net/index.html (sorry if i got that wrong)...to https://console.puppet.net/MYPUPPETPREFIX/index.html, etc. This way

[Puppet Users] Re: Changing the PE3 console's RAILS_RELATIVE_URL_ROOT? How to prepend a URL string?

2013-09-04 Thread Stephen Wallace
Answered kindly by Ruth in puppet-dev. :) On Tuesday, 27 August 2013 16:32:15 UTC+10, Stephen Wallace wrote: > > Hi All, > > I'm looking to prepend a string to all (RHEL based) PE3 console URLs. I'm > trying to proxy the console thru an Oracle web server (Apache under the > hood), and for secur

Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-04 Thread Klavs Klavsen
Den tirsdag den 3. september 2013 20.09.19 UTC+2 skrev Ken Barber: > > Is it acceptable to do the search based on 'certname'? ie: > > curl -G 'http://localhost:8080/v2/facts' --data-urlencode > 'query=["and",["~","certname","puppetdb?"],["or",["=","name","ipaddress"],["=","name","hostname"]]]' >

[Puppet Users] Exec type's 'onlyif' and 'unless' commands run even with --noop

2013-09-04 Thread Vladimir Brik
Hello, I have noticed that commands specified in 'onlyif' and 'unless' parameters of the Exec type are always executed, even if --noop option is given on command line or the resource's noop parameter is set to true. For example, the following block always creates /tmp/onlyif and /tmp/unless.

[Puppet Users] Re: run module although with time condition, but also possibilty execute even so not in that time frame

2013-09-04 Thread jcbollinger
On Wednesday, September 4, 2013 2:07:07 AM UTC-5, Andreas Dvorak wrote: > > Hi, > > I need an idea to write modules that have a time condition, so software > should only be installed between 1 and 2 o'clock. > But in special situations I need to run the software installation right > now and c

[Puppet Users] Re: Random Yum errors during provisioning

2013-09-04 Thread jcbollinger
On Tuesday, September 3, 2013 1:41:22 PM UTC-5, Glenn Poston wrote: > > Any ideas??? > > On Friday, June 28, 2013 9:38:29 AM UTC-4, Glenn Poston wrote: >> >> Running Amazon Linux (which is essentially Centos5.5). >> >> Anyone seen random yum errors like this one? I don't think >> it's necessari

Re: [Puppet Users] Re: hiera-gpg, CentOS6 and puppet 3.2.4

2013-09-04 Thread Worker Bee
Ahh, thanks! I will take a look at the gpg setup again. I really appreciarte your help! Maddening! :) On Wed, Sep 4, 2013 at 6:02 AM, Luke Bigum wrote: > On Tuesday, September 3, 2013 10:57:39 PM UTC+1, Worker Bee wrote: > >> Has anyone been able to get this working? >> > > I use thos

Re: [Puppet Users] Exec type's 'onlyif' and 'unless' commands run even with --noop

2013-09-04 Thread Dewey Sasser
On 9/4/2013 9:01 AM, Vladimir Brik wrote: Hello, I have noticed that commands specified in 'onlyif' and 'unless' parameters of the Exec type are always executed, even if --noop option is given on command line or the resource's noop parameter is set to true. For example, the following block a

[Puppet Users] Puppet Dashboard Error 400 Invalid Parameter at passenger pp:48

2013-09-04 Thread Mr. Vitriol
Hi, I am new to the job and forum. I installed puppet and puppetmaster and set up my first dependencies acording to a manual that we have here in our company. Everything works fine and I can set up new nodes with several modules to choose from. Unfortunatley the Dashboard

Re: [Puppet Users] Re: Random Yum errors during provisioning

2013-09-04 Thread Glenn Poston
We've disabled yum-updatesd on our nodes. Thanks John, Further investigation has shown that after any package update/install, yum automatically runs the following command… /usr/bin/python /usr/bin/yum --security check-update I'm curious if this is the issue. Either way, it's odd that that the

Re: [Puppet Users] Roles/profiles and hiera

2013-09-04 Thread Frederiko Costa
Hi, Ramin - you are correct. I got down to this path when I decided to follow this pattern. It turns out that it became overkill. In regards to hiera, that's also exactly what I was looking at. I knew I'd be nuts if I had to differentiate for each DC. Not clever whatsoever. I thought about facts

[Puppet Users] --graph Node[somethingwronghere]

2013-09-04 Thread ureal frank
Hi, I am trying to debug some abnormal behavior here and to help me figure out what is happening, I've run the agent with --graph option. And meanwhile I've found that under resources.odt I see a Class[Main] node child with a wrong hostname. Class[Main]->Node[hyp2-cdn-*picd*.foo.bar] but in my

[Puppet Users] Fwd: yum install puppet ... failure

2013-09-04 Thread Stuart Cracraft
When installing with yum install puppet some showstoppers (see log). Are there any yum repos I can point at to resolve this cleanly? Thanks. > > Loaded plugins: security > Setting up Install Process > Resolving Dependencies > --> Running transaction check > ---> Package puppet.noarch 0:3.

Re: [Puppet Users] Fwd: yum install puppet ... failure

2013-09-04 Thread Dan White
rhn://rhel-i386-server-5 rhn://rhel-x86_64-server-5 or http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os All I see is "el5" so I do not know if you use RHEL-5 or CentOS-5 “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is tha

Re: [Puppet Users] Fwd: yum install puppet ... failure

2013-09-04 Thread Dan White
BTW, the packages in question are "tcl" and " libselinux-ruby" Try "yum install tcl libselinux-ruby" first “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) - Original M

Re: [Puppet Users] Re: Puppet first run timing out

2013-09-04 Thread Pete Hartman
I'm having a similar problem. I know for a fact that I am not contending with other agents, because this is in a lab environment and none of my agents is scheduled for periodic runs (yet). I have successfully run puppet agent -t first time, signed the cert, and run it a second time to pull ove

Re: [Puppet Users] Help with customer fact

2013-09-04 Thread Ben Carrell
The ulimit command is a shell builtin, try using "/bin/bash -c ulimit -n" -- Benjamin Carrell On Wed, Sep 4, 2013 at 2:54 PM, Greg Coit wrote: > Hello, > > I've setup a puppet master server and a couple of clients for testing > purposes. Everything's going pretty well but I'm having trouble w

[Puppet Users] Nicer Lookup

2013-09-04 Thread Simon Hönscheid
Hi List, I have a hashmap/array construct where i want to lookup data. my current lookup looks like that: foo_uses_a => [ $foo['bar']['a'], $foo['bar2']['a'] ], foo_refers_b => [ $foo['bar']['b'], $foo['bar2']['b'] ]; Is There a way to skip to double reference of $foo and ['a'] or

[Puppet Users] Help with customer fact

2013-09-04 Thread Greg Coit
Hello, I've setup a puppet master server and a couple of clients for testing purposes. Everything's going pretty well but I'm having trouble with creating a custom fact. I'm using the open source version of puppet on Centos 6.4. In the file /etc/puppet/modules/linux/lib/facter/ulimit.rb, I h

Re: [Puppet Users] Help with customer fact

2013-09-04 Thread Greg Coit
Benjamin, That was it - thank you Greg On Wednesday, September 4, 2013 2:04:17 PM UTC-7, Ben Carrell wrote: > > The ulimit command is a shell builtin, try using "/bin/bash -c ulimit -n" > > -- > Benjamin Carrell > > > On Wed, Sep 4, 2013 at 2:54 PM, Greg Coit > > wrote: > >> Hello, >> >> I'

[Puppet Users] oracle UEK 5 puppet client

2013-09-04 Thread Stuart Cracraft
All up here. Tested Oracle UEK aok. (Haven't seen any needed "tweak" requirements.) Quote of the day: "There is no substitute for a good repository." P.S. Thanks to Dan White for the repository suggestion which led to the cleansing. Log: # yum install puppet Loaded plugins: security Sett

Re: [Puppet Users] Re: Puppet first run timing out

2013-09-04 Thread Cory Stoker
We have lots of puppet clients on crappy bandwidth that would time out like this as well. The option we changed to fix this is: #Specify the timeout to wait for catalog in seconds configtimeout = 600 The default time is like 60 or 120 secs. Another thing you should do is check out the l

Re: [Puppet Users] Puppet Dashboard Error 400 Invalid Parameter at passenger pp:48

2013-09-04 Thread Cory Stoker
Look at the apache::vhost definition. It looks to me that "template" is no longer a parameter to the defined type. Since this looks like puppetlabs-dashboard I would check out the puppetlabs-apache module to find the apache::vhost defined type in puppetlabs-apache/manifest/vhost.pp. If the param

Re: [Puppet Users] Re: Puppet first run timing out

2013-09-04 Thread Pete Hartman
Cool, thank you very much for the information. On Wed, Sep 4, 2013 at 6:56 PM, Cory Stoker wrote: > We have lots of puppet clients on crappy bandwidth that would time out > like this as well. The option we changed to fix this is: > > #Specify the timeout to wait for catalog in seconds >

Re: [Puppet Users] Puppet under HA Environment

2013-09-04 Thread Garrett Honeycutt
On Monday, September 2, 2013 12:01:46 PM UTC-4, Stuart Cracraft wrote: > > How can this be randomized within a range? > > I believe someone mentioned "splay" ? > > My fear is that all the boxes will request at a similar some day, by chance > and send a tidal wave over to the master. > > On Sep 1, 2