[Puppet Users] Re: Puppet and RH chkconfig

2013-09-12 Thread Rahul Khengare
Hi Forrie, Puppet service resource *enable* property internally executes the chkconfig command for red hat, This property behaves quite differently depending on the platform; wherever possible, it relies on local tools to enable or disable a given service.You can confirm the facter

Re: [Puppet Users] puppetdb query not working as expected

2013-09-12 Thread Ken Barber
Yes, using postgresql here. It turns out I have another script pushing facts (without custom facts) into puppetdb, which messed up with puppetdb query outputs. After fixing that script, things are ok now here. Aaah, so it wasn't performance at all. Was that a custom script someone at your

[Puppet Users] puppet healthcheck

2013-09-12 Thread redalert . commander
Hi, I want to put a loadbalancer in front of puppet, this LB includes a healtcheck so it knows not to send requests to a server that is down. However the use of client certificates and pson make that a bit difficult, I should get puppet to return a 200 status message. I already changed

RE: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-12 Thread Steven Nemetz
Take a look at razor https://puppetlabs.com/solutions/next-generation-provisioning https://github.com/puppetlabs/razor http://www.slideshare.net/PuppetLabs/puppetandrazor http://www.slideshare.net/PuppetLabs/razor-puppet Steven Subject: Re: [Puppet Users] Re: Is it possible to install actual OS

[Puppet Users] Re: Ordering and templates question/issue

2013-09-12 Thread sjr
Hi John, On Wednesday, September 11, 2013 3:35:07 PM UTC+2, jcbollinger wrote: On Tuesday, September 10, 2013 8:53:10 AM UTC-5, sjr wrote: Hi John, thanks for your answer, first of all I must say I just wanted to experiment and learn, it's not like I'm going to put such awful hacks :-)

Re: [Puppet Users] puppetdb query not working as expected

2013-09-12 Thread hai wu
It's a custom script I wrote quite a while ago and I forgot about it ;) On Thu, Sep 12, 2013 at 3:34 AM, Ken Barber k...@puppetlabs.com wrote: Yes, using postgresql here. It turns out I have another script pushing facts (without custom facts) into puppetdb, which messed up with puppetdb

Re: [Puppet Users] Purge puppet's reports

2013-09-12 Thread Dan White
That makes sense. Thanks. “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 Message - From: Andrew G andrewgray1...@gmail.com To:

Re: [Puppet Users] Re: Resolving/ Expanding module puppet:/// URI in exec line

2013-09-12 Thread Matthew Burgess
On 11 September 2013 23:55, slafreni...@b-e-f.org wrote: Ed, I am having trouble unzipping any tarball via Puppet. So I installed your module to see how you might have done it. It runs, it creates the javapath and copies the file... but I get the same error that I get on my modules... can I

Re: [Puppet Users] Custom Fact undefined in manifests

2013-09-12 Thread David Thompson
On 9/11/13 4:28 PM, Denmat wrote: Hi, Do you have stdlib module installed? http://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppetlabs-standard-library-part-3 No. I don't see stdlib listed as a requirement to using custom/external facts in the puppet docs:

Re: [Puppet Users] Re: Incorrect return code for failed exec

2013-09-12 Thread Rob Reynolds
Please log this at https://projects.puppetlabs.com/projects/puppet/issues/new In keywords, please put windows. Thanks. On Tue, Sep 10, 2013 at 11:29 AM, Igor Berger codewiz...@gmail.com wrote: Should log an issue about this someplace? On Tuesday, September 3, 2013 10:56:01 AM UTC-4, Igor

Re: [Puppet Users] Re: Purge puppet's reports

2013-09-12 Thread Trevor Vaughan
Be aware that this will create a file resource/checksum for EVERY file in that directory and may cause a heavy load on your system if you have a lot of reports. Trevor On Tue, Sep 10, 2013 at 10:12 PM, Andrew andrewgray1...@gmail.com wrote: Using tidy to clean up logs, this is pretty

[Puppet Users] Re: Puppet Master fails when dashboard is unreachable

2013-09-12 Thread Joshua Sinfield
Hi Chris, We've encountered this issue before. For us it's due to using dashboard as an ENC. When the master compiles the catalog it goes off to the ENC and gets node details. When the dashboard is down obviously the master can't retrieve what it needs so the catalog compilation fails. To

Re: [Puppet Users] Re: Purge puppet's reports

2013-09-12 Thread Joshua Sinfield
One thing I found after manually deleting gb's of reports was that they still exists in dashboard but failed to load when you click on them. Don't forget to run the command suggested in http://docs.puppetlabs.com/dashboard/manual/1.2/maintaining.html Josh -- You received this message

[Puppet Users] Re: Puppet and RH chkconfig

2013-09-12 Thread jcbollinger
On Wednesday, September 11, 2013 5:24:51 PM UTC-5, Forrie wrote: I've been trying to follow several threads around Google about Puppet and it's use (or non-use) of chkconfig on RH Linux. What prompted me to do this is I noticed that Puppet is, correctly, repeatedly logging that it is

Re: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-12 Thread Daniel Pittman
On Thu, Sep 12, 2013 at 4:03 AM, Steven Nemetz snem...@hotmail.com wrote: Take a look at razor https://puppetlabs.com/solutions/next-generation-provisioning https://github.com/puppetlabs/razor http://www.slideshare.net/PuppetLabs/puppetandrazor

[Puppet Users] Re: getting array of hostnames of clients

2013-09-12 Thread jcbollinger
On Wednesday, September 11, 2013 8:46:23 PM UTC-5, Steve Wray wrote: On Wednesday, 11 September 2013 22:50:59 UTC+8, jcbollinger wrote: On Wednesday, September 11, 2013 2:49:50 AM UTC-5, Steve Wray wrote: I need to get an array of hostnames of clients of the puppet server. There

[Puppet Users] testing for truth, are the docs correct?

2013-09-12 Thread Kevin G.
According to the documentation at http://docs.puppetlabs.com/puppet/2.7/reference/lang_conditional.html#if-statements, you can test for truth with syntax like this: if $is_virtual == 'true' { AFAICT that's not the case. The quotes around 'true' make the comparison always fail. Here's

Re: [Puppet Users] testing for truth, are the docs correct?

2013-09-12 Thread R.I.Pienaar
- Original Message - From: Kevin G. kgo...@bepress.com To: puppet-users@googlegroups.com Sent: Thursday, September 12, 2013 3:56:30 PM Subject: [Puppet Users] testing for truth, are the docs correct? According to the documentation at

Re: [Puppet Users] Re: Using Puppet for remote config management of offline machines?

2013-09-12 Thread Patrick Debois
this blog by Chris McClimans might be of interest for you http://www.instantinfrastructure.org/ On 12 Sep 2013, at 20:13, jcbollinger john.bollin...@stjude.org wrote: On Wednesday, September 11, 2013 10:48:58 AM UTC-5, Brad Smith wrote: Hello all, I'm working with a Kenya-based

Re: [Puppet Users] testing for truth, are the docs correct?

2013-09-12 Thread Kevin G.
if $is_virtual == 'true' { is_virtual is a fact, all facts are strings so in this case 'true' is exactly what is needed :( That's helpful, thanks, now I understand why it works in that case and why in my case this is what is needed: if $managehome == true { Since the

[Puppet Users] Puppet SSL cipher suites

2013-09-12 Thread Gabriel Filion
Hey there, I looked up puppet.conf documentation and there doesn't seem to be any option to choose which SSL cipher suites are used for communication. Is there some way to configure which cipher suites are preferred? -- Gabriel Filion signature.asc Description: OpenPGP digital signature

Re: [Puppet Users] Re: Puppet ignores hiera completely

2013-09-12 Thread Guy Knights
Thanks for the reply John. Here's my hiera.yaml file: --- :backends: - yaml :yaml: :datadir: /etc/puppet/%{::environment}/hieradata :hierarchy: - nodes/%{::clientcert} - roles/%{::esg_role} - common My puppet.conf file on the puppet master: [main] logdir=/var/log/puppet

[Puppet Users] How to create a simple, custom type?

2013-09-12 Thread Jeremy Martini
On my file system, I have a classpath.txt file, which contains a java classpath. The classpath contains wildcards, and I need to remove the wildcards, and have it expanded out to list out all the .jar files individually. So, instead of classpath.txt containing: C:/lib1/*;C:/lib2/* I Need:

[Puppet Users] Re: Using Puppet for remote config management of offline machines?

2013-09-12 Thread jcbollinger
On Wednesday, September 11, 2013 10:48:58 AM UTC-5, Brad Smith wrote: Hello all, I'm working with a Kenya-based non-profit (tunapanda.org) that uses OSS to provide computing resources to schools where bandwidth is either nonexistent or prohibitively expensive. We provide a customized

[Puppet Users] arnoudj/sudo and different versions of CentOS

2013-09-12 Thread Greg Coit
Hello, Does anyone have an example of using the arnoudj/sudo module in a mixed environment with both CentOS 5 and 6? So far, my CentOS 6 servers are happy but my CentOS 5 servers are ignoring everything in /etc/sudoers.d/ Thank in advance! Greg -- You received this message because you are

RE: [Puppet Users] arnoudj/sudo and different versions of CentOS

2013-09-12 Thread Steven Nemetz
I don't know about the module you are using but things to verify: /etc/sudoers contains an include for /etc/sudoers.d Check that the version of sudo is new enough to support this. You may need to upgrade it. I had to on a number of my Redhat 5 servers Steven Date: Thu, 12 Sep 2013 15:01:30

[Puppet Users] Re: Puppet ignores hiera completely

2013-09-12 Thread jcbollinger
On Wednesday, September 11, 2013 5:50:18 PM UTC-5, Guy Knights wrote: I'm not sure at all what's going on here, but I've spent a lot of time reading over the puppet hiera docs and setting everything up, but when I run puppet agent it just seems to ignore the hiera setup completely. Both

Re: [Puppet Users] Puppet SSL cipher suites

2013-09-12 Thread Darin Perusich
If you're running your puppet master via apache +passenger set in your apache configuration. On Sep 12, 2013 5:41 PM, Gabriel Filion lelu...@gmail.com wrote: Hey there, I looked up puppet.conf documentation and there doesn't seem to be any option to choose which SSL cipher suites are used for

Re: [Puppet Users] arnoudj/sudo and different versions of CentOS

2013-09-12 Thread Greg Coit
Steven, That seemed to do the trick - thanks!!! Greg On Thursday, September 12, 2013 4:30:33 PM UTC-7, Steven wrote: I don't know about the module you are using but things to verify: /etc/sudoers contains an include for /etc/sudoers.d Check that the version of sudo is new enough to support

[Puppet Users] hostname appears in classes.txt

2013-09-12 Thread mark bradley
Although I have a node defined (puppet agent --test runs without error) the agent does not pick up files that it should be accessing and I've noticed that the hostname appears in classes.txt. Does anyone have a notion of what's happening? Could it be that my node isn't being recognized as

Re: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-12 Thread Rich Siegel
So I have done a full os install using baremetal on a seemingly harder platform- windows. https://github.com/rismoney/puppet-baremetal-windows Now windows has a lot of nuances so it should be easier in theory to do something similar starting from *nix. In essence I use a linux pxe server to

[Puppet Users] Re: Java module woes

2013-09-12 Thread jcbollinger
On Wednesday, September 11, 2013 3:54:11 PM UTC-5, Nathan Nobbe wrote: Hi everyone, Just getting into Puppet, so please bear with me :D I'm setting up a java module to keep an eye on the java installation on our RHEL machines. Quick background, RHEL ships openjdk, we need to use Oracle

[Puppet Users] Refactoring my modules and moving from 2.7.x to 3.3 and have a few questions

2013-09-12 Thread Nick Cammorato
Mostly surrounding if there are better(less hackish) ways of doing things. The first is the classic exported resource expiration problem. My existing modules use a wrapper that uses an inline template to call out to Ruby's Time function, set a timestamp, and set the resource to absent after an

[Puppet Users] Re: Nagios Puppet Module - Multiple Service File Permissions Issues

2013-09-12 Thread jcbollinger
On Wednesday, September 11, 2013 2:59:22 PM UTC-5, phundisk wrote: I am using the nagios puppet module to create and manage services via stored configurations. The original module, stored all service cheks in one file and this was causing my puppet run on my nagios server to take 30+

Re: [Puppet Users] Re: Puppet ignores hiera completely

2013-09-12 Thread Guy Knights
Actually, one thing I've noticed while trying to troubleshoot this issue is that I can't see any evidence that puppet agent is using the environment specified in its config file. If I run puppet agent with the --debug flag there is no mention of the environment whatsoever. Is there any way to get