[Puppet Users] Re: What's the best practice to manage software updates using puppet ?

2013-09-25 Thread phundisk
For me, when I was deciding to manage updates, there were two options for me. 1. Set everything to ensure latest and only use clones of centos/redhat repos for different environments such as QA, and production. The downside of here is that you need to manage every package in puppet, you will

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

2013-09-13 Thread phundisk
Ah this is brilliant. Works like a charm. Once again John, you have enlightened me more about Puppet. On Thursday, September 12, 2013 1:51:40 PM UTC-4, jcbollinger wrote: > > > > On Wednesday, September 11, 2013 2:59:22 PM UTC-5, phundisk wrote: >> >> I am using the

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

2013-09-11 Thread phundisk
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+ minutes. I have read here ( http://pieter.barrezeele.be/2009/05/11/puppet-an

[Puppet Users] Re: Run a script if port is not running

2013-08-29 Thread phundisk
You can most likely use an exec with an 'onlyif' parameter with netstat or lsof. But like other people are posting, probably better off as a service. Let me know if you figure out the exact exec onlyif command you used, would be good to know. exec { "run_account_purger": command => "/usr/

[Puppet Users] Re: Puppet Master and Puppet Dashboard Server Fails to Send Report to itself

2013-07-22 Thread phundisk
Anyone have any idea on debugging methods I could apply? I have already tried the --debug method to the client run but I was not able to get any more information from that. On Wednesday, July 10, 2013 4:44:06 PM UTC-4, phundisk wrote: > > I have a puppet master who cannot send its

[Puppet Users] Puppet Master and Puppet Dashboard Server Fails to Send Report to itself

2013-07-10 Thread phundisk
I have a puppet master who cannot send its puppet report to the puppet dashboard server, which is located on itself. All the clients are successfully sending the reports every time. I have tried multiple options on the puppet master but I have yet to figure out as to why this is not sending c

[Puppet Users] Re: How to deal with DB passwords?

2013-06-07 Thread phundisk
There is a utility called hiera and an extention called hiera-gpg which you can use to store confidential information such as passwords in there. That way, if someone ever sees the config for the passwords, they will always be encrypted. On Friday, June 7, 2013 4:28:39 AM UTC-4, John Naggets w

[Puppet Users] Re: Hiera and environments

2013-06-05 Thread phundisk
I am also having the same issue you were having. When I removed the '%{environment}' part of the datadir, hiera works fine, however for me to have different development stages, I need to be able to specify environments so I don't accidentally take down production with a change to hiera variabl

[Puppet Users] Hiera Environment Wildcard

2013-05-29 Thread phundisk
I am looking to use hiera in my environment but I cannot get past one thing. In our current puppet code we have some case statements based on environments. The case statements are like the following... 'production' { do this } /^aw/ { do this } # this is for all AWS stuff 'aws' { do this } # th

[Puppet Users] Re: Puppet - rbuf_fill timeout error periodically on puppet client runs

2013-05-22 Thread phundisk
I am using passenger setup right now. I agree with your thought that it is either the addition of tons of exported resources or the puppet master server. I will run some experiments and see if this can be resolved. On Tuesday, May 21, 2013 9:18:58 AM UTC-4, phundisk wrote: > > Occasion

[Puppet Users] Puppet - rbuf_fill timeout error periodically on puppet client runs

2013-05-21 Thread phundisk
Occasionally I am seeing this error below on puppet client runs from several different clients. The clients and the server in this environment are rather old and this started to happen more after I used to nagios module which uses stored configs. Does anyone know where this slowness might be

[Puppet Users] Create a file which lists all server names with a given environment variable

2013-04-26 Thread phundisk
I am presuming that this is something I need to do with stored configs, but there might also be another way to do it. I am looking to create a file called /root/production.servers which will list all my production servers. All production servers have the puppet variable of $environment='produc

[Puppet Users] Nagios Module Facter Lib 'mountpoints.rb' Causing Windows Clients to Not Operate Properly

2013-04-09 Thread phundisk
I recently downloaded the nagios puppet module ( https://github.com/duritong/puppet-nagios) for my environment. I have noticed that the lib file 'mountpoints.rb' for this module causes issue when a windows puppet node is run. When I remove this library file completely, none of the issues I am

[Puppet Users] Variables in define are not being constructed as thought

2013-03-12 Thread phundisk
I have a define which define testing1::instance ( $hostSuffix = "-$environment", $testingDb = "db1$hostSuffix$dnsDomainInt", ) In my nodes.pp I explicitly set the $environment variable. However when I use the property 'testingDb' in a template, it comes out as only 'db1' Is there some

Re: [Puppet Users] Re: Windows Firewall Question

2013-03-12 Thread phundisk
Does anyone know of this provider? If not I can start to make one with netsh but it will probably take me a while On Thursday, March 7, 2013 9:52:17 PM UTC-5, Nan Liu wrote: > > On Thu, Mar 7, 2013 at 5:50 PM, ad >wrote: > >> Hey David >> >> Below are some examples. Note these are used on embedd

[Puppet Users] Re: Windows Firewall Question

2013-03-07 Thread phundisk
I also would. I was also thinking of making a native windows firewall module/provider in my copious free time (sarcasm). If the registry version of controlling firewall rules works fine though, that would probably be the fastest and easiest way I can think of. On Tuesday, March 5, 2013 9:36:1

[Puppet Users] Configure One Host to Not Get Client Configuration, but Instead the Server Config Best Practices

2013-03-04 Thread phundisk
I have been doing something with puppet that is working for me 100% but I am not sure this is the best way to be doing things and wanted to see what the community feels about it and if anyone has any suggestions. This problems relates to me having a common 'base' class which I put common serve

Re: [Puppet Users] Windows Puppet File Resource Getting Puppet Server's UNIX File Permissions

2013-01-16 Thread phundisk
I see. That is very interesting to know, it was causing me much stress as to where the permissions were coming from originally. I appreciate the help again Josh! On Wednesday, January 16, 2013 4:35:46 PM UTC-5, Josh Cooper wrote: > > Hi Alex, > > On Wed, Jan 16, 2013 at 12:49

[Puppet Users] Windows Puppet File Resource Getting Puppet Server's UNIX File Permissions

2013-01-16 Thread phundisk
I am noticing some very odd behavior with my puppet server and a windows client. For my puppet server I have a module setup similar to this below... Please note, I am not setting any permission on this file. file { "C:\\directory\\file.dll": ensure => 'present', s

Re: [Puppet Users] Windows Puppet Agent Hangs on Run

2013-01-08 Thread phundisk
dd(:root_home) do # setcode { Facter::Util::RootHome.get_root_home } # end On Monday, January 7, 2013 12:51:25 PM UTC-5, Josh Cooper wrote: > > Hi Alex, > > On Mon, Jan 7, 2013 at 7:56 AM, phundisk > > > wrote: > > I removed these from my path and restarted. Wh

Re: [Puppet Users] Windows Puppet Agent Hangs on Run

2013-01-07 Thread phundisk
? Currently the package installed is https://downloads.puppetlabs.com/windows/puppet-2.7.20.msi On Friday, January 4, 2013 6:57:58 PM UTC-5, Josh Cooper wrote: > > On Friday, January 4, 2013 11:01:00 AM UTC-8, phundisk wrote: > >> Can anyone make sense of the output below? I am sti

Re: [Puppet Users] Windows Puppet Agent Hangs on Run

2013-01-04 Thread phundisk
Can anyone make sense of the output below? I am still experiencing this error. Does this require any configuration change on the puppet server? On Friday, December 21, 2012 4:45:30 PM UTC-5, phundisk wrote: > > Hi Josh! > > Making the changes and running the command I got the fol

Re: [Puppet Users] Windows Puppet Agent Hangs on Run

2012-12-21 Thread phundisk
33: > > begin > Facter.debug("executing #{code}") # Add this line > out = %x{#{code}}.chomp > > Then run: facter --debug --trace > > Josh > > On Fri, Dec 21, 2012 at 7:42 AM, phundisk > > > wrote: > > This seems to be happening i

[Puppet Users] Windows Puppet Agent Hangs on Run

2012-12-21 Thread phundisk
This seems to be happening in my development network but not in production which I guess is good. This happens when running both interactively and via the automatic service run. This is happening on multiple servers. Have already tried to uninstall and reinstall. *Windows Puppet Agent:* 2.7.

[Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2012-12-14 Thread phundisk
Thank you, I was having the same issue as you were. Puppet Dashboard was complaining that a node was changing every time because of this file that changed slightly. On Thursday, December 13, 2012 8:06:54 PM UTC-5, Zane Williamson wrote: > > Has anyone else ran into this? > > debug: /Stage[main]

[Puppet Users] Re: Puppet 2.7 Windows File Permissions cause Permission Denied Errors

2012-12-11 Thread phundisk
in puppet, ensure => directory, and just have setting the permissions be a manual step, though I hate doing things manually. Any thoughts on this? On Monday, December 10, 2012 4:09:36 PM UTC-5, phundisk wrote: > > I am trying to expand puppet to work for our windows servers and am

[Puppet Users] Re: Puppet 2.7 Windows File Permissions cause Permission Denied Errors

2012-12-11 Thread phundisk
On Monday, December 10, 2012 4:09:36 PM UTC-5, phundisk wrote: > > I am trying to expand puppet to work for our windows servers and am > noticing some weird permissions issues that are occurring. > > I have a file resource being created that is a folder. I set that folder

[Puppet Users] Puppet 2.7 Windows File Permissions cause Permission Denied Errors

2012-12-10 Thread phundisk
I am trying to expand puppet to work for our windows servers and am noticing some weird permissions issues that are occurring. I have a file resource being created that is a folder. I set that folder to have full permission to user Administrator and a local windows group. I set the mode to 07

Re: [Puppet Users] Proper way to call variables from a parent class to a child class

2012-12-07 Thread phundisk
On Thursday, December 6, 2012 1:37:54 PM UTC-5, Gary Larizza wrote: > > Hi there, > > This is an example of dynamic scoping, and there is a good help document > here --> http://docs.puppetlabs.com/guides/scope_and_puppet.html That > page should describe what you're se

[Puppet Users] Proper way to call variables from a parent class to a child class

2012-12-06 Thread phundisk
I currently have a child class of a parent one. The parent defines some variable that I need to use in the child class. I am also using gepetto. Gepetto is complaining about the syntax of the child variable. It is saying that "$parentVar" should be "$::parentVar" however, when changing to w