Re: [Puppet Users] nagios service check_https

2012-08-23 Thread Peter Brown
No worries. Glad you got it working. On 23 August 2012 14:35, Marc Lucke wrote: > I inherited the module so I'm not sure. I did see some check_commands with ! > and was wondering; I didn't connect the dots. > > Thank you!! :) > > On 23/08/2012, at 2:18 PM, Peter Brown wrote: > >> Hi, >> >> $AR

Re: [Puppet Users] Getting all variable occurrences from Hiera

2012-08-23 Thread Tim Mooney
In regard to: Re: [Puppet Users] Getting all variable occurrences from...: On Wednesday, August 22, 2012 6:01:06 PM UTC-7, Tim Mooney wrote: If I need to open a separate ticket to get that kind of directional clarity, I would be happy to do so. A ticket specifically about this use-case wou

[Puppet Users] Re: Anyone using config_version successfully?

2012-08-23 Thread Glenn Poston
I second this. I would prefer this config_version to update at compile time with each client request. On Monday, January 31, 2011 6:58:29 PM UTC-5, John Warburton wrote: > > I have tried to use config_version and failed due to limitations in the > way I would like to use it: > - http://projects

[Puppet Users] Re: Manually creating class resource in site.pp works, calling same class from ENC silently fails

2012-08-23 Thread Jon McKenzie
> > > It should be: > > --- > classes: > foobar: > > > I thought the {} might be the issue too, however that* is* valid YAML (my ENC is a ruby script that just calls .to_yaml on a constructed hash). If that's indeed the issue, I think that should probably be considered a bug. I think whate

Re: [Puppet Users] Getting all variable occurrences from Hiera

2012-08-23 Thread Eric Sorenson
On Wednesday, August 22, 2012 6:01:06 PM UTC-7, Tim Mooney wrote: > > > If I need to open a separate ticket to get that kind of directional > clarity, I would be happy to do so. > > A ticket specifically about this use-case would be awesome. Thanks, Tim! -=Eric -- You received this message

[Puppet Users] Re: Manually creating class resource in site.pp works, calling same class from ENC silently fails

2012-08-23 Thread Nick Fagerlund
Oh wait, also! On Thursday, August 23, 2012 1:12:03 PM UTC-7, Jon McKenzie wrote: > > > Is there a way on the server side to validate the ENC -> class > transformation for clients? I can see in the logs when the ENC script gets > run, but there's not much other detail > > > Yeah, get the node ob

[Puppet Users] Re: Manually creating class resource in site.pp works, calling same class from ENC silently fails

2012-08-23 Thread Nick Fagerlund
On Thursday, August 23, 2012 1:12:03 PM UTC-7, Jon McKenzie wrote: > > --- > classes: >foobar: {} > > > That looks wrong. Cf. http://docs.puppetlabs.com/guides/external_nodes.html#puppet-265-and-higher It should be: --- classes: foobar: ...without the curlies. Does it work if you kil

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-23 Thread Nick Fagerlund
On Thursday, August 23, 2012 12:47:16 PM UTC-7, Aaron Grewell wrote: > > In > http://docs.puppetlabs.com/puppet/2.7/reference/lang_datatypes.html#hashes > it would be helpful to have a hash example that contains multiple keys > each with multiple subkeys. > You're right, I'll put one in. (Al

Re: [Puppet Users] /etc/puppet/modules is missing and not sync-up with server.

2012-08-23 Thread Nan Liu
On Thu, Aug 23, 2012 at 3:48 PM, meiji wang wrote: > Hi All, > I am new to Puppet and face a challenge. > I can sync with puppet master and receive classes.txt. However, the myclass > modules does not sync to agent node. furthermore, there is no modules > folder under /etc/puppet.Any sugges

[Puppet Users] /etc/puppet/modules is missing and not sync-up with server.

2012-08-23 Thread meiji wang
Hi All, I am new to Puppet and face a challenge. I can sync with puppet master and receive classes.txt. However, the myclass modules does not sync to agent node. furthermore, there is no modules folder under /etc/puppet.Any suggestion to troubleshoot this issue? [root@srack1-31 puppet]#

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-23 Thread Sean Carolan
> This has been extremely useful in my environment when importing the odd > 'unique snowflake' type server quickly without having to make any code/logic > changes or introduce large numbers of ENC values to disable certain > functionality or alter the flow of your puppet code. Yes. Puppet doesn't

Re: [Puppet Users] Scheduled_task + ad user

2012-08-23 Thread Jeff Sussna
Also, it doesn't look like scheduled_task supports setting "only run when logged on". On Tuesday, August 21, 2012 7:31:01 PM UTC-5, Josh Cooper wrote: > > Hi Jeff, > > It should be lib/puppet/util/adsi.rb > > Also please add yourself as a watcher to the ticket. > > Josh > > On Aug 21, 2012, at 3

[Puppet Users] Managing Eclipse with Puppet

2012-08-23 Thread Jeff Sussna
Does anyone know if there's a Puppet module available for managing Eclipse plugins? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/jvy2i_qRyr8J. To post

[Puppet Users] Manually creating class resource in site.pp works, calling same class from ENC silently fails

2012-08-23 Thread Jon McKenzie
I have a simple class, call it "foobar". It has two simple resources, a file and an augeas call to edit sysctl.conf. When I run my ENC script against a node, the class appears in the resulting YAML, e.g. --- classes: foobar: {} However, when I call 'puppetd --test' on the client side, this

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-23 Thread Aaron Grewell
Hi Nick, I have a suggestion. In http://docs.puppetlabs.com/puppet/2.7/reference/lang_datatypes.html#hashes it would be helpful to have a hash example that contains multiple keys each with multiple subkeys. The way the commas are distributed in that scenario is different from how commas are handl

Re: [Puppet Users] Best way to bail from facter script without using confine in Facter.add ?

2012-08-23 Thread ZJE
On Thursday, August 23, 2012 12:18:12 PM UTC-5, Wolf Noble wrote: > > why not check to see if the binary which you're using to talk to the raid > hw exists.. if so, execute and provide facts, if not, do nothing.. > That's how it's being done in the hpacucli fact I've been using. > > That's the

Re: [Puppet Users] debugging hiera

2012-08-23 Thread ZJE
On Thursday, August 23, 2012 12:07:18 PM UTC-5, R.I. Pienaar wrote: > > > > - Original Message - > > From: "ZJE" > > > To: puppet...@googlegroups.com > > Sent: Thursday, August 23, 2012 6:04:22 PM > > Subject: [Puppet Users] debugging hiera > > > > Is there a way to check which dat

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-23 Thread Nick Fagerlund
On Thursday, August 23, 2012 1:55:15 AM UTC-7, Erik Dalén wrote: > But I'm wondering about the section on "Reserved Variable Names" that > says that reusing fact names as variables in a local scope may cause > malfunctions. This is something I've done quite a lot without any > problem, is it

Re: [Puppet Users] Announce: Puppet 2.7.19 Available

2012-08-23 Thread Moses Mendoza
Hey Jo, You're totally right. Typo on my part, 2.7.19 is a final release, not a candidate. On Aug 23, 2012, at 11:36 AM, Jo Rhett wrote: On Aug 21, 2012, at 4:21 PM, Moses Mendoza wrote: Puppet 2.7.19 is a maintenance release candidate for Puppet in the Release, or release candidate? One of

Re: [Puppet Users] Announce: Puppet 2.7.19 Available

2012-08-23 Thread Jo Rhett
On Aug 21, 2012, at 4:21 PM, Moses Mendoza wrote: > Puppet 2.7.19 is a maintenance release candidate for Puppet in the Release, or release candidate? One of (version number, announcement) seems to be inconsistent. -- Jo Rhett Net Consonance : net philanthropy to improve open source and internet

Re: [Puppet Users] Best way to bail from facter script without using confine in Facter.add ?

2012-08-23 Thread Wolf Noble
why not check to see if the binary which you're using to talk to the raid hw exists.. if so, execute and provide facts, if not, do nothing.. That's how it's being done in the hpacucli fact I've been using. On Aug 23, 2012, at 11:26 AM, Nigel Kersten wrote: > On Thu, Aug 23, 2012 at 7:17 AM, Z

Re: [Puppet Users] debugging hiera

2012-08-23 Thread R.I.Pienaar
- Original Message - > From: "ZJE" > To: puppet-users@googlegroups.com > Sent: Thursday, August 23, 2012 6:04:22 PM > Subject: [Puppet Users] debugging hiera > > Is there a way to check which data file(s) hiera is attempting to > parse? I tried "puppet -d" with no luck. I'm wanting to s

[Puppet Users] debugging hiera

2012-08-23 Thread ZJE
Is there a way to check which data file(s) hiera is attempting to parse? I tried "puppet -d" with no luck. I'm wanting to select the variable "dnsservers" based on a custom fact. --- Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item dnsservers

[Puppet Users] Re: multi-master with puppetdb

2012-08-23 Thread Chris Price
Hello Alexander, There are a few things to consider before deciding how you'd like to set this up. The first question, I think, is: why do you want to run two puppetdb services rather than just pointing both puppet masters to a single puppetdb service? If you're goal is to share the postgres

Re: [Puppet Users] Best way to bail from facter script without using confine in Facter.add ?

2012-08-23 Thread Nigel Kersten
On Thu, Aug 23, 2012 at 7:17 AM, ZJE wrote: > > On Wednesday, August 22, 2012 1:56:49 PM UTC-5, Nigel Kersten wrote: >> >> On Wed, Aug 22, 2012 at 11:13 AM, ZJE wrote: >> > The slowdown comes from the command that I run before any Facter.add >> > statements. It takes roughly 1.5 seconds to run an

[Puppet Users] Take out hosts from load balancer while deploying with Puppet

2012-08-23 Thread MrTeleBird
Hello erveryone, I have a question, what is the best way to take hosts out from load balancer pool when deploying a module/catalog?? In our case we use a F5 Load Balancer... anyone with experience or ideas on how to do this?? I found this module: http://forge.puppetlabs.com/puppetlabs/f5 and

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-23 Thread Evan Stachowiak
I managed to sort this out by checking out the latest hiera-puppet and upgrading the hiera & hiera-puppet gems to 1.0.1.0rc4 & 1.01.0rc3 respectively. After updating hiera-puppet, be sure to restart the puppet master. If you do not update hiera & hiera-puppet gems, you may encounter the error:

Re: [Puppet Users] Best way to bail from facter script without using confine in Facter.add ?

2012-08-23 Thread ZJE
On Wednesday, August 22, 2012 1:56:49 PM UTC-5, Nigel Kersten wrote: > > On Wed, Aug 22, 2012 at 11:13 AM, ZJE > > wrote: > > The slowdown comes from the command that I run before any Facter.add > > statements. It takes roughly 1.5 seconds to run and I would need to run > it > > roughly 64 ti

[Puppet Users] Re: delete function syntax help

2012-08-23 Thread iamauser
Never mind. Just figured that out myself. No need for the square brackets []. On Thursday, August 23, 2012 3:22:44 PM UTC+2, iamauser wrote: > > > $compute_nodes = delete([range("100.0.0.1","100.0.0.10")],$get_my_ip) > doesn't > delete $get_my_ip ... > > Is there something wrong in th

[Puppet Users] delete function syntax help

2012-08-23 Thread iamauser
$compute_nodes = delete([range("100.0.0.1","100.0.0.10")],$get_my_ip) doesn't delete $get_my_ip ... Is there something wrong in this syntax ? $get_my_ip is a user defined parser function to resolve the ip address from a hostname and it prints out the right address (100.0.0.1). Thanks for a

Re: [Puppet Users] Re: how to connect agent to the master through a different user to execute a command through puppet module

2012-08-23 Thread Prosenjit Ghosh
Hi Nick, Your suggestion is not working. Actually when we try to connect the agent to the puppet through a different user, no ssl directory got created under /var/lib/puppet in agent side. Can you provide some light on this. Your help would be most appreciated. Thanks Prosenjit On Thu, Aug 23

[Puppet Users] Re: Facter scripts and shell environment variables

2012-08-23 Thread André Fernandes
Thanks for the insight. I've been investigating a bit deeper and found that this is likely an issue with the build of apache I'm using. I've run into the same problem with a "squid version" facter script and found that, in the affected hosts, the squid binary had been compiled with the --enab

Re: [Puppet Users] Re: Dependencies between defines

2012-08-23 Thread Martin Alfke
On 23.08.2012, at 14:25, Axel Bock wrote: > Ah maybe I'm too stupid but the whole puppet dependency resolution > _seriously_ annoys me, so this is half a rant post, half a plea for someone > to enlighten me about this dependency thing puppet has going. > > I have another custom define which b

[Puppet Users] Re: Dependencies between defines

2012-08-23 Thread Axel Bock
Ah maybe I'm too stupid but the whole puppet dependency resolution _seriously_ annoys me, so this is half a rant post, half a plea for someone to enlighten me about this dependency thing puppet has going. I have another custom define which basically contains an exe and a file (directory). The

[Puppet Users] multi-master with puppetdb

2012-08-23 Thread Alexander Swen
hi, we consider to run a second instance of our puppet master and would like to know how we should do this. We have one puppet master with a puppetdb instance on the same server. Puppetdb uses a postgres db on a postgr cluster. My main concern is: can we run puppetdb on the second box two? with

[Puppet Users] Re: Puppet Agent VS User

2012-08-23 Thread Olivier Vernin
Found the issue, the listen=true in puppet.conf is requiring an /etc/puppet/auth.conf otherwise the daemon is not starting. O On Thursday, August 23, 2012 12:36:19 PM UTC+3, Olivier Vernin wrote: > > Hello, > > Running into a problem when wanting to daemon-ize the agent. It doesnt > seems to do

[Puppet Users] Puppet-dashboard edit node parameters not saving more than 2 parameters

2012-08-23 Thread Bluemalkin
Hi, I have puppet-dashboard 1.2.10 installed from official apt repos on Ubuntu 12.10 (with puppetmaster I've configured the dashboard to be used as ENC using mysql database. The issue I'm having is when I save changes to a node I edit, only the last 2 parameters key/values are saved into the m

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-23 Thread Keiran Sweet
Another option worth mentioning, and this may not be suitable for your environment, is to allow host overrides of configuration files within your module using file precedence like the below. file { '/etc/security/limits.conf' : ensure => file, mode=> 755, owner

[Puppet Users] Puppet Agent VS User

2012-08-23 Thread Olivier Vernin
Hello, Running into a problem when wanting to daemon-ize the agent. It doesnt seems to do anything: - cannot find any daemon process with (ps aux | grep puppet) - the config is not updated after editing some params on the master - /var/log/puppet stay empty... while, when logged as root, it is

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-23 Thread Erik Dalén
Very nice! But I'm wondering about the section on "Reserved Variable Names" that says that reusing fact names as variables in a local scope may cause malfunctions. This is something I've done quite a lot without any problem, is it considered unsupported and might break in future versions? The only

Re: [Puppet Users] Install rubygem package in order to use with library

2012-08-23 Thread Denmat
Hi, Righto, not sure that load path is correct, if it is can you successfully load the rubix gem using ruby's irb? Den On 22/08/2012, at 23:58, "Sergey V. Arlashin" wrote: >> Where is rubix declared? > > > modules/zabbix/lib/puppet/type/zabbix_host.rb: > > $LOAD_PATH.unshift File.join(File