Re: [Puppet Users] bringing puppet into production

2010-06-21 Thread christopher floess
2. I never really saw where in the documentation puppet.conf file is addressed. I’ve seen that it’s pretty well documented, but again, did I miss something, especially considering that I have gone through the online manifest-writing/language documentation for the past week, and through all

Re: [Puppet Users] bringing puppet into production

2010-06-21 Thread Dan Bode
Hi Chris, On Sun, Jun 20, 2010 at 11:26 PM, christopher floess skepti...@gmail.comwrote: 2. I never really saw where in the documentation puppet.conf file is addressed. I’ve seen that it’s pretty well documented, but again, did I miss something, especially considering that I have gone

Re: [Puppet Users] bringing puppet into production

2010-06-21 Thread Patrick Mohr
On Jun 21, 2010, at 12:04 AM, christopher floess wrote: On 06/20/2010 08:47 PM, Patrick Mohr wrote: You've got some problems that are caused because the packages didn't do things you need done, and other problems that are unrelated. On the clients, puppetd will automatically look for

[Puppet Users] Re: Unable to use custom type loaded from module

2010-06-21 Thread Rudy Gevaert
On Jun 15, 9:41 pm, Ben Beuchler ins...@gmail.com wrote: I had two problems.  Nigel and Daniel correctly identified one of them and Jonathan contacted me off-list to point out that I can't have my custom type living in a subdir of lib/puppet/type.  I moved haddock.rb from

Re: [Puppet Users] bringing puppet into production

2010-06-21 Thread Silviu Paragina
On 21.06.2010 09:26, christopher floess wrote: 2. I never really saw where in the documentation puppet.conf file is addressed. I’ve seen that it’s pretty well documented, but again, did I miss something, especially considering that I have gone through the online manifest-writing/language

Re: [Puppet Users] Re: How to pass a array to define?

2010-06-21 Thread Matt Keating
Not to hijack your thread, but I'm having a similar issue with trying to pass an array to a define: class solr { $configFileList = [admin-extra.html, elevate.xml] define configFiles ( $solrIndex, $fileName ) { file { /var/solr/$solrIndex/conf/$fileName :

Re: [Puppet Users] header for puppet managed files

2010-06-21 Thread Joe McDonagh
On 06/20/2010 03:37 PM, Psyber wrote: Anyone have any ideas on adding a default header to puppet managed files and templates? This might be tricky because of the different methods of adding comments for different types of files but I'm certainly open to suggestions that would enforce the

Re: [Puppet Users] Re: How to pass a array to define?

2010-06-21 Thread David Schmitt
On 6/21/2010 3:51 PM, Matt Keating wrote: Not to hijack your thread, but I'm having a similar issue with trying to pass an array to a define: class solr { $configFileList = [admin-extra.html, elevate.xml] define configFiles ( $solrIndex, $fileName ) { file {

Re: [Puppet Users] Re: How to pass a array to define?

2010-06-21 Thread Joe McDonagh
On 06/21/2010 09:51 AM, Matt Keating wrote: Not to hijack your thread, but I'm having a similar issue with trying to pass an array to a define: class solr { $configFileList = [admin-extra.html, elevate.xml] define configFiles ( $solrIndex, $fileName ) { file {

Re: [Puppet Users] header for puppet managed files

2010-06-21 Thread Disconnect
That is what we do (and we enforce it by convention rather than technically.) # MANAGED BY PUPPET! # /modules/foo/templates/bar.conf # ..any associated warnings, weirdness (eg template called from other module) etc On files that other groups might be touching, we add something like: # Changes

Re: [Puppet Users] header for puppet managed files

2010-06-21 Thread Christopher Johnston
Similar setup as well: # pwd /etc/puppet/templates # cat header.erb ## # # # This file is centrally managed, any manual changes will be OVERWRITTEN

[Puppet Users] erb templating support for case statements?

2010-06-21 Thread CraftyTech
Hello All, Can you guys point out to me, how do I do a case statement within a template? i.g: my.cnf max_allowed_packet=% case ($memorysize=4) = 8M, case ($memorysize=8) = 16M)? I've tried different combinations, but so far no luck. The syntax checker coughs up hair balls Thanks,

[Puppet Users] CA expirations

2010-06-21 Thread Pablo Iranzo Gómez
Hi I've installed puppet and made autosigning work like a charm (EPEL version 0.25-5 for EL4 and EL5) What I would like to do know is to setup the environment in order to achieve: As server can be reinstalled and a new CA created, clients should either expire, or accept any cert while using

[Puppet Users] Re: Problem with dashboard using live report aggregation

2010-06-21 Thread christian
Well I tested now to put puppet_dashboard.rb in /etc/puppet/modules/ custom/lib/puppet/reports as well as in /etc/puppet/modules/custom/lib/ puppet/provider/reports (it seems to me as if the correct structure here is pretty important) but still there is no auto-aggregation after any puppetrun nor

[Puppet Users] Augeas and double quotes

2010-06-21 Thread Guus Houtzager
Hi, I've got a bit of an issue with Augeas in Puppet. I'm trying to modify /etc/sysconfig/i18n (RHEL4 system). Original file: LANG=en_US.UTF-8 SUPPORTED=en_US.UTF-8:en_US:en SYSFONT=latarcyrheb-sun16 This is the code to change it: $filename = $operatingsystem ? { redhat =

[Puppet Users] Re: Problem with dashboard using live report aggregation

2010-06-21 Thread christian
After I put puppet_dashboard.rb into site_ruby/1.8/puppet/reports as Don told now the aggregations seems to work just fine. But I guess it's supposed to work if you put that file in the correct directory in your puppet-homedir...so there still seems to be some unresolved problems. Btw, where does

Re: [Puppet Users] Storeconfigs connection pool problem

2010-06-21 Thread Christopher Johnston
Any findings? From what I can tell it defaults to sqlite leaving me with an issue of my hosts bombing out when more then 6 runs are happening. I would prefer to have it use mysql for a cache then let the queuing daemon fwd its data to a central mysql server. On Thu, Jun 10, 2010 at 1:39 PM,

[Puppet Users] Re: erb templating support for case statements?

2010-06-21 Thread CraftyTech
I'm trying this line on my my.cnf.erb file: % case memorysize when /=4/ % max_allowed_packet=8M % case memorysize when /4=8/ % max_allowed_packet=16M %end% I got the syntax from a different post. still not working thought. On Jun 21, 11:07 am, CraftyTech hmmed...@gmail.com wrote: Hello

Re: [Puppet Users] erb templating support for case statements?

2010-06-21 Thread Joe McDonagh
On 06/21/2010 11:07 AM, CraftyTech wrote: Hello All, Can you guys point out to me, how do I do a case statement within a template? i.g: my.cnf max_allowed_packet=% case ($memorysize=4) = 8M, case ($memorysize=8) = 16M)? I've tried different combinations, but so far no luck. The syntax

Re: [Puppet Users] erb templating support for case statements?

2010-06-21 Thread Benoit Cattié
CraftyTech a écrit, le 21/06/2010 17:07: Hello All, Hey, Can you guys point out to me, how do I do a case statement within a template? i.g: my.cnf max_allowed_packet=% case ($memorysize=4) = 8M, case ($memorysize=8) = 16M)? I think case dont support order comparaison. You can

Re: [Puppet Users] Re: Management of MySQL grant tables?

2010-06-21 Thread David Schmitt
On 5/19/2010 5:44 PM, Ken wrote: I found a github reference to a package that might do it (http://github.com/camptocamp/puppet-mysql) but I can't understand what it is, how it works, or even what to do with it. Hmm. How familiar are you with puppet modules? Not quite clear how detailed we need

Re: [Puppet Users] Re: Problem with dashboard using live report aggregation

2010-06-21 Thread Don Jackson
On Jun 21, 2010, at 1:02 AM, christian wrote: Btw, how is the time created that the dashboard for the reports shows? All our servers run on CEST but the dashboard seems to use the WAT timezone (CEST -2 hours). The timestamps that appear in the report files are all correct. Yes, I have this

[Puppet Users] Re: erb templating support for case statements?

2010-06-21 Thread CraftyTech
Thanks for the response. Right now I have it: max_allowed_packet=% if $memorysize.to_i = 4 %8M% elseif memorysize.to_i = 4.1..8 %16M% elseif memorysize.to_i = 8.1..16 %32M% elseif memorysize.to_i 16 %32M%end % but for some reason ignores everything, and it just show max_allowed_packet= with no

Re: [Puppet Users] Augeas and double quotes

2010-06-21 Thread Patrick Mohr
On Jun 21, 2010, at 7:05 AM, Guus Houtzager wrote: Hi, I've got a bit of an issue with Augeas in Puppet. I'm trying to modify /etc/sysconfig/i18n (RHEL4 system). Original file: LANG=en_US.UTF-8 SUPPORTED=en_US.UTF-8:en_US:en SYSFONT=latarcyrheb-sun16 This is the code to change it:

Re: [Puppet Users] Re: Problem with dashboard using live report aggregation

2010-06-21 Thread Rein Henrichs
Hi folks, Thanks for the dashboard questions. I'm glad people are using dashboard and reporting these issues. The dashboard installation instructions currently say to add the puppet_dashboard.rb's directory to your Puppet libdir. This fails due to http://projects.puppetlabs.com/issues/3094. This

[Puppet Users] Refreshing puppetd from within puppetd

2010-06-21 Thread Patrick Mohr
I push out changes to puppet.conf using puppet. (I have gsh as a backup for if I really screw things up, but I've never had to use it yet.) Is there any safe and/or good way to restart puppet after a change is made o it's config? I'm assuming that just defining puppet as a service and