Re: [Puppet Users] Download and unzip to install a webapp

2013-02-11 Thread Nikola Petrov
I can advice you to use fmp[1] for this and build a native debian package for your distribution. The tool also supports rpm with the same configuration almost all the time(at least for me). I think that with fpm, you shouldn't *ever* use a zip again. I have a bunch of Makefiles that build my

[Puppet Users] Re: issue storing facts values in mysql on puppet master 3.0.2

2013-02-11 Thread Heena
Hi guys, can anyone have any solution of this problem? On Friday, February 8, 2013 2:54:21 PM UTC+5:30, Heena wrote: Hi, I got the following error:- Error: Could not retrieve catalog from remote server: wrong header line format In puppet.conf file on puppetmaster, I added following lines

Re: [Puppet Users] Puppet F5: Graceful Server Shutdown

2013-02-11 Thread MrTeleBird
Hi Nan, cool, thanks for your reply. We are running both versions of F5, so i think i will give it a try and see if this works. Cheers, Cesar -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] Puppet F5: Graceful Server Shutdown

2013-02-11 Thread MrTeleBird
Another option (I do not know if this would work), would be to translate this script: https://devcentral.f5.com/wiki/icontrol.pspoolmembercontrol.ashx to ruby and execute it when deploying a new application. What do you think?? -- You received this message because you are subscribed to the

[Puppet Users] Puppet 3.1 - remove packages in order/with dependancies.

2013-02-11 Thread Rafał Radecki
Hi All. I would like to remove packages in a specified order because they are connected with dependencies. I use: #cat /etc/redhat-release;uname -r CentOS release 6.3 (Final) 2.6.32-279.9.1.el6.centos.plus.x86_64 #rpm -qa | grep -i puppet puppet-3.1.0-1.el6.noarch In my module manifest: class

Re: [Puppet Users] Certificate nightmares

2013-02-11 Thread Bret Wortman
It was this problem. After nuking the /var/lib/puppet/ssl directory, it re-synced with the server just fine. Thanks! On Friday, February 8, 2013 6:58:22 PM UTC-5, Nick Fagerlund wrote: If a brand new never-seen-before agent starts up, it goes like this: * Do I have a private key? Nope?

Re: [Puppet Users] Certificate nightmares

2013-02-11 Thread Luke Bigum
On Friday, February 8, 2013 11:58:22 PM UTC, Nick Fagerlund wrote: If a brand new never-seen-before agent starts up, it goes like this: * Do I have a private key? Nope? Better generate one. * Okay, do I have a certificate? Nope? See if the master already has one for me. This looks like a

[Puppet Users] non-US-ASCII charapters in manifests (windows puppet 3.1)

2013-02-11 Thread Евгений Верещагин
Puppet 3.1 is released, but problem not fixed. Puppet 3.0 and 2.x don't test manifest for non-ASCII and write uncorrect characters to system (like file names, folders, files and other) . But now Puppet 3.1 test manifest and

Re: [Puppet Users] Certificate nightmares

2013-02-11 Thread Nikola Petrov
I think this should be put somewhere in a wiki or the docs. /me referencing this email for future Best, Nikola On Fri, Feb 08, 2013 at 03:58:22PM -0800, Nick Fagerlund wrote: If a brand new never-seen-before agent starts up, it goes like this: * Do I have a private key? Nope? Better

Re: [Puppet Users] Certificate nightmares

2013-02-11 Thread Bret Wortman
It was. I filed it away for future reference! * * * Bret Wortman*** http://bretwortman.com/ http://twitter.com/BretWortman On Mon, Feb 11, 2013 at 7:55 AM, Nikola Petrov nikol...@gmail.com wrote: I think this should be put somewhere in a wiki or the docs. /me referencing this email for

[Puppet Users] Nagios Contacts(groups)

2013-02-11 Thread Jamie Cressey
I'm currently defining nagioscontacts one-by-one like so; @@nagios_contact { username1: ensure = present, use = generic-contact, contact_name = username1, alias = user1, email = emailaddress1, target =

[Puppet Users] Yum Repositories appear to be offline

2013-02-11 Thread Dan White
Doing a yum check-update just now and got: http://yum.puppetlabs.com/el/5Server/dependencies/x86_64/repodata/repomd.xml: [Errno 12] Timeout: urlopen error timed out Trying other mirror. http://yum.puppetlabs.com/el/5Server/products/x86_64/repodata/repomd.xml: [Errno 12] Timeout: urlopen

[Puppet Users] Puppet resources and Nagios Contacts\Contactgroups

2013-02-11 Thread JamieC
I'm currently defining nagioscontacts one-by-one like so; @@nagios_contact { username1: ensure = present, use = generic-contact, contact_name = username1, alias = user1, email = emailaddress1, target =

[Puppet Users] Re: Yum Repositories appear to be offline

2013-02-11 Thread Gregory B.
+1 the repository is down for me too. Is there any known mirror? -- 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

[Puppet Users] Re: Puppet 3.1 - remove packages in order/with dependancies.

2013-02-11 Thread steve foster
Hi Rafal, the before meta-parameter would help you here: package{ 'Lib_Utils': ensure = absent, before = Package['MegaCli'], } Cheers Steve On Monday, February 11, 2013 11:00:58 AM UTC, Rafał Radecki wrote: Hi All. I would like to remove packages in a specified order because they are

Re: [Puppet Users] Re: Yum Repositories appear to be offline

2013-02-11 Thread Ken Barber
I've alerted operations. Thanks guys. On Mon, Feb 11, 2013 at 1:38 PM, Gregory B. gregorybec...@notonthehighstreet.com wrote: +1 the repository is down for me too. Is there any known mirror? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: [Puppet Users] Re: Yum Repositories appear to be offline

2013-02-11 Thread James Turnbull
Ken Barber wrote: I've alerted operations. Thanks guys. On Mon, Feb 11, 2013 at 1:38 PM, Gregory B. Ops tell me they are back up and running. Regards James -- James Turnbull 1-503-734-8571 To schedule a meeting with me: http://doodle.com/jamtur01 -- You received this message because

Re: [Puppet Users] how to implement cascading defaults based on puppet classes

2013-02-11 Thread jcbollinger
On Sunday, February 10, 2013 12:58:48 PM UTC-6, Roman Shaposhnik wrote: On Sun, Feb 10, 2013 at 9:32 AM, Keith Burdis ke...@burdis.orgjavascript: wrote: Have you looked at using hiera [1] for your configuration? It is very good for cascading defaults with more specific config at the

Re: [Puppet Users] Re: Yum Repositories appear to be offline

2013-02-11 Thread Dan White
Yup ! I can see them now. Thanks, Ops “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin Hobbes) - Original Message - From: James Turnbull ja...@puppetlabs.com To:

[Puppet Users] Re: Puppet 3.1 - remove packages in order/with dependancies.

2013-02-11 Thread jcbollinger
On Monday, February 11, 2013 7:52:23 AM UTC-6, steve foster wrote: Hi Rafal, the before meta-parameter would help you here: package{ 'Lib_Utils': ensure = absent, before = Package['MegaCli'], } Or you could turn it around and use require = Package['Lib_Utils'] metaparameter on

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

2013-02-11 Thread Gavin Williams
Pete Bit of a blast from the past, but this is next on my hit-list... Code looks like it fits quite well overall, however I'm struggling to see how you handle adding additional plugin scripts to the boxes... Can see plugin.pp adding the required nagios cfg additions, but it doesnt appear to

[Puppet Users] Error: Could not find class class for host on node host

2013-02-11 Thread Josh D
I'm a first time user that just installed Puppet 3.1.0 over the weekend and hit a road block that I can't seem to get across. I have a Linux master (Mageia 2) and two Windows 7 clients. I was able to get basic recipes working by putting the resources directly in the node definitions. Now I'm

[Puppet Users] Re: Puppet Certificate verify failed

2013-02-11 Thread Luigi Martin Petrella
I have the same issue right now trying to connect a puppet master on CENTOS 6 and an agent on Red Hat 4. Did you finally found a solution?? Il giorno giovedì 10 marzo 2011 15:18:10 UTC+1, Romgo ha scritto: Hello, I am trying to configure a new puppet server on Debian Squeeze, so the

[Puppet Users] file resource, multiple owner values

2013-02-11 Thread Jennings, Jared L CTR USAF AFMC 96 SK/CCI
With Puppet 2.7.20, it seems that when I write file { '/tmp/bla': owner = ['root', 'jared'] } then if the owner of /tmp/bla is either root or jared, nothing happens, and if not, the owner is changed to root. More generically speaking, my reading of the code suggests that if the

Re: [Puppet Users] f5 module usage/debugging tips?

2013-02-11 Thread Christopher Wood
(Following up to my own post for posterity's sake, see xkcd.com/979.) Short form: for me this isn't yet as easy as a file resource but the puppetized management payoff will be worth the work. My issues are most likely a reflection of my own puppet/ruby/iControl/SOAP skill. I am going to

RE: [Puppet Users] file resource, multiple owner values

2013-02-11 Thread Jennings, Jared L CTR USAF AFMC 96 SK/CCI
This behavior when I provide multiple values for owner is just what I want! But I don't want to depend on it if it might go away. Does anyone else use the owner and group properties this way? Is there documentation for this behavior that I've missed? Ah. From

Re: [Puppet Users] How To Expand an .erb Template Without Doing a Full Puppet Run?

2013-02-11 Thread Ralph Bolton
I have a similar requirement as Jon Forrest who opened this topic. I notice some time has passed since then, so I thought I'd just tap you guys up to see if anyone had any further solutions. I'd like to use Jenkins to Unit Test come configs we use whenever someone commits them. The idea is

Re: [Puppet Users] how to implement cascading defaults based on puppet classes

2013-02-11 Thread Roman Shaposhnik
On Mon, Feb 11, 2013 at 6:39 AM, jcbollinger john.bollin...@stjude.org wrote: I am inclined to suspect, however, that you are rejecting Hiera based on mis- or limited understanding of what it can do for you. If Hiera can in fact do the job adequately, then I think it makes the most sense to

[Puppet Users] file and http source

2013-02-11 Thread GRANIER Bernard (MORPHO)
Hi, We would like to use a file resource with a source with an HTTP URL. Feature #5783 describes this need, and if I understood the comments, it is under development. Is it possible to know if this feature is available in a patch or something like that ? Of course, there is the bypass

[Puppet Users] Strange Could not evaluate error on a File resource

2013-02-11 Thread John Martin
I am in the process of upgrading a Tomcat module to support version 7. As such I copied one of the template files and made the slightest change to the filename, from etc-initd-tomcat6 to etc-initd-tomcat7. The permissions and ownership on the files are identical however when invoking Puppet it

[Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Roman Shaposhnik
Hi! now that dynamic scope lookup is going away, I'm looking for a good alternative for the following use case: suppose I have a set of classes that all set up a pretty rich internal state with quite a few variables defined in their namespace. On top of that all of them need to do a common set of

[Puppet Users] Certificate verify fails without indications

2013-02-11 Thread Luigi Martin Petrella
I have a puppet master on Centos 6.3 connected and working properly with other Centos 6.3 agent. I installed puppet agent via gems on a RED HAT 4 node. This is what happens when I try to sign certificate for the new node: AGENT [root@FP2 ~]$ puppet agent -t Info: Creating a new SSL key

[Puppet Users] How to take a (VMWare) Virtual Machine's Snapshot using Puppet

2013-02-11 Thread Kamal Ahmed
Hi, Here is the scenario: I am on an ubuntu 12.04 host, and want to be able to run a puppet script on another ubuntu 12.04 and Centos 6.3 host, which are VMWare VM's and be able to: 1. Start / Stop The VM 2. Take a snap Shot 3. delete the VM 4. make a FRESH copy of a BASELINE VM, and start it

[Puppet Users] Error: Could not find class class for host on node host

2013-02-11 Thread joe
The simple answer is to put include manifests/*.pp in your site.pp, but real answer to follow the module convention: http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

[Puppet Users] Re: Error: Could not find class class for host on node host

2013-02-11 Thread jcbollinger
On Monday, February 11, 2013 9:24:14 AM UTC-6, Josh D wrote: I'm a first time user that just installed Puppet 3.1.0 over the weekend and hit a road block that I can't seem to get across. I have a Linux master (Mageia 2) and two Windows 7 clients. I was able to get basic recipes working

[Puppet Users] Re: Error: Could not find class class for host on node host

2013-02-11 Thread jcbollinger
On Monday, February 11, 2013 1:46:30 PM UTC-6, joe wrote: The simple answer is to put include manifests/*.pp in your site.pp You misspelled 'import'. As we apparently agree, however, that's a suboptimal solution. John -- You received this message because you are subscribed to the

Re: [Puppet Users] f5 module usage/debugging tips?

2013-02-11 Thread Nan Liu
On Mon, Feb 11, 2013 at 8:27 AM, Christopher Wood christopher_w...@pobox.com wrote: (Following up to my own post for posterity's sake, see xkcd.com/979.) Short form: for me this isn't yet as easy as a file resource but the puppetized management payoff will be worth the work. My issues are

[Puppet Users] Managing puppeteer modules with git

2013-02-11 Thread Mason Turner
How do other people organize their puppet configs in Git? Right now we are using SVN, with about 100 modules and 4 environments. Each module and environment has their own trunk/tag trees, which makes it easy for each product team to manage their individual manifests. (We deploy by tag.)

Re: [Puppet Users] f5 module usage/debugging tips?

2013-02-11 Thread Christopher Wood
On Mon, Feb 11, 2013 at 12:40:12PM -0800, Nan Liu wrote: On Mon, Feb 11, 2013 at 8:27 AM, Christopher Wood [1]christopher_w...@pobox.com wrote: (Following up to my own post for posterity's sake, see [2]xkcd.com/979.) Short form: for me this isn't yet as easy as a file

RE: [Puppet Users] Managing puppeteer modules with git

2013-02-11 Thread Steven Nemetz
We have seperate repos in git for every puppet module. Each module has a Jenkins job to auto test it and if it passes updates the super repo (Main repo with all the module repos in use as submodules). This allows all management of each module (rights, testing, etc) to be independent of all

[Puppet Users] Foreman case sensitive to hostname?

2013-02-11 Thread Tim Owens
Hi, I'm working with Foreman 1.1RC4 on CentOS 6.3 and a PostgreSQL 9.1.7 backend. I'm noticing that our Windows agents will report with a hostname that is uppercase (which it is on the agent), which show up fine in the Foreman GUI and the PSQL DB. The puppet certname in lowercase, of course.

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Jo Rhett
From the snippet you posted, I don't see why you can't pass $var1 into the define. No magic, just straightforward variable passing, right? On Feb 11, 2013, at 9:31 AM, Roman Shaposhnik wrote: now that dynamic scope lookup is going away, I'm looking for a good alternative for the following use

Re: [Puppet Users] Certificate verify fails without indications

2013-02-11 Thread Jo Rhett
Sounds like your puppet master isn't signing the cert with the name that the agent is connecting with? All cert problems are either time sync or certificate name issues. So it's one of those two. On Feb 11, 2013, at 9:35 AM, Luigi Martin Petrella wrote: I have a puppet master on Centos 6.3

[Puppet Users] Re: Getting dangerous with hiera

2013-02-11 Thread Ellison Marks
I don't see your spaceship, but that aside, I believe that your create resources call will try to instantiate two main_class_foo classes, named subclass_one and subclass_two, with the listed parameters. I don't think you can use create_resources to instantiate different kinds of classes. On

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Roman Shaposhnik
On Mon, Feb 11, 2013 at 1:49 PM, Jo Rhett jrh...@netconsonance.com wrote: From the snippet you posted, I don't see why you can't pass $var1 into the define. No magic, just straightforward variable passing, right? Sure thing. The trouble is that as I said -- there's *quite* a rich state that

Re: [Puppet Users] Certificate verify fails without indications

2013-02-11 Thread Luigi Martin Petrella
Jo, I hope that you are right, because probably time or naming problems are solvable, unlike problems with ssl lib... Let's assume it is a timing problem: I syncronized date and hwclock on agent manually, obtaining an offset of 2 seconds with master. Is it too much? Shall I set up an NTP

[Puppet Users] Re: Installing puppet master and puppetdb on the same host.

2013-02-11 Thread Tim Owens
I have puppetDB on my puppetmaster (CentOS 6.3), so I know you can do it. I am using Puppet3.0. You can also use dns_alt_names in your /etc/puppet/puppet.conf file. Here's what I have: [master] certname = puppet.domain.com dns_alt_names = puppet.domain.com,puppetdb.domain.com,puppet On

Re: [Puppet Users] how to implement cascading defaults based on puppet classes

2013-02-11 Thread jcbollinger
On Monday, February 11, 2013 11:09:28 AM UTC-6, Roman Shaposhnik wrote: On Mon, Feb 11, 2013 at 6:39 AM, jcbollinger john.bo...@stjude.orgjavascript: wrote: I am inclined to suspect, however, that you are rejecting Hiera based on mis- or limited understanding of what it can do for

Re: [Puppet Users] Certificate nightmares

2013-02-11 Thread Nick Fagerlund
On Monday, February 11, 2013 4:24:34 AM UTC-8, Luke Bigum wrote: Nick that's a pretty awesome explanation of the handshake and corresponding REST calls. Is that written down anywhere official? Perhaps with corresponding Puppet Master / Agent log entries? Good call, especially since I

[Puppet Users] Alternatives to attempting self-modifying puppet code....

2013-02-11 Thread llowder
The title pretty much sums it up. I've got a situation where I need to have puppet enforce a given state most of the time, then when a certain flag is present it needs to use a different state - but only until a certain amount of time has passed, at which point it needs to go back to the

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread jcbollinger
On Monday, February 11, 2013 4:03:24 PM UTC-6, Roman Shaposhnik wrote: On Mon, Feb 11, 2013 at 1:49 PM, Jo Rhett jrh...@netconsonance.comjavascript: wrote: From the snippet you posted, I don't see why you can't pass $var1 into the define. No magic, just straightforward variable

[Puppet Users] apache 2.4 support in puppetlabs/apache

2013-02-11 Thread Peter Brown
Hi everyone, I started testing out the puppetlabs/apache module from forge on a Fedora 18 server and noticed it doesn't have multiple version support for apache. Fedora 18 runs apache 2.4 and there are a few of modules that don't exist any more and a few config changes. I was pondering forking

Re: [Puppet Users] Puppet broken in upgrade from 3.0.1 to 3.1.0

2013-02-11 Thread thinkwell
Well, this problem continues to harass me. I have to recreate an agent certificate on the puppet master after every reboot before puppet agents will update successfully. What am I doing wrong? On Wednesday, February 6, 2013 2:43:44 PM UTC-5, Johan De Wit wrote: On 02/06/2013 05:46 PM,

[Puppet Users] Filebucket: storage and retrieval of unique per node files

2013-02-11 Thread Brian Warsing
Hi, I need to backup a unique file from each of my nodes to a remote filebucket. I will also need to be able to retrieve/restore said file on-demand at a later date. I'm familiar with the basic config and operation for filebucket, but confused about how one restores a file for a given host

Re: [Puppet Users] non-US-ASCII charapters in manifests (windows puppet 3.1)

2013-02-11 Thread Josh Cooper
On Mon, Feb 11, 2013 at 4:46 AM, Евгений Верещагин e.verescha...@gmail.comwrote: Puppet 3.1 is released, but problem not fixed. Puppet 3.0 and 2.x don't test manifest for non-ASCII and write uncorrect characters to system (like file names, folders, files and other) . But now Puppet 3.1 test

Re: [Puppet Users] Getting dangerous with hiera

2013-02-11 Thread Dan White
OK. Lets try it like this: whatever.pp - class main_class_foo::subclass_one ( $parameter_one_a, $parameter_one_b ) { ... } class main_class_foo::subclass_two ( $parameter_two_a, $parameter_two_b ) { ... } -

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

2013-02-11 Thread Peter Brown
Hi Gavin. Those are in my monitoring module which uses nrpe::plugin define to add resources to a node. It's on forge and github now if you want to take a look... I am trying to write more portable code that manages one service as opposed to how I had it before which was one module managing

Re: [Puppet Users] How to take a (VMWare) Virtual Machine's Snapshot using Puppet

2013-02-11 Thread Marco Shaw
but cannot find puppet samples, where a user can get permissions to create a VM SnapShot, and also revert it, without having root access, or admin rights. I would consider 2 possible approaches: 1. You have to get a restricted user created by a VMware administrator. 2. You consider creating a

Re: [Puppet Users] non-US-ASCII charapters in manifests (windows puppet 3.1)

2013-02-11 Thread Евгений Верещагин
I think you are running into https://projects.puppetlabs.com/issues/17010. The win32-dir gem we are using to return the COMMON_APPDATA directory returns a ruby string in UTF-16LE, which for some reason File.join does not allow. It assumes it is always passed UTF-8 strings, or at least

[Puppet Users] Hiera question -- accessing a hash from an erb template

2013-02-11 Thread Gonzalo Servat
Hi All, Simple question (hopefully). Say I have this: common.yaml: foo: bar: 10GB ... and in the manifest: $config = hiera('foo') file { '/etc/foo.conf': content = template('module/foo.erb') } ... and in foo.erb: file_size: %= @config['bar'] % For some reason, the output in

[Puppet Users] Re: apache 2.4 support in puppetlabs/apache

2013-02-11 Thread Peter Brown
Just letting people know I have made a start on this. It seems the best way to achieve it is to write a custom fact or two and a couple of functions. Will setup a fork of the code soon and put my results in it. I will post a link to my fork if anyone wants to help test once I have it setup. On

[Puppet Users] puppet dashboard(open source)

2013-02-11 Thread Mamta Garg
I am setting up puppet opensource ,I am not able to lauch puppet dashboard. Can anyone please tell me if puppet opensource dashbord setting is same as in puppet dashboard or i need to do some different setting for this? -- Thanks and Regards, Mamta Garg -- You received this message because you

[Puppet Users] Unable to resolve notrun to 0 error

2013-02-11 Thread yarlagadda ramya
*Hi all this is the manifest i have written for installing oracle:* $URL = http://192.168.24.171:8080/softwares/linux.x64_11gR2_database_1of2.zip; $Software = /db $Server = /db/oracle exec { download_url: command = /usr/bin/wget $URL, cwd = $Software, } exec {copy_unzip:

[Puppet Users] Re: Managing puppeteer modules with git

2013-02-11 Thread Félix Barbeira
I´m thinking in create three different puppet environments: develop, testing and production. Each environment has its own dir /etc/puppet/environments/$environment/modules/. You can manage the modules using the flag --environment with every command, for instance: # puppet module install