Re: [Puppet Users] Environmets doesnt work on Puppet 2.7

2012-12-03 Thread Fran Rodríguez
Thanks Walter for the answer, but thats its not a solution because maybe there are plugins which are in development environment and arent on production. I already found the solution this weekend, the problem was the module ssh, it was too old. I have to patch the module for what it accepts

Re: [Puppet Users] Is new puppet node compatible with old puppetmaster ?

2012-12-03 Thread Balasubramaniam Natarajan
Thanks you people saved me lots of time :-) On Sun, Dec 2, 2012 at 8:04 PM, Kevin ke...@fuber.org wrote: No newer masters support older methods for a catalog. Newer agents will use newer methods. master = agent == fine master agent == borked On Mon, Dec 3, 2012 at 12:00 PM, Walter Heck

[Puppet Users] Puppet Nagios/NRPE with Plugins...

2012-12-03 Thread Gavin Williams
Morning all I've had a quick google, but couldn't find anything useful for our scenario... Basically, we use Nagios NRPE in our environment, along with a hand-full of in-house written plugins specific to our applications etc... These scripts change on a fairly regular basis, so hand

Re: [Puppet Users] Puppet Nagios/NRPE with Plugins...

2012-12-03 Thread Nikola Petrov
Well you can tell puppet to source a whole directory and put it somewhere for you. Here is an example from our nagios application specific manifest snip class app { #install the app package include app::install include base #generic nagios checks like memory, load, etc include

[Puppet Users] Re: hiera default values for a variable

2012-12-03 Thread Vaidas Jablonskis
Hi Pete, It depends on what version of puppet you use. If you use 3.x, then it has hiera built-in. So it's very simple to write classes which are compatible with v2.7 or v3.x versions. I normally write something like this: class foo( $parameter = undef, ) {...} What that means is that

Re: [Puppet Users] Puppet on OpenSuSE SLES

2012-12-03 Thread Darin Perusich
EOL distro's can be enabled manually but you'll need to contact one of the the repo maintainers to do so. Click on the users tab in the webui and email one or all of the maintainers. -- Later, Darin On Fri, Nov 30, 2012 at 7:08 PM, Ashley Gould ago...@ucop.edu wrote: On Mon, Nov 26, 2012 at

[Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
Thanks for the great response James. I think you have done exactly what I am looking to do. I want to ask more about controlling the versions of the application packages in hiera. I have multiple different dev groups who each work on different release schedules. I don't want to have

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Brendan O'Bra
This is a great thread - it's really nice to hear others are pondering similar challenges ;) Count me in as Puppet does this well, I'm unclear what the issues are I'm also in the process of pondering this very process. Here's what I've come up with (which seems very similar to James'): We are

[Puppet Users] Re: hiera default values for a variable

2012-12-03 Thread llowder
On Sunday, December 2, 2012 9:42:08 PM UTC-6, Pete wrote: Hi everyone, I currently have a giant file with default variables I use in a lot of my modules and I override those at the node level if I need to. I thought I would give porting that data into a hiera setup. I worked out how to

[Puppet Users] Re: Environmets doesnt work on Puppet 2.7

2012-12-03 Thread llowder
On Thursday, November 29, 2012 9:02:27 AM UTC-6, Fran Rodríguez wrote: Hi group, I got a problem with environments, im getting this erros from the client: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template ssh/retrieve_priv_key.erb: cannot find

[Puppet Users] checking if DB populated

2012-12-03 Thread Luca Gioppo
Which is the bast strategy to check if a DB has been populated? The target is to execute the mysql file.sql just once since it could not be idempotent. The idea is to use the unless clause to stop it to run if there is the known data in the table, but it seems that it is just happy with the

[Puppet Users] Re: Solaris processor count facts - bug or feature?

2012-12-03 Thread Andrew Beresford
Feature :) This all comes down to the architecture of your processor. Your SPARC64-VII processors is a quad-core, two-way SMT processor. So, you have one physical CPU, four cores, and 8 threads. physicalprocessorcount is derived from the output of psrinfo -p and processorcount is derived

[Puppet Users] Unnecessary changes when creating facts.yaml

2012-12-03 Thread Andrew Beresford
I have set up puppet to create a facts.yaml file for mcollective using the following line: content = inline_template(%= scope.to_hash.reject { |k,v| k.to_s =~ /(uptime.*|timestamp|.*free|macaddress.*|ipaddress)/ }.to_yaml %), However, it is creating a lot of unnecessary changes by

Re: [Puppet Users] checking if DB populated

2012-12-03 Thread Nikola Petrov
I am using the following and it serves us well. Basically it makes sure that the importing is done and executes ' touch semaphore' file. There are plans to put those into /var/lib/puppet/sql-snippets instead of in /opt but oh well it seems I am too lazy to go and move them on each server now...

[Puppet Users] Re: Roles, Profiles and Application Specific Needs

2012-12-03 Thread jcbollinger
On Sunday, December 2, 2012 11:32:29 PM UTC-6, Smashed wrote: I'ven been learning puppet over the last 2 weeks and the one thing I've come to realize is there is a completely different way of thinking that I've normally been accustomed to. I've been trying to absorb as much knowledge as

[Puppet Users] Re: Hiera tool and hiera-puppet returns different data

2012-12-03 Thread jcbollinger
On Sunday, December 2, 2012 4:19:24 PM UTC-6, Vaidas Jablonskis wrote: wrong. Thanks to reidmv and Volcane from #puppet @freenode for explaining this to me. There is no easy way to use hiera_hash() or hiera_array() using the built-on hiera() lookup. The easiest workaround in my case

[Puppet Users] Re: Environmets doesnt work on Puppet 2.7

2012-12-03 Thread Fran Rodríguez
+1. Thats my route and thats what i think, but if the module doesnt use enviroment variable to create the path... bad!! Well, i mean old modules, like mine. Cheers On Monday, 3 December 2012 15:25:05 UTC+1, llowder wrote: On Thursday, November 29, 2012 9:02:27 AM UTC-6, Fran Rodríguez

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
What I am understanding is that people are having success building/testing/deploying the OS/Middleware/Application stack by wrapping applications in a puppet resource. Thus bringing all configuration management under puppet. This is good as it is the direction I wanted to go. I would like

Re: [Puppet Users] Roles, Profiles and Application Specific Needs

2012-12-03 Thread Mark
John, thanks for your input. I should note however that this application is just one of several types of machines that we will set up. It's just that this our primary type of machine that needs to be configured so I listed it as an example. We have other such as, memache, redid, solr, hadoop,

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Brendan O'Bra
But what these solutions have in common is that an individual at some point in time has to make some change to the puppet system. Please elaborate - Do you mean that someone has to tell Puppet about what versions to use? My ultimate solution will be emitting a manifest containg the names and

Re: [Puppet Users] Apply created class on node

2012-12-03 Thread Chad Huneycutt
Hi Jakov, /etc/puppet/modules/users/run/manifests/init.pp is not going to get applied. A couple things. * Somewhere in your manifests you need to have a 'node' definition. Compilation starts with your manifest, which is /etc/puppet/manifests/site.pp . You can either put node definitions in

Re: [Puppet Users] Puppet CA corruption

2012-12-03 Thread shoerner
Got a little further by running puppetdb-foreground. Now I can get as far as node certificate generation. Once I start the node certificate generation, I get a new certificate, but then PuppetDB blows up with javax.net.ssl.SSLException: Received fatal alert: decrypt_error Immediately after

[Puppet Users] Re: Puppet CA corruption

2012-12-03 Thread shoerner
Tried this, both systems are within seconds of each other as best I can tell. Both are also synced to US NTP Pool 1. On Friday, November 30, 2012 2:07:30 PM UTC-5, tas wrote: I have the same exact problem over and over and over, so I gave up on Puppet. But maybe you can try resolve this by

[Puppet Users] Re: Puppet CA corruption

2012-12-03 Thread shoerner
@tas: Tried this already, both times were within a few seconds of each other as best as I can tell. Additionally, both systems are synced to US NTP Time pool 1. On Friday, November 30, 2012 2:07:30 PM UTC-5, tas wrote: I have the same exact problem over and over and over, so I gave up on

[Puppet Users] What is the 'puppet console'?

2012-12-03 Thread Mika
Sorry, bit of a noob here at puppet -- I've been configuring puppet modules and I was installing a module and following the instructions -- and they mention putting variables into the Console. I don't use any GUIs (nor do I want to) for puppet, so I was under the impression everything was just

Re: [Puppet Users] What is the 'puppet console'?

2012-12-03 Thread Gary Larizza
Hi Mike, The 'console' is the Puppet Enterprise Console, a GUI that comes with Puppet Enterprise. It was derivative of the Puppet Dashboard, which is also a GUI based on rails. Everything specified in the console can be specified in your site.pp, or in a class, or even looked up with something

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
On Monday, December 3, 2012 11:34:53 AM UTC-5, Brendan O'Bra wrote: But what these solutions have in common is that an individual at some point in time has to make some change to the puppet system. Please elaborate - Do you mean that someone has to tell Puppet about what versions to

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread James Fellows
Though we have lots of automated testing we still rely on the human touch for checking UI look and feel, and doing exploratory testing (in the pre production environment). Once it has passed this step the human can approve it for production deployment by updating the version number in hiera.

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Ramin K
On 12/3/2012 5:57 AM, Schofield wrote: Thanks for the great response James. I think you have done exactly what I am looking to do. I want to ask more about controlling the versions of the application packages in hiera. I have multiple different dev groups who each work on different release

[Puppet Users] It is possible to transfer files from nodes to master?

2012-12-03 Thread cristy
Hi, I'm newbie to puppet, and I was wondering if it is possible to get files from nodes to master, not only in uniderictional way like master to agent nodes. To be more specific, I need to create dumps of client's database and get it back to the server. Thank you! -- You

[Puppet Users] Is this ok to do?

2012-12-03 Thread Mark
Should you require all explicit dependencies when working with resources or can you cheat like the following: https://gist.github.com/4197521 Basically, should the File['bas'] resource explicitly require File['foo'] and File['baz']? -- You received this message because you are subscribed to

Re: [Puppet Users] Is this ok to do?

2012-12-03 Thread Gary Larizza
Mark, Dependencies can be 'chained' exactly as you specified in your gist. File['baz'] will indeed come after File['foo'] and File['bar'] without the explicit dependency on File['bar']. On Mon, Dec 3, 2012 at 11:54 AM, Mark static.void@gmail.com wrote: Should you require all explicit

Re: [Puppet Users] Is this ok to do?

2012-12-03 Thread Gary Larizza
As for the 'SHOULD I do this?' question, I think it's a perfectly acceptable pattern as long as you understand that if File['bar'] fails, File['baz'] will NOT be evaluated/created. If that's what you want, then that's okay. If that's NOT what you want, then you need to change the dependency.

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread Schofield
On Monday, December 3, 2012 2:32:15 PM UTC-5, j4m3s wrote: Though we have lots of automated testing we still rely on the human touch for checking UI look and feel, and doing exploratory testing (in the pre production environment). Once it has passed this step the human can approve it

[Puppet Users] Weird mode issues with /var/lib/puppet/lib

2012-12-03 Thread Shawn Knight
I have two puppet master servers in my fledgling puppet infrastructure, a production one and a dev one. I have configured the production one as the authoritative CA, and I have one test agent machine which I'm switching back and forth with the server option in /etc/puppet/puppet.conf. When I

[Puppet Users] Re: Weird mode issues with /var/lib/puppet/lib

2012-12-03 Thread Shawn Knight
Correction; the mode the production server wants for that directory is 2775, not 2755. I'm still baffled why the two masters are different and managing that directory on the agent. --Shawn -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

[Puppet Users] Re: Apparent problem with resource ordering using Puppetlabs Corosync module (does not bring up HA resources in correct order when configured to do so)

2012-12-03 Thread SirDiesALot
Hi, Nick - Thanks for the response! Those changes do appear to have made the manifest apply and work correctly. Now I just have to figure out why corosync can't get jboss to stop once it has been started (I can't either, 'service jboss stop' seems to hang indefinitely). On to the next

[Puppet Users] Re: What is the 'puppet console'?

2012-12-03 Thread Chris Handy
I love this post on the evolution. The one thing that is missing which im pretty sure I have seen somewhere is the ability to properly name your hiera variables with the proper package structure such that you dont even need to do a hiera lookup, they will just get auto injected. Can someone

[Puppet Users] Re: puppetlabs-firewall source array not working as expected

2012-12-03 Thread Bezerker
Dusty, I actually had the same issue and brought this up with Ken Barber at PuppetConf. I believe he and several others have looked into this briefly but nothing much has come from it. There was a puppet bug report where another user had managed to have it take arrays without too much

Re: [Puppet Users] Re: What is the 'puppet console'?

2012-12-03 Thread Gary Larizza
Yep, This is in Puppet as of version 3.0.0 See http://docs.puppetlabs.com/puppet/3/reference/release_notes.html#automatic-data-bindings-for-class-parameters which will refer you to this section -- http://docs.puppetlabs.com/puppet/3/reference/lang_classes.html#include-like-vs-resource-like Hope

Re: [Puppet Users] Re: How to do release managment integration with puppet?

2012-12-03 Thread James Fellows
Sorry, I have only really given you part of the story haven't I. We have a puppet class hierarchy that we use to specify the various components that need to go on a particular type of host - e.g app server or web server or db server. A dev machine includes several roles (machines are

[Puppet Users] Re: puppetlabs-firewall source array not working as expected

2012-12-03 Thread Dusty Doris
Thanks for the reply. I will take a look at that patch. I have been trying to accomplish this with defined resources, unfortunately my particular case isn't working well for that. Here is my attempt, perhaps anyone has some suggestions? define myfirewall::accept($proto='tcp', $ports) {

[Puppet Users] Re: Puppetlabs firewall module

2012-12-03 Thread David Mesler
Julia, did you ever figure this out? I'm running into this issue as well. --david On Tuesday, May 22, 2012 5:28:05 AM UTC-4, Julia Smith wrote: I'm trying to use the firewall resource and it works fine for me for iptables. However, I'm not sure how I purge ip6tables? doing...

Re: [Puppet Users] Puppet Nagios/NRPE with Plugins...

2012-12-03 Thread Peter Brown
Hi Gavin, I have a module i wrote that seems like it will do what you need. I also have a nagios module that uses it to setup nrpe services on each node and exports nagios checks to be imported into a nagios instance. I basically setup nrpe on each node to use a config directory and have a

Re: [Puppet Users] Re: hiera default values for a variable

2012-12-03 Thread Peter Brown
On 3 December 2012 22:38, Vaidas Jablonskis jablons...@gmail.com wrote: Hi Pete, It depends on what version of puppet you use. If you use 3.x, then it has hiera built-in. So it's very simple to write classes which are compatible with v2.7 or v3.x versions. I am testing on 3. I normally

Re: [Puppet Users] It is possible to transfer files from nodes to master?

2012-12-03 Thread Peter Brown
On 4 December 2012 05:33, cristy cristy...@gmail.com wrote: Hi, I'm newbie to puppet, and I was wondering if it is possible to get files from nodes to master, not only in uniderictional way like master to agent nodes. To be more specific, I need to create dumps of client's

Re: [Puppet Users] It is possible to transfer files from nodes to master?

2012-12-03 Thread Gary Larizza
Cristy, Puppet doesn't have a built-in way to grab data from the client-side and save it on the Master. There IS the Filebucket (http://docs.puppetlabs.com/references/latest/type.html#filebucket http://docs.puppetlabs.com/man/filebucket.html) but that's not something I would feel comfortable

Re: [Puppet Users] It is possible to transfer files from nodes to master?

2012-12-03 Thread Peter Brown
Hi again. It's probably a better idea to use a dedicated backup tool to do this. Puppet wasn't designed as a backup tool. It can likely be setup to manage the backup software and such. I personally do backups with amanda which I manage with puppet using a module I found and some extra classes to

Re: [Puppet Users] Puppet Nagios/NRPE with Plugins...

2012-12-03 Thread fatmcgav
Pete Sounds good to me... N be easier than me re-inventing the wheel... Would be happy to guinea pig... :) Cheers Gav On 3 December 2012 23:56, Peter Brown rendhal...@gmail.com wrote: Hi Gavin, I have a module i wrote that seems like it will do what you need. I also have a nagios module