[Puppet Users] Re: Disable SSL when compiling catalogs for testing purposes

2014-03-05 Thread Alexander Fortin
On Wednesday, March 5, 2014 7:07:42 PM UTC+1, jcbollinger wrote: > > > > On Wednesday, March 5, 2014 8:35:40 AM UTC-6, Alexander Fortin wrote: >> >> [...] my understanding is >> that every time we create the catalog, i.e. running >> >> puppet master --compile myhost >> >> this will also create a

Re: [Puppet Users] Multiple Puppet Masters Sharing .pp files?

2014-03-05 Thread José Luis Ledesma
+1 just a one puppet master. If you cannot attack it directly from clients, set up a proxy in each location. Regards El 06/03/2014 00:36, "Garrett Honeycutt" escribió: > > > On Wednesday, March 5, 2014 3:28:30 PM UTC-8, Patrick Kelso wrote: >> >> On Thu, Mar 6, 2014 at 9:48 AM, kevin McCartney

Re: [Puppet Users] Multiple Puppet Masters Sharing .pp files?

2014-03-05 Thread Garrett Honeycutt
On Wednesday, March 5, 2014 3:28:30 PM UTC-8, Patrick Kelso wrote: > > On Thu, Mar 6, 2014 at 9:48 AM, kevin McCartney > > > wrote: > > We have a few different offices. I am looking to setup a puppet master > in > > each location. I would like them to all have the same node definitions > so

Re: [Puppet Users] Multiple Puppet Masters Sharing .pp files?

2014-03-05 Thread Patrick Kelso
On Thu, Mar 6, 2014 at 9:48 AM, kevin McCartney wrote: > We have a few different offices. I am looking to setup a puppet master in > each location. I would like them to all have the same node definitions so > that all offices are working off the same recipes. Is it possible if we have > an nfs sha

[Puppet Users] Multiple Puppet Masters Sharing .pp files?

2014-03-05 Thread kevin McCartney
We have a few different offices. I am looking to setup a puppet master in each location. I would like them to all have the same node definitions so that all offices are working off the same recipes. Is it possible if we have an nfs share that is accessable to all puppet masters that the .pp fil

[Puppet Users] Error 400 on SERVER: invalid byte sequence in UTF-8

2014-03-05 Thread Jay Benner
I keep getting this error with a module I wrote. Apparently, it doesn't like something about my module, but I don't see anything interesting about it. I found the bug below, but I don't know which config.ru to edit for the workaround. Has anyone else seen this? https://projects.puppetlabs.co

Re: [Puppet Users] puppet post install launchd osx

2014-03-05 Thread Matthaus Owens
Rudy, So this error seems to be your trouble: Error: Could not run: Could not create PID file: /var/lib/puppet/run/agent.pid Does the directory /var/lib/puppet/run exist (or /var/lib/puppet)? What are the permissions, who owns it? On Wed, Mar 5, 2014 at 1:19 PM, Rudy McComb wrote: > Hi Moses,

[Puppet Users] Re: Problems in Ch. 4 of Pro Puppet 2nd Edition

2014-03-05 Thread Alessandro Franceschi
Hei Jon, your text correction and errors hunting skills are impressive. I'm writing a book about Puppet too and am definitively in time to correct it before printing. There are already technical reviewers doing a great work, but I think you can add great value to the contents and their correctnes

Re: [Puppet Users] puppet post install launchd osx

2014-03-05 Thread Rudy McComb
Hi Moses, I was able to successfully uninstall the previous versions of gem installed 'puppet'. i did reinstall with dmg but and still having puppetd exit with a code of 1. what am i doing wrong? here is my updated plist and manifest to start launchctl http://pastebin.com/CX56cucf http://paste

[Puppet Users] Re: Passenger with Puppet 3.0, problems running under

2014-03-05 Thread jaredmacleod
Thank you. I just ran into this also, and your post had the info I needed. -- 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

[Puppet Users] Best Practices/Ideas for mixing Windows and Linux

2014-03-05 Thread Jared Annes
I'm fairly new to puppet, and I've been tasked with building manifests to deploy software, mostly monitoring agents. Each agent has different versions, and each agent has different package for each OS. I'm trying to figure out which would be the best way to accomplish this from a design perspec

[Puppet Users] Re: Problems in Ch. 4 of Pro Puppet 2nd Edition

2014-03-05 Thread Spencer Krum
Hi Jon, My name is Spencer Krum. I am one of the authors of Pro Puppet. I want to thank you for going through the book with such a fine toothed comb. I wish I had known you were so committed to making this book a success months ago. I would have gotten you an advance copy so you could have help

[Puppet Users] Re: How to check if a service Or a Package exists

2014-03-05 Thread jcbollinger
On Wednesday, March 5, 2014 9:40:48 AM UTC-6, kaustubh chaudhari wrote: > > Hi All, > > I need to check if a service or a package is already installed before > running the further code. > > Eg: > > Install bigfix package if bigfix service dose not exist. > > i know ensure => true will do this, b

Re: [Puppet Users] Windows 2012 R2 out-of-sync / not checking in?

2014-03-05 Thread Nick Hobart
The issue was in fact the user. I was running as my user account and that was conflicting with the system service account. Details here: https://ask.puppetlabs.com/question/5580/windows-2012-r2-not-checking-in/ On Tuesday, March 4, 2014 6:09:32 PM UTC-6, Rob Reynolds wrote: > > What user is pup

[Puppet Users] Re: Disable SSL when compiling catalogs for testing purposes

2014-03-05 Thread jcbollinger
On Wednesday, March 5, 2014 8:35:40 AM UTC-6, Alexander Fortin wrote: > > [...] my understanding is > that every time we create the catalog, i.e. running > > puppet master --compile myhost > > this will also create a SSL cert for myhost. I can't say for certain that you're wrong, but I have

Re: [Puppet Users] munin service wont' star

2014-03-05 Thread José Luis Ledesma
Well, it is not an unbreakable rule, but from my point referencing individual resources from another class is a source of possible future problems. In a simple module like the OP seems to expose, that is: Params Config Install Service If you reference individual resources from another class will

Re: [Puppet Users] Windows: Can't create/update file in user's home directory using template

2014-03-05 Thread Rob Reynolds
Thanks, I updated the issue name to help some for future searching. On Wed, Mar 5, 2014 at 12:14 AM, Dirk Heinrichs wrote: > Am 05.03.2014 01:14, schrieb Rob Reynolds: > > This appears to be PUP-1389[1]. We've fixed a found issue with Windows > 2012 and ruby and how they handle the double lin

Re: [Puppet Users] Possible to get just the keys out of a hiera hash?

2014-03-05 Thread Kenton Brede
Works great! -- Thanks. On Wed, Mar 5, 2014 at 10:03 AM, Robin Bowes wrote: > Have a look in stdlib for the keys function. > > R. > > > On 5 March 2014 15:56, Kenton Brede wrote: > >> So in hiera I've got: >> >> users_common: >> user1: >> ensure: present >> home: /home/user

Re: [Puppet Users] Re: setting up class default values

2014-03-05 Thread Tim Dunphy
> > My best translation of your apparent intent into effective Puppet code > would be this: > Class['postfix::install'] -> Class['postfix::config'] > Class['postfix::config'] ~> Class['postfix::service'] > . That which can be shortened to this: > Class['postfix::install'] -> Class['postfix::config

[Puppet Users] puppetlabs-mysql module still doesn't properly support $datadir?

2014-03-05 Thread Matt W
It seems like this has been an issue in the past (https://github.com/puppetlabs/puppetlabs-mysql/issues/228, https://groups.google.com/forum/#!searchin/puppet-users/mysql/puppet-users/mkQygmpa610/bXIslE9EG4cJ), but I'm not sure its fixed yet. Can anyone show me some demonstration puppet code t

Re: [Puppet Users] ignoring changes to a file

2014-03-05 Thread Thomas Müller
On Wed, 05 Mar 2014 07:57:18 -0800 wrote kaustubh chaudhari: > Hey Thomas, > > > Thats the tricky part! The location where i want to copy this file is > created by setup. Its a windows application. > > So i will have to copy the file(overwrite) it after the package > installation and than ignor

Re: [Puppet Users] Possible to get just the keys out of a hiera hash?

2014-03-05 Thread Robin Bowes
Have a look in stdlib for the keys function. R. On 5 March 2014 15:56, Kenton Brede wrote: > So in hiera I've got: > > users_common: > user1: > ensure: present > home: /home/user1 > managehome: true > user2: > ensure: present > home: /home/user2

Re: [Puppet Users] ignoring changes to a file

2014-03-05 Thread kaustubh chaudhari
Hey Thomas, Thats the tricky part! The location where i want to copy this file is created by setup. Its a windows application. So i will have to copy the file(overwrite) it after the package installation and than ignore any changes to that file. Thats where i am stuck! -Kaustubh On Wednesday

[Puppet Users] Possible to get just the keys out of a hiera hash?

2014-03-05 Thread Kenton Brede
So in hiera I've got: users_common: user1: ensure: present home: /home/user1 managehome: true user2: ensure: present home: /home/user2 managehome: true I'm using "users_common" with a create_resources in one class but I'd like to just pull o

[Puppet Users] Re: Puppet 2.6.18 Automodule loading -> Wrong number of Arguments (1 for 2)

2014-03-05 Thread jcbollinger
On Tuesday, March 4, 2014 4:08:16 AM UTC-6, Michel Vocks wrote: > > Dear Puppet-Users, > > I'm currently stucking at a wired error message. > Below I've posted all important output. > When I run this configuration on the same machine or on an client I geht > the following error: > err: Could not

Re: [Puppet Users] ignoring changes to a file

2014-03-05 Thread Thomas Müller
On Wed, 05 Mar 2014 07:32:59 -0800 wrote kaustubh chaudhari: > Thanks Alexzender and Thomas for the reply. > > This is partially useful. > > The requirement is i need to copy it first basically overwrite it once > and then ignore all the changes. > > Any clue how this can be achieved! create t

[Puppet Users] How to check if a service Or a Package exists

2014-03-05 Thread kaustubh chaudhari
Hi All, I need to check if a service or a package is already installed before running the further code. Eg: Install bigfix package if bigfix service dose not exist. i know ensure => true will do this, but there is a possibility that bigfix was installed from the source in c:\bigfix on few ser

[Puppet Users] Re: puppet applying wrong/old configuration to client

2014-03-05 Thread jcbollinger
On Tuesday, March 4, 2014 4:07:26 AM UTC-6, Denny wrote: > > Hi all, > > I'm pretty new to puppet and couldn't find any solution yet. > > Right now I have seven hosts managed via puppet. Four of them are kinda > broken since yesterday. They are using an old/cached(?) configuration. > > My curren

Re: [Puppet Users] ignoring changes to a file

2014-03-05 Thread kaustubh chaudhari
Thanks Alexzender and Thomas for the reply. This is partially useful. The requirement is i need to copy it first basically overwrite it once and then ignore all the changes. Any clue how this can be achieved! 5, 2014 10:02:59 AM UTC-5, Thomas Müller wrote: > > On Wed, 05 Mar 2014 06:41:45

[Puppet Users] Monitoring an apache/passenger puppetmaster setup?

2014-03-05 Thread Christopher Wood
How do you monitor your apache/passenger-fronted puppetmaster to find out when it's down? As backstory, we have a chaos monkey sort of cron job randomly kill-9'ing random processes and monit checking services to make sure they stay up. (Sadly the chaos monkey part probably won't make it into pr

[Puppet Users] Re: setting up class default values

2014-03-05 Thread jcbollinger
On Tuesday, March 4, 2014 11:17:48 AM UTC-6, bluethundr wrote: > > Hey all, > > I'm attempting to setup some defaults to my postfix 'config' class to > require a package and request a refresh of the postfix service. > > This is my class definition: > > class postfix::config { >$require = C

Re: [Puppet Users] ignoring changes to a file

2014-03-05 Thread Thomas Müller
On Wed, 05 Mar 2014 06:41:45 -0800 wrote kaustubh chaudhari: > One of my application requires me to copy a config file after > installation the application. This needs to be done only once after > installation > > However this config file is managed by a central server and keeps on > getting upd

[Puppet Users] Re: Syntax for echoing Fqdn name inside a hash value (please help)

2014-03-05 Thread jcbollinger
On Tuesday, March 4, 2014 3:56:48 PM UTC-6, Virtual_user wrote: > > > Hi > i am using puppet 2.7 > > i want to echo the Fqdn name in a template by using looping through the > hash, > > Example, in site.pp i have > > $acc_sudo = $mc_servertype ? { > 'system' => [ '%APP *<%= fqdn %>* =/

[Puppet Users] Re: Puppet Enterprise 3.2 now available

2014-03-05 Thread Bas Neve
Well unfortunately my installscript hung... Op dinsdag 4 maart 2014 17:04:56 UTC+1 schreef Eric Sorenson: > > Hello puppet-users, > > We're pleased to announce that Puppet En

[Puppet Users] Disable SSL when compiling catalogs for testing purposes

2014-03-05 Thread Alexander Fortin
Hi folks, recently in our Puppet pipeline we added a few tests on catalogs leveraging Ripienaar's puppet-catalog-diff [1]. Basically, before merging to production, for each node we compare the catalogs between production and the committed developing version, to spot any (maybe unwanted) change bef

[Puppet Users] Re: ignoring changes to a file

2014-03-05 Thread Alexander Fortin
On Wednesday, March 5, 2014 3:41:45 PM UTC+1, kaustubh chaudhari wrote: > > Hi All, > > One of my application requires me to copy a config file after installation > the application. This needs to be done only once after installation > > However this config file is managed by a central server and k

[Puppet Users] Caught Encoding::CompatibilityError

2014-03-05 Thread Andrew Langhorn
Hi, I have a Puppet repository using Hiera as a lightweight ENC rather than the more traditional init.pp script in the manifests directory. When using Vagrant to test my commits work fine before opening a pull request, I've encountered the following: *Error: Could not parse for environment pro

Re: [Puppet Users] How puppet install another version of the same package.

2014-03-05 Thread Flamarion Jorge
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, I have same "problem" and my workaround, until discovery solution,has been to use a "exec" function and run yum command. This works for me. Flamarion Jorge Em 05/03/14 03:42, shlo.af...@gmail.com escreveu: > > > Hi I want to install same pa

Re: [Puppet Users] munin service wont' star

2014-03-05 Thread jcbollinger
On Tuesday, March 4, 2014 9:56:33 AM UTC-6, Jose Luis Ledesma wrote: > > > > > On Tue, Mar 4, 2014 at 3:36 PM, jcbollinger > > > wrote: > >> >> >> On Tuesday, March 4, 2014 1:30:44 AM UTC-6, Jose Luis Ledesma wrote: >>> >>> Although it is not incorrect, you should not bypass class boundaries, s

[Puppet Users] ignoring changes to a file

2014-03-05 Thread kaustubh chaudhari
Hi All, One of my application requires me to copy a config file after installation the application. This needs to be done only once after installation However this config file is managed by a central server and keeps on getting updated every day, which means puppet will overwrite the updated f

Re: [Puppet Users] Gem update fails in puppet daemon mode only

2014-03-05 Thread Christof Schöll
I get the following backtrace: puppet-agent[28934]: Could not get latest version: undefined method `[]' for nil:NilClass puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/provider/package/gem.rb:111:in `latest' puppet-agent[28934]: /usr/lib/ruby/vendor_ruby/puppet/type/package.rb:139:in `blo

Re: [Puppet Users] Re: puppet master stopped loading facts since puppetdb installation

2014-03-05 Thread Ryan Anderson
I'm not knocking on the gentleman with this issue, but I would like to helpfully recommend installing puppetdb via Puppet Labs' free puppetdb module. It takes care of such things for you, just my $.02. -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] Windows: Can't create/update file in user's home directory using template

2014-03-05 Thread Dirk Heinrichs
Am 05.03.2014 01:14, schrieb Rob Reynolds: > This appears to be PUP-1389[1]. We've fixed a found issue with Windows > 2012 and ruby and how they handle the double line terminator. Note > that the description is somewhat misleading, this can happen with any > file name. We've fixed the issue, you w