Re: [Puppet Users] Debugging Custom Stuff

2012-08-29 Thread david.gar...@gmail.com
Pienaar is a seasoned puppet master I am sure he can help? http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php On Wed, Aug 29, 2012 at 10:10 PM, Douglas Garstang wrote: > So... how can I debug ruby code for custom functions? Putting a 'puts' > in the ruby script does

[Puppet Users] Re: err: Invalid parameter hostgroup at line 370 on node

2012-08-01 Thread david.gar...@gmail.com
; skipping run #grep short_alias /etc/puppet/modules/nagios/manifests/init.pp #define host($ip = $::fqdn, $short_alias = $::fqdn, $product_domain = $::product_domain) { # On Wed, Aug 1, 2012 at 8:56 AM, david.gar...@gmail.com < david.gar...@gmail.com> wrote: > Hello, > > I can't

[Puppet Users] err: Invalid parameter hostgroup at line 370 on node

2012-08-01 Thread david.gar...@gmail.com
Hello, I can't wrap my head around what is causing this error. After rebooting the box I get this error. If I remove the $hostgroup parameter is errors at $product_domain and down the line. What is going wrong here? I have facters defined for nagios server. I am testing this where nagios server (p

Re: [Puppet Users] Conditional with variable from facter

2012-06-20 Thread david.gar...@gmail.com
=> inline_template("<%= scope.to_hash.reject { |k,v| k.to_s =~ /(uptime_seconds|timestamp|free)/ }.to_yaml %>") } On Wed, Jun 20, 2012 at 4:30 PM, david.gar...@gmail.com < david.gar...@gmail.com> wrote: > With in the class I used something like this to get the facts int

Re: [Puppet Users] Conditional with variable from facter

2012-06-20 Thread david.gar...@gmail.com
With in the class I used something like this to get the facts into my nagios templates: define host($ip = $::fqdn, $short_alias = $::fqdn, $hostgroup = $::product_info, $product_domain = $::product_domain) { case $product_info { /OneProduct/: { $nagios_cfgdir = "/usr/local/nagios/

Re: [Puppet Users] Re: Problem with Load Balancing Puppet masters with Apache mod_proxy

2012-06-14 Thread david.gar...@gmail.com
Well everything would have to be synced... On Thu, Jun 14, 2012 at 5:03 PM, david.gar...@gmail.com < david.gar...@gmail.com> wrote: > You would have to sync serial number too? > > > On Thu, Jun 14, 2012 at 12:10 PM, david.gar...@gmail.com < > david.gar...@gmail.com>

Re: [Puppet Users] Re: Problem with Load Balancing Puppet masters with Apache mod_proxy

2012-06-14 Thread david.gar...@gmail.com
You would have to sync serial number too? On Thu, Jun 14, 2012 at 12:10 PM, david.gar...@gmail.com < david.gar...@gmail.com> wrote: > If puppet is to be enterprise than I would think we should be able to use > a CA generated for the organization? > > > On Thu, Jun 14, 2012 a

Re: [Puppet Users] Re: Problem with Load Balancing Puppet masters with Apache mod_proxy

2012-06-14 Thread david.gar...@gmail.com
If puppet is to be enterprise than I would think we should be able to use a CA generated for the organization? On Thu, Jun 14, 2012 at 12:03 PM, david.gar...@gmail.com < david.gar...@gmail.com> wrote: > Yeah, > > Good question: Sorry for the interjection. I would like to create

Re: [Puppet Users] Re: Problem with Load Balancing Puppet masters with Apache mod_proxy

2012-06-14 Thread david.gar...@gmail.com
Yeah, Good question: Sorry for the interjection. I would like to create a none puppet generated CA and intermediate CA for my puppet master. I tried but failed. Does anyone have a procedure or has anyone done this? Thanks, Dave Garvey On Thu, Jun 14, 2012 at 9:45 AM, Jeff McCune wrote: > Is th

Re: [Puppet Users] Re: dsl check if port is open

2012-03-27 Thread david.gar...@gmail.com
Thanks Jeff and Krzysztof, I think I will write a facter using netcat or something then and catch it in the manifests. nc -z domain_name port Cheers, DGarvey On Tue, Mar 27, 2012 at 2:36 PM, Jeff McCune wrote: > On Tue, Mar 27, 2012 at 2:24 PM, Krzysztof Wilczynski < > krzysztof.wilczyn...@li

[Puppet Users] dsl check if port is open

2012-03-27 Thread david.gar...@gmail.com
Can I check if a port is open for DSL? I need to check if the box has an acl allowing the nagios server to connect via nrpe before writing nagios config. If the port is closed I would like to defer the checks to mcollective. -- David Garvey -- You received this message because you are subscribe

Re: [Puppet Users] if not contains in template

2011-11-09 Thread david.gar...@gmail.com
? > > - Gonzalo > > On Thu, Nov 10, 2011 at 9:35 AM, Denmat wrote: > >> Hi, >> >> that would be '!=' and not '!=~' wouldn't it? >> >> Den >> >> On 10/11/2011, at 9:02, "david.gar...@gmail.com" >> wrote:

[Puppet Users] if not contains in template

2011-11-09 Thread david.gar...@gmail.com
I can't seem to find the erb logic for this? This works: <% if scope.lookupvar("::product_info") =~ /string/ %> hostgroups sting ; hostgroups.cfg <% end %> While this doesn't: <% if scope.lookupvar("::fqdn") !=~ /string/ %> define service{ use