[Puppet Users] define function problem

2012-04-06 Thread sam
Hi All, Hope you people are doing good. I have a manifest file : lass profile { # setup profile parms. We dont handle non Ubuntu OS yet if ($operatingsystem == Ubuntu) { file { /etc/profile.d: ensure = directory, purge = true,

[Puppet Users] Re: Getting started

2012-04-06 Thread jcbollinger
On Apr 5, 4:14 pm, Jo Rhett jrh...@netconsonance.com wrote: [...] But you should probably be using the docs onwww.puppetlabs.comrather than the PDF, I suspect they are kept more up to date. There's a PDF? :) John -- You received this message because you are subscribed to the Google

Re: [Puppet Users] Re: Getting started

2012-04-06 Thread Dan White
http://info.puppetlabs.com/download-pdfs.html “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) - jcbollinger john.bollin...@stjude.org wrote: On Apr 5, 4:14 pm, Jo Rhett

Re: [Puppet Users] Getting started

2012-04-06 Thread Andreas Haerter
Hi, On 05.04.2012 22:42, Brown, Rodrick wrote: I really hate poor documentation. I’m following along in PDF documentation I downloaded from the official site and I’m stuck after I installed rack passenger modules from rubygems. There is a PDF?! OK... However, Maybe helpful:

[Puppet Users] Re: define function problem

2012-04-06 Thread jcbollinger
On Apr 6, 1:07 am, sam er.sureshprajap...@gmail.com wrote: Hi All, Hope you people are doing good. I have a manifest file : lass profile { That's supposed to be class of course. I guess it's a cut paste error. Anyway, this class (and all of your others) really ought to be in a

[Puppet Users] freebsd provider keeps reinstalling packages?

2012-04-06 Thread Christopher Wood
Question: how do I get puppet 2.7.6 on FreeBSD 9.0-RELEASE to stop downloading packages with every puppet run? Obviously I'd be puppetizing the config files so this wouldn't be a huge big deal, but a daemon restart after every puppet run due to notify/subscribe involving the config file isn't

[Puppet Users] Re: Somehow puppet is not able to start ossec service

2012-04-06 Thread jcbollinger
On Apr 5, 6:43 am, ankush grover ankushcen...@gmail.com wrote: Hi Friends, I have configured Puppet 2.7.12-1 on Centos 6 as server and various clients running on Redhat/Centos/Ubuntu etc.. The  issue I am facing is that somehow Puppet is not able to start the ossec service on the client.

[Puppet Users] Re: hiera_array() default value not taken

2012-04-06 Thread Jason Koppe
I have this problem too. Do defaults work for anyone? On Apr 2, 7:03 am, Pablo Fernandez pablo.fernan...@cscs.ch wrote: Hi, There is probably something stupid I am missing, but I just can't see it. I do: $iptables_open_ports_public = hiera_array ('iptables_open_ports_public', []) And I

[Puppet Users] Re: hiera_array() default value not taken

2012-04-06 Thread Jason Koppe
I'm using the YAML backend. Not sure if that's going to matter. On Apr 6, 11:07 am, Jason Koppe jason.robert.ko...@gmail.com wrote: I have this problem too.  Do defaults work for anyone? On Apr 2, 7:03 am, Pablo Fernandez pablo.fernan...@cscs.ch wrote: Hi, There is probably

[Puppet Users] Re: hiera_array() default value not taken

2012-04-06 Thread Hunter Haugen
Looks like a default of [] triggers https://github.com/puppetlabs/hiera-puppet/blob/master/lib/puppet/parser/functions/hiera_array.rb#L32 to think that the `.lookup` function did not get an answer. Hiera and Hiera-puppet have to distinguish between empty/false/nil answers sent by the backend

[Puppet Users] Re: hiera_array() default value not taken

2012-04-06 Thread psychobyte
I don't think hiera likes defaults as array/hashes explicitly I usually do a $empty_hsh = {} $empty_arr = [] and use those as default values. HTH On Monday, April 2, 2012 5:03:37 AM UTC-7, pablo.f...@cscs.ch wrote: Hi, There is probably something stupid I am missing, but I just can't

[Puppet Users] configuration version variable?

2012-04-06 Thread psychobyte
Hi, is there a fact or variable for the configuration version that I can access from hiera or my manifests? I'd like to embed it into my files. Thanks, -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit

Re: [Puppet Users] configuration version variable?

2012-04-06 Thread Patrick Debois
I've implemented that - See pull request - https://github.com/puppetlabs/hiera-puppet/pull/20 See https://github.com/jedi4ever/hiera-puppet/commit/2250a9825ea3382bb0518d77c4f5a8b97667f4a0 for details On 06/04/12 18:54, psychobyte wrote: Hi, is there a fact or variable for the

Re: [Puppet Users] configuration version variable?

2012-04-06 Thread psychobyte
Thanks for the reply Patrick but, I should have been more specific. I wanted the puppet configuration version as in info: Applying configuration version '1333729957' So any file that gets manipulated by puppet has it in a header. Thanks. On Friday, April 6, 2012 9:58:20 AM UTC-7, Patrick

[Puppet Users] selinux symlink patch

2012-04-06 Thread Chris Price
Hey folks, I am reviewing the following pull request, which has to do with how puppet deals with symlinks in selinux: https://github.com/puppetlabs/puppet/pull/563 Just wondering if there is anyone out there who considers themselves strong with selinux who has an opinion on this one way or the

[Puppet Users] Re: selinux symlink patch

2012-04-06 Thread Chris Price
Update: a little more digging reveals that the original selinux symlink code came as a result of this ticket: http://projects.puppetlabs.com/issues/2791 Still interested in feedback if anyone has any. On Fri, Apr 6, 2012 at 12:58 PM, Chris Price ch...@puppetlabs.com wrote: Hey folks, I am

[Puppet Users] Hiera mysql backend problem

2012-04-06 Thread Alex D
Hi, anyone managed to get a working setup based on hiera with mysql backend? Here is the link to howto I followed: http://www.craigdunn.org/2012/03/introducing-hiera-mysql-mysql-backend-for-hiera/ I've tried it but got problems – %{key} seems to be empty in SQL query when puppet does hiera

[Puppet Users] Puppet master not logging to file

2012-04-06 Thread Brian Pitts
Hi, I'm running puppet 2.7.12 on CentOS 5.8. I'm having trouble getting the puppet master to log to a file. The same configuration is working fine for the puppet agent. A single line is written to the master's log file when it starts. When logging to syslog or the console, I get lots of