Re: [Puppet Users] What do YOU do to catch undefined variables

2013-05-13 Thread Pete Brown
On 11 May 2013 06:43, David Schmitt da...@dasz.at wrote: On 10.05.2013 17:08, Nikola Petrov wrote: +1 The vim plugin is the best you can find if you are already proficient in vim somewhat. I use it in conjuction with

Re: [Puppet Users] Re: Hiera lookups in templates

2013-05-13 Thread Jonathan Gazeley
Turns out that the problem was fixed by restarting puppetmaster. I hadn't appreciated that this is necessary when the hiera config changes - as you don't need to restart puppetmaster to pick up new manifests, for instance. Thanks for your help anyway! Jonathan On 10/05/13 16:47, Jon Ward

[Puppet Users] Re: RHEL patches broke my puppetd

2013-05-13 Thread jcbollinger
On Friday, May 10, 2013 3:17:00 PM UTC-5, dsdtas wrote: Earlier this week, I applied RHEL patches to a couple of dev server with puppet 0.25.5 and now I can no longer run puppetd commands without constantly getting the message: [root@dev2 ~]# puppetd --test --verbose --noop notice: Run

Re: [Puppet Users] Puppet agent hostname/domain change

2013-05-13 Thread Balasubramaniam Natarajan
On Wednesday, 18 April 2012 08:35:43 UTC-4, Ygor wrote: Been there, done that, got a link for you: http://infrastructure.fedoraproject.org/infra/docs/infra-hostrename.txt Basically, clean out the certificate info on the client/agent, clear the old info from the master, and then

[Puppet Users] Re: Weird puppet error

2013-05-13 Thread jcbollinger
On Friday, May 10, 2013 3:17:16 PM UTC-5, pup_userz0 wrote: [root@puptmaster:~/manifests]# [root@puptmaster:~/manifests]#cat 1.file.pp file {'testfile': path = '/tmp/testfile', ensure = present, mode = 0640, content = I'm a test file., }

Re: [Puppet Users] What do YOU do to catch undefined variables

2013-05-13 Thread Nikola Petrov
I/We currently have 32 modules - some of these are of course third party so they don't count. One of the modules is for our biggest project which consists of different components and their configuration based on different environment setups. That module currently contains 36 *.pp files. If you

Re: [Puppet Users] Running all apt source and update operations first, best practice.

2013-05-13 Thread jcbollinger
On Friday, May 10, 2013 1:13:32 PM UTC-5, James Kyle wrote: Wait, this is at the bottom of the modules/apt/manifests/source.pp: # Need anchor to provide containment for dependencies. anchor { apt::source::${name}: require = Class['apt::update'], } Could that do it? That's the

[Puppet Users] Monkey patching puppet agent to support dynamic srv_domain

2013-05-13 Thread Damian Zaremba
Hi, I'm currently currently looking at deploying puppet using multiple masters in a 'stateless' manner (dedicated ca_server, multiple masters with SRV based access, git based config deploys, no puppetdb - for now at least). The deployment essentially partitions into 3 regions - each with a

[Puppet Users] Rspec-puppet: what is differences between contain_class, include_class, create_class?

2013-05-13 Thread lazydelphibuilder
Hello, everyone! Does anyone can tell me about differences (or help to find any document or source code with the answer) between functions: * contain_class * include_class * create_class Which one is preferred in which cases? Thank you, in advance. -- You received this message because you

[Puppet Users] Muti-layer deployment process

2013-05-13 Thread Naim Salameh
I couldn't find the answer in previous posts (hope I didn't miss it). I have a muti-layer deployment process in which a given deployment depends on previous deployments. How can I know when the fist deployment is finished so I can carry on to the next one? How can I know what is the success

[Puppet Users] Re: `require': cannot load such file -- puppet/util/command_line (LoadError)

2013-05-13 Thread dvalverdenieto
I know this thread is kinda old, but i had the same issue and maybe someone still getting it, so i found a way to still working. As Gerard said, this comes when puppet is installed for ruby 1.8 and you are running 1.9. I tried to update-alternatives and set it to 1.8, but it still crashing,

Re: [Puppet Users] Running all apt source and update operations first, best practice.

2013-05-13 Thread jcbollinger
Do note, by the way, that the idea appears to be that the Apt module automatically handles for you what you are trying to do manually: that is, to ensure that apt-get update is automatically run, once, after all Apt sources are managed, so that your packages can safely express relationships

Re: [Puppet Users] deleting nodes in puppet-dashboard makes it hang

2013-05-13 Thread Pack, Scott
On 5/8/13 10:43 AM, Klavs Klavsen kl...@enableit.dk wrote: Hi, I have 51 clients in puppet-dashboard ­ and when I tell it to delete a node ­ it simply hangs forever. If I try to just open / on the puppet-dashboard website ­ I get a proxy timeout (I have apache in front). I end up having to

[Puppet Users] Creating defined resources based on array of parameters.

2013-05-13 Thread Eugene Brodsky
Hi all, With the goal of making my code a little more DRY, I am trying to define resource parameters in an array of hashes, and then create defined resources from these array items. I am having trouble figuring out the syntax for accessing the hash values for the hash currently being worked on

[Puppet Users] Puppet reading/compiling production when using other environments

2013-05-13 Thread LTH
We have several servers using various environments. However we have noticed when a server requests any of the non-production environments, that the production environment's last access time still changes along with the specific environment's last accessed time. In our particular case we were

[Puppet Users] Announce: Facter 1.7.1 Available

2013-05-13 Thread Matthaus Owens
Facter 1.7.1 is a bugfix release in the 1.7 series. It contains a single fix for an issue seen on Windows 2003 with Ruby 1.9.3 (#20301). To see a list of the issues addressed by this release, check out the 1.7.1 version in our issue tracker at: https://projects.puppetlabs.com/versions/400

[Puppet Users] MCollective deployment pattern

2013-05-13 Thread Tom Poulton
Hi all I have a scenario in mind for MCollective and I was looking for some feedback The basic idea is this: 1) A code push to Git triggers a Jenkins build 2) A successful build triggers automatic deployment to an automated functional test environment 3) Functional tests run automatically and

[Puppet Users] Re: Creating defined resources based on array of parameters.

2013-05-13 Thread jcbollinger
On Monday, May 13, 2013 11:26:21 AM UTC-5, Eugene Brodsky wrote: Hi all, With the goal of making my code a little more DRY, I am trying to define resource parameters in an array of hashes, and then create defined resources from these array items. I am having trouble figuring out the

Re: [Puppet Users] Puppet agent hostname/domain change

2013-05-13 Thread jcbollinger
On Monday, May 13, 2013 8:28:05 AM UTC-5, Balasubramaniam Natarajan wrote: On Wednesday, 18 April 2012 08:35:43 UTC-4, Ygor wrote: Been there, done that, got a link for you: http://infrastructure.fedoraproject.org/infra/docs/infra-hostrename.txt Basically, clean out the certificate

Re: [Puppet Users] MCollective deployment pattern

2013-05-13 Thread R.I.Pienaar
- Original Message - From: Tom Poulton poulton...@gmail.com To: puppet-users@googlegroups.com Sent: Monday, May 13, 2013 3:38:34 PM Subject: [Puppet Users] MCollective deployment pattern Hi all I have a scenario in mind for MCollective and I was looking for some feedback

Re: [Puppet Users] MCollective deployment pattern

2013-05-13 Thread Tom Poulton
Thanks for the quick reply The -W environment=foo tip is very useful and definitely solves one problem. I appreciate that the synchronous part could get pretty nasty, rather you than me :) In the meantime have you got any tips on the best (most reliable) way to check up on triggered runs, you

Re: [Puppet Users] MCollective deployment pattern

2013-05-13 Thread R.I.Pienaar
- Original Message - From: Tom Poulton poulton...@gmail.com To: puppet-users@googlegroups.com Sent: Monday, May 13, 2013 4:06:56 PM Subject: Re: [Puppet Users] MCollective deployment pattern Thanks for the quick reply The -W environment=foo tip is very useful and definitely

[Puppet Users] example42 puppet-squid

2013-05-13 Thread Jim Miller
I am using example42s squid module https://github.com/example42/puppet-modules/tree/master/squid, and trying to define certain user variable at the puppet/manifest/nodes.pp level This is the first module of their's I've tried, I've read over their documentation and FAQ and for the life of

[Puppet Users] puppetlabs / bacula

2013-05-13 Thread fiesch
I tried to work out how to use the puppetlabs bacula module .. but i guess I'm too much of a newbie in puppet to wrap my head around that.. can sb give ma a simple node example for 1 dir and 1 node (bacula-speaking)? Thanks in advance -- You received this message because you are subscribed

[Puppet Users] puppet does not see changes in /etc/puppet/puppet.conf

2013-05-13 Thread Freddy Andersen
I did a fresh install on Ubuntu 12.04 with apt packages from puppet labs. I have agents talking to my puppetmaster. Puppetmaster is running apache/passenger connected to puppetdb and puppet-dashboard is setup to use puppetdb but it is not able to see any reports submitted to puppetdb. When an

Re: [Puppet Users] example42 puppet-squid

2013-05-13 Thread Ashley Penney
On Mon, May 13, 2013 at 5:21 PM, Jim Miller stl...@gmail.com wrote: I am using example42s squid module https://github.com/example42/puppet-modules/tree/master/squid, and trying to define certain user variable at the puppet/manifest/nodes.pp level This is the first module of their's I've

[Puppet Users] Re: puppet does not see changes in /etc/puppet/puppet.conf

2013-05-13 Thread Freddy Andersen
If I move: storeconfigs = true storeconfigs_backend = puppetdb reports = store,puppetdb reporturl = http://dashboard/reports/upload under [main] I can now see these changes using puppet config print BUT dashboard still does not pull any inventory information or reports from puppetdb

Re: [Puppet Users] Puppet agent hostname/domain change

2013-05-13 Thread Dan White
A moldy oldie, but it was helpful to someone ! On May 13, 2013, at 4:46 PM, jcbollinger wrote: On Monday, May 13, 2013 8:28:05 AM UTC-5, Balasubramaniam Natarajan wrote: On Wednesday, 18 April 2012 08:35:43 UTC-4, Ygor wrote: Been there, done that, got a link for you:

[Puppet Users] Is it possible to compile puppet script to pure Ruby or other languages.

2013-05-13 Thread hmf888888
Now, I'm using puppet managing system configurations, there are many environment: production, staging, QA, DEV. The puppet server is only accessible to production servers, but I also want to environments other than production to use puppet, So my question is: is it possible to compile puppet