Re: [Puppet Users] PuppetDB errors

2014-11-24 Thread Paul Seymour
Thanks Wyatt, I have sent the tarballs from a couple of instances where we are seeing this to your inbox. Cheers Paul On Friday, 21 November 2014 17:32:16 UTC, Wyatt Alt wrote: > > Manually deleting that row (id=22128) in fact_values might also do the > trick if it's only one affected node/val

Re: [Puppet Users] Ensure "rows" in a mysql table

2014-11-24 Thread Javier Palacios
For the second path, around one year ago I wrote a module to manage a web app configuration table (key value pairs). Although now I could probably write a better module, It did work well enough. You can have a look at https://forge.puppetlabs.com/jpalacios/sqltable. It would require some adaptation

Re: [Puppet Users] Ensure "rows" in a mysql table

2014-11-24 Thread Abhijeet Rastogi
@Felix, thanks for the link. @Javier, your module seems like a good starting point. That's definitely helpful. Thanks. On Mon, Nov 24, 2014 at 2:46 PM, Javier Palacios wrote: > For the second path, around one year ago I wrote a module to manage a web > app configuration table (key value pairs).

[Puppet Users] Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
Hi all, I'm confused by a new error on my Puppetmaster. It is connected to PuppetDB running on a separate server over SSL on 8081. All Puppet functions work normally, including submitting and retrieving catalogs, facts and exported resources. However I'm getting errors when attempting to iss

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Jonathan Gazeley
On 22/11/14 21:00, Felix Frank wrote: On 11/20/2014 05:07 PM, Jonathan Gazeley wrote: But how does that work when the GitLab server and Puppetmaster are different servers? Well, do they need to be? ;-) Sort of, yes. We are quite strict about segregating services on our systems, and the GitL

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Jonathan Gazeley
On 23/11/14 04:23, Spencer Krum wrote: A hook can use ssh to push. We set up a tool called puppetsync that would be run on the puppetmaster, but would be triggered by post-recieve hook over ssh from the git server. Thanks, good tip. puppetsync script looks extremely useful :) -- You received

[Puppet Users] Re: Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 11:54, Jonathan Gazeley wrote: Hi all, I'm confused by a new error on my Puppetmaster. It is connected to PuppetDB running on a separate server over SSL on 8081. All Puppet functions work normally, including submitting and retrieving catalogs, facts and exported resources. Howev

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Felix Frank
On 11/24/2014 12:57 PM, Jonathan Gazeley wrote: > On 22/11/14 21:00, Felix Frank wrote: >> On 11/20/2014 05:07 PM, Jonathan Gazeley wrote: >>> But how does that work when the GitLab server and Puppetmaster are >>> different servers? >> Well, do they need to be? ;-) >> > > Sort of, yes. We are quit

[Puppet Users] Unexpected behaviour Directory environments

2014-11-24 Thread Ger Apeldoorn
Hi, I have been implementing Puppet in a large company, with locations (and teams) in several countries. The idea is to create a layered approach, i.e. 1 global repository with standard modules and 1 local repository with custom modules (and roles & profiles). All locations & Global have the s

Re: [Puppet Users] Unexpected behaviour Directory environments

2014-11-24 Thread Spencer Krum
So you're pretty close. Just missing a thing. Each puppet run will have exactly one environment, and no environment merging behavior has yet been proposed. What is merged is the modulepath. So you want to put the global modules into /etc/puppet/modules/global then the local(call it usEast) environ

Re: [Puppet Users] Unexpected behaviour Directory environments

2014-11-24 Thread Ger Apeldoorn
Awesome, thanks Spencer! Ger. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visi

Re: [Puppet Users] execution expired with a puppetmaster with more then enough resources

2014-11-24 Thread jcbollinger
On Sunday, November 23, 2014 2:31:12 PM UTC-6, Felix.Frank wrote: > > On 11/23/2014 10:31 AM, Philipp Dallig wrote: > > Nov 23 10:08:06 puppetmaster01 puppet-master[21761]: Compiled catalog > > for xymon.x.com in environment production in 241.31 seconds > > There's some 120 second compiler

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 12:48, Felix Frank wrote: On 11/24/2014 12:57 PM, Jonathan Gazeley wrote: On 22/11/14 21:00, Felix Frank wrote: On 11/20/2014 05:07 PM, Jonathan Gazeley wrote: But how does that work when the GitLab server and Puppetmaster are different servers? Well, do they need to be? ;-) Sor

Re: [Puppet Users] Planning dynamic environments with Git

2014-11-24 Thread Spencer Krum
+1 to empowering the junior admins or developers. On Mon, Nov 24, 2014 at 6:15 AM, Jonathan Gazeley < jonathan.gaze...@bristol.ac.uk> wrote: > On 24/11/14 12:48, Felix Frank wrote: > >> On 11/24/2014 12:57 PM, Jonathan Gazeley wrote: >> >>> On 22/11/14 21:00, Felix Frank wrote: >>> On 11/20/

[Puppet Users] Re: Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 11:54, Jonathan Gazeley wrote: [jg4461@puppet-prod PUPPETROOT]$ sudo puppet node deactivate authconfigtest.resnet.bris.ac.uk Error: Failed to submit 'deactivate node' command for authconfigtest.resnet.bris.ac.uk to PuppetDB at puppetdb.resnet.bris.ac.uk:8081: SSL_connect returned=

[Puppet Users] Re: [puppet apply --ordering = manifest] is not working as expected

2014-11-24 Thread jcbollinger
On Friday, November 21, 2014 4:33:48 PM UTC-6, Eric Sorenson wrote: > > Hi Kyle -- > > On Friday, November 21, 2014 1:46:19 PM UTC-8, Kyle Purdon wrote: >> >> TL:DR Using the --ordering = manifest option does not seem to apply to >> module commands. >> >> Using this parameter I would expect pup

[Puppet Users] Re: [puppet apply --ordering = manifest] is not working as expected

2014-11-24 Thread Kyle Purdon
Eric, Thanks for the response. I spent the weekend looking into puppet class containment, what a joy! I am still a bit unclear on applying contain in my situation. Should I create a wrapper class around my entire manifest and contain the few things within that? How would I apply this to the

[Puppet Users] Re: [puppet apply --ordering = manifest] is not working as expected

2014-11-24 Thread Kyle Purdon
Eric & John! Emacs is the best! Get over it! =) Anyway, I do think John is correct, I really was trying to avoid what is clearly the "Puppet" way of things by treating resources as executable things and trying to order them as such. I think the idea of organizing the manifest into classes and

Re: [Puppet Users] Re: [puppet apply --ordering = manifest] is not working as expected

2014-11-24 Thread Felix Frank
Hi, On 11/24/2014 04:04 PM, Kyle Purdon wrote: > Eric & John! > > Emacs is the best! Get over it! =) Emacs is nice, but I prefer Debian. (And no, I'm likely younger than this joke.) > On Monday, November 24, 2014 7:56:34 AM UTC-7, jcbollinger wrote: > Nope, because they are not classes. The 'c

[Puppet Users] is there a way to search for two words at the same time in different lines

2014-11-24 Thread Spriya
Hi All, I have a text file which contains */u01/java/jdk1.7.0_72/jre/bin/java* *java version "1.7.0_72"* *Java(TM) SE Runtime Environment (build 1.7.0_72-b14)* *Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)* */u01/java/jdk1.7.0_72/bin/java* *java version "1.7.0_72"* *Java(TM) SE

[Puppet Users] Re: Confused by SSL revocation error

2014-11-24 Thread Jonathan Gazeley
On 24/11/14 14:50, Jonathan Gazeley wrote: On 24/11/14 11:54, Jonathan Gazeley wrote: [jg4461@puppet-prod PUPPETROOT]$ sudo puppet node deactivate authconfigtest.resnet.bris.ac.uk Error: Failed to submit 'deactivate node' command for authconfigtest.resnet.bris.ac.uk to PuppetDB at puppetdb.r

[Puppet Users] MCollective: Invalid parameter middleware on Class[Mcollective]

2014-11-24 Thread Will McDonald
All, I'm encountering teething problems with the MCollective Puppet module, just in a simple demo/learning mode. Any pointers would be greatly appreciated. I'm running puppet-3.7.1-1.el6.noarch from the Puppet repo, both the Puppet and Dependencies Yum repos are enabled. puppetlabs/mcollective -

[Puppet Users] Re: Puppet Agent fails; Could not retrieve local facts - but Manually runs successfully

2014-11-24 Thread David Waters
I have similar symptoms with a PE 3.7 agent running on RHEL5, 32-bit and PE 3.7 running on RHEL6, 64-bit. My specific problems can be found in the Report Log: err Could not retrieve catalog; skipping run Puppet 2014-11-22 12:42 UTC err Could not retrieve catalog from remote server:

[Puppet Users] Re: mcollective compatibility in PE 3.7

2014-11-24 Thread David Waters
I have a PE 3.7 master running on a Red Hat Enterprise Linux 6 (RHEL6) server and PE 3.7 agents running on a Windows7 (64-bit) box and a RHEL5 (32-bit) box. The agent for the Master is the only one that reports so far. So far, the agent on the RHEL5 box has not reported at all. However, the Wi

[Puppet Users] Re: puppet dism

2014-11-24 Thread itzombieguy
Dism is a great tool. But honestly if you don't work with it constantly the syntax gets a little annoying. Forgetting a hyphen there or a slash there. There is a great tool that's free that invokes Dism.exe. And gives you a GUI interface. It's called DISM GUI. I pride myself in knowing the synta

[Puppet Users] Re: Windows Remote Desktop Services (Could not find a suitable provider for dism)

2014-11-24 Thread itzombieguy
Dism command line is excellent. But if you want to simplify your experience with the command line, I would suggest DISM GUI, it's a GUI that invokes DISM.exe. Even though the syntax is straight forward this is a huge help. I use it at work to manage an enterprise image and it simply saves me tim

[Puppet Users] Re: Puppet Agent fails; Could not retrieve local facts - but Manually runs successfully

2014-11-24 Thread kdimiche
Are the permissions of the custom fact sufficient? Check the perms of the other files. On Thursday, November 20, 2014 4:30:04 PM UTC-7, hendri wrote: > > This is on Amazon Linux on EC2 - Puppet Agent and master are at 2.7.25 > > Manual runs of facter and puppet `puppet agent -t` complete succes

[Puppet Users] Suggestion for PE 3.7 Agent Errors (RHEL 5, 32-bit) Regarding "curl -k"

2014-11-24 Thread David Waters
My previous PE 3.2 installation was great...then I moved to PE 3.7 and lost hours of sleep. If you follow the PE Agent installation guide for RHEL 5 (32-bit) while the Master runs RHEL 6 (64-bit): *Scenario 2*: The OS/architecture of the Puppet master and the agent node are different. [other

Re: [Puppet Users] Re: Confused by SSL revocation error

2014-11-24 Thread Alex Elman
Jonathan, Glad you fixed the issue! Whenever you do a cert clean or cert remove, it will automatically get added to the certificate revocation list because it is assumed those certs will never be used again. Thanks, -Alex On Nov 24, 2014 10:12 AM, "Jonathan Gazeley" < jonathan.gaze...@bristol.ac.

[Puppet Users] Custom apache module advice needed

2014-11-24 Thread Ugo Bellavance
Hi, I've written my own puppet module for apache because I found that the publicly-available ones had many dependencies or were too complex for me. I'm not a puppet expert and I'm using EPEL's puppet which is 2.7.25. Here is the relevant part of my code that is used to create the apache .conf

Re: [Puppet Users] What can I do with erb templates in Puppet?

2014-11-24 Thread Rob Reynolds
Short of what Spencer has pointed out, there is not a module out there (to my knowledge) that will let you edit xml files in place with XPath type settings on Windows. Yet. I'm sure this is a paint point for quite a few folks that would want to be able to update an XML file in place. Augeas would

[Puppet Users] having an issue when using case statement to search for multiple words in a txt file

2014-11-24 Thread Spriya
Hi All, I am trying to search for multiple words in a text file. But it is not returning any output. l*ogfile = "/home/weblogic/javaapp.txt"* *java_count = 0* *if File.exist? '/home/weblogic/javaapp.txt'* *log = Facter::Util::FileRead.read(logfile)* *unless log.nil?* *log.each_line do |line|* *

Re: [Puppet Users] [puppet apply --ordering = manifest] is not working as expected

2014-11-24 Thread Eric Sorenson
On Nov 24, 2014, at 6:56 AM, jcbollinger wrote: > I would advise you to avoid that thought process. Puppet is not a script > engine, and puppet manifests are not scripts. Wishing that they were, and > using the --ordering = manifest option to try to make it so, is likely to > lead to grief

Re: [Puppet Users] What can I do with erb templates in Puppet?

2014-11-24 Thread Spencer Krum
Maybe file_line hacks? On Mon, Nov 24, 2014 at 9:55 AM, Rob Reynolds wrote: > Short of what Spencer has pointed out, there is not a module out there (to > my knowledge) that will let you edit xml files in place with XPath type > settings on Windows. Yet. I'm sure this is a paint point for quite

Re: [Puppet Users] What can I do with erb templates in Puppet?

2014-11-24 Thread Rob Reynolds
On Mon, Nov 24, 2014 at 1:46 PM, Spencer Krum wrote: > Maybe file_line hacks? > Maybe? I don't know. I threw together a thought earlier today on what this might look like as a custom type/provider - https://gist.github.com/ferventcoder/3e8cf9ff046fef16ad45 > > On Mon, Nov 24, 2014 at 9:55 AM,

[Puppet Users] New puppet-security-announce list

2014-11-24 Thread Moses Mendoza
We have created a new low-volume read-only mailing list for security-related announcements: puppet-security-announce. This list will contain only announcements of Puppet Labs software releases that address security vulnerabilities and other security-related information. This includes information r

Re: [Puppet Users] What can I do with erb templates in Puppet?

2014-11-24 Thread Felix Frank
On 11/24/2014 08:46 PM, Spencer Krum wrote: > Maybe file_line hacks? Not unlike exec { 'sed -i' }, I consider file_line to be a last resort option to managing file contents. Avoid if at all possible. Just my 2c. -- You received this message because you are subscribed to the Google Groups "Pupp

Re: [Puppet Users] Re: Puppet Agent fails; Could not retrieve local facts - but Manually runs successfully

2014-11-24 Thread Felix Frank
On 11/22/2014 10:24 PM, David Waters wrote: > I have similar symptoms with a PE 3.7 agent running on RHEL5, 32-bit > and PE 3.7 running on RHEL6, 64-bit. My specific problems can be > found in the Report Log: > > |err| |Could not retrieve catalog; skipping run| |Puppet| > ||

Re: [Puppet Users] MCollective: Invalid parameter middleware on Class[Mcollective]

2014-11-24 Thread Felix Frank
On 11/23/2014 04:06 PM, Will McDonald wrote: > > Am I missing something obvious? Is the module expecting something else > to provide mcollective::middleware? Well, it's not your fault. The README is ever so slightly outdated. The penultimate change to the module interface neglected to update it:

Re: [Puppet Users] Re: Windows Remote Desktop Services (Could not find a suitable provider for dism)

2014-11-24 Thread Felix Frank
On 11/24/2014 04:23 PM, itzombie...@gmail.com wrote: > > Here is how to use it: https://www.youtube.com/watch?v=LGhaiv7qA_8 > You can get it here: https://dismgui.codeplex.com/ > > I know this is an old post, i'm just trying to help people. It's my > specialty. That's cool, thanks for sharing. P

[Puppet Users] Re: Custom apache module advice needed

2014-11-24 Thread Ugo Bellavance
Sorry for top-posting, but I found my mistake. I didn't know we could not set 'require' more than once. It now looks obvious but it wasn't when I was working on it. Ugo On Monday, November 24, 2014 12:38:33 PM UTC-5, Ugo Bellavance wrote: > > Hi, > > I've written my own puppet module for apa

Re: [Puppet Users] Re: Custom apache module advice needed

2014-11-24 Thread Pete Brown
On 25 Nov 2014 11:37, "Ugo Bellavance" wrote: > > Sorry for top-posting, but I found my mistake. I didn't know we could not set 'require' more than once. It now looks obvious but it wasn't when I was working on it. You can require multiple resources but they need to be in an array. > Ugo > > >

Re: [Puppet Users] Re: Custom apache module advice needed

2014-11-24 Thread Ashish Jaiswal
Hi, Something like this . $baseos_dir = [ "/opt/", "/opt/bin/", "/opt/other", "/opt/other/src", "/opt/other/nosrc", "/opt/other/downloads", "/opt/other/javalib", "/opt/man", "/opt/man/m