[Puppet Users] Announce: Puppet 3.0.0-rc4 Available

2012-08-24 Thread Matthaus Owens
Puppet 3.0.0-rc4 is a feature release candidate for the 3.x series of Puppet. Downloads are available at: * Source http://downloads.puppetlabs.com/puppet/puppet-3.0.0.rc4.tar.gz RPMs are available at http://yum.puppetlabs.com Debs are available at http://apt.puppetlabs.com Gems are available v

Re: [Puppet Users] puppetlabs apache module syntax errors

2012-08-24 Thread Ryan Coleman
Hi Shantanu, On Fri, Aug 24, 2012 at 1:52 PM, Shantanu wrote: > > I am getting following errors with the latest puppetlabs-apache > module. I am using Puppet 2.6.16 on CentOS 6.2 OSs and with required > dependency modules firewall (v0.0.4-80-g63fd433) and stdlib (3.0.0-27- > g4e25230) installed i

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-24 Thread Nick Fagerlund
Yeah that reply isn't coming back. Anyway, I was totally hoping you'd chime in with some holes you found. :) On Friday, August 24, 2012 6:33:01 AM UTC-7, Henrik Lindberg wrote: > > - How do I create strings that span multiple lines? (Since there is no > string concatenation operator 'x' + 'y' d

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-24 Thread Nick Fagerlund
Err, I think google groups may have eaten my response. But THANK YOU, and I'm adjusting the guide to patch all these holes as we speak. On Friday, August 24, 2012 6:33:01 AM UTC-7, Henrik Lindberg wrote: > > EXCELLENT GUIDE !!! > I which that had been available when I started on Geppetto :) >

[Puppet Users] puppetlabs apache module syntax errors

2012-08-24 Thread Shantanu
I am getting following errors with the latest puppetlabs-apache module. I am using Puppet 2.6.16 on CentOS 6.2 OSs and with required dependency modules firewall (v0.0.4-80-g63fd433) and stdlib (3.0.0-27- g4e25230) installed in the modulepath. I have included only following class to in a node temp

Re: [Puppet Users] package handling in puppet?

2012-08-24 Thread lamour
On Friday, August 24, 2012 4:38:54 PM UTC-4, lamour wrote: > > > On Wednesday, August 22, 2012 5:06:41 PM UTC-4, Ramin K wrote: >> >> >> > node 'some.node.my.domain.com inherits basenode { >>include mysql >>include general_devel >>realize Package['mysql-client'] >> } >> >> node

Re: [Puppet Users] package handling in puppet?

2012-08-24 Thread lamour
On Wednesday, August 22, 2012 5:06:41 PM UTC-4, Ramin K wrote: > > On 8/22/2012 9:55 AM, lamour wrote: > > > So, my basic issue with both the class method and the virtual resources > > method is that they basically require me to maintain a SECOND list of > > every package I want to maintain thi

Re: [Puppet Users] How to set default values for downloaded modules?

2012-08-24 Thread Sandra Schlichting
> > using something like 'myconfig::ntp' (or any different name, > 'ntp_local', etc.) would work fine. This would look like > > class myconfig::ntp { > class { 'ntp': > server_list => [ 'a.example.com', 'b.example.com' ] > } > } > > note testsrv { >

[Puppet Users] Package upgrade - how to organize ?

2012-08-24 Thread New user
Hello, we slowly are trying to get into Puppet world. So far we have basic configuration for a few hosts. In the next step I'd like to get automatic packages upgrade (CentOS/RH) on each Puppet-managed server but since there are first (the most important), second (little less important), third,

Re: [Puppet Users] How to set default values for downloaded modules?

2012-08-24 Thread Calvin Walton
On Fri, 2012-08-24 at 11:13 -0700, Sandra Schlichting wrote: > Hi Ryan, > > [snip] > > This is equivalent to writing include ntp but without just accepting > > the default behavior and data. > > > > Yes, the following works > > node testsrv { > class { 'ntp': > server_list => [ 'server1',

Re: [Puppet Users] How to set default values for downloaded modules?

2012-08-24 Thread Sandra Schlichting
Hi Ryan, [snip] This is equivalent to writing include ntp but without just accepting > the default behavior and data. > Yes, the following works node testsrv { class { 'ntp': server_list => [ 'server1', 'server2', 'etc' ], } } but I would really like to have this instead node testsrv

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Dan White
On 08/24/2012 12:55:17 PM, Ramin K wrote: > > On 8/24/2012 6:01 AM, Dan White wrote: > > The author of vim-puppet says in the README that they use something called > > "pathogen" to manage their vim modules. > > > > I found this: https://github.com/tpope/vim-pathogen > > If vim is your prim

Re: [Puppet Users] apparent unwanted conversion of arrays to strings with parameterized class

2012-08-24 Thread Nan Liu
On Fri, Aug 24, 2012 at 8:22 AM, tom s wrote: > I'm sure I'm doing something silly here, but I'm struggling to pass an array > variable to a parameterized class and have it stay as an array: > > # cat modules/testmodule/manifests/init.pp > class testmodule($array1) { > file {'/tmp/testmodule'

Re: [Puppet Users] How to set default values for downloaded modules?

2012-08-24 Thread Ryan Coleman
Hi Sanda, On Fri, Aug 24, 2012 at 8:32 AM, Sandra Schlichting wrote: > Is it possible to override the ntp class name, so I can create an ntp class > with contains my ntp server names? The author built his ntp module with parameterized classes [1] so that you could modify its behavior and data w

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Ramin K
On 8/24/2012 6:01 AM, Dan White wrote: The author of vim-puppet says in the README that they use something called "pathogen" to manage their vim modules. I found this: https://github.com/tpope/vim-pathogen If vim is your primary editing environment install vim-pathogen, takes two minutes, a

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Juan Sierra Pons
Hi I installed it from puppetlabs repositories (in debian): Package: vim-puppet Source: puppet Version: 2.7.19-1puppetlabs1 Architecture: all Maintainer: Puppet Labs Installed-Size: 332 Recommends: vim-addon-manager Conflicts: puppet (<< 2.7.19-1puppetlabs1) Section: admin Priority: optional Hom

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-24 Thread Aaron Grewell
On Thu, Aug 23, 2012 at 4:32 PM, Nick Fagerlund wrote: > > > On Thursday, August 23, 2012 12:47:16 PM UTC-7, Aaron Grewell wrote: >> >> In >> http://docs.puppetlabs.com/puppet/2.7/reference/lang_datatypes.html#hashes >> it would be helpful to have a hash example that contains multiple keys >> each

[Puppet Users] Re: Attending PuppetConf?

2012-08-24 Thread Sam Kottler
Sorry, this was supposed to go to the Foreman list. My apologies. -Sam On Fri, Aug 24, 2012 at 5:56 PM, Sam Kottler wrote: > Hi all, > > There has been talk of a Foreman meetup at PuppetConf. I think it's a > great idea for all of us to talk about what we're doing with Foreman and to > meet in p

[Puppet Users] Attending PuppetConf?

2012-08-24 Thread Sam Kottler
Hi all, There has been talk of a Foreman meetup at PuppetConf. I think it's a great idea for all of us to talk about what we're doing with Foreman and to meet in person. How many of you are going to PuppetConf and would like a meetup? Also, thoughts on a meetup vs. a BoF at the conference itself

[Puppet Users] How to set default values for downloaded modules?

2012-08-24 Thread Sandra Schlichting
Dear readers, I would like to use the saz-ntp module from https://github.com/saz/puppet-ntp When installed the class is called "ntp". Ideally would I like each node to look like node testsrv { include ntp } Problem I don't want to modify the downloaded module, but I would like to be able to

[Puppet Users] apparent unwanted conversion of arrays to strings with parameterized class

2012-08-24 Thread tom s
I'm sure I'm doing something silly here, but I'm struggling to pass an array variable to a parameterized class and have it stay as an array: # cat modules/testmodule/manifests/init.pp class testmodule($array1) { file {'/tmp/testmodule' : content => template('testmodule/testmodule.erb'

[Puppet Users] Re: Manually creating class resource in site.pp works, calling same class from ENC silently fails

2012-08-24 Thread Jon McKenzie
Hi, I found what my issue was. I knew it would likely be something silly (it almost always is.. ). Basically my ENC reads out of a set of YAML files to determine a node's configuration. The particular class wasn't working because its YAML config was 0640 and not 0644. My ENC script will silent

Re: [Puppet Users] Getting issues while separating CA and master servers

2012-08-24 Thread Ashish
Hi, What do you have in your master server puppet.conf, basically it should have these parameter in your master.conf ca=false ca_server=ca.server.name Regards, System Admin Ashish Jaiswal On Friday 24 August 2012 05:34:40 PM IST, liondgr8 wrote: I am trying to setup a different CA_server and

[Puppet Users] Re: Puppet Dashboard/DB Inventory (Detach?)

2012-08-24 Thread jonauman
Hi, FIrst, sorry for not sending a patch file. I did not save the original init.d scripts before I hacked it. I also had the same issues on debian. Here's what I did to resolve it: 1) add "-s INT" to the stop and stop portion of the restart functions. The default is to send a term signal, but y

Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-24 Thread Henrik Lindberg
EXCELLENT GUIDE !!! I which that had been available when I started on Geppetto :) Here are some things that I would like the documentation to clarify: - How do I create strings that span multiple lines? (Since there is no string concatenation operator 'x' + 'y' does not work). Can I write a str

[Puppet Users] Re: Manually creating class resource in site.pp works, calling same class from ENC silently fails

2012-08-24 Thread Jon McKenzie
I altered my ENC script to get rid of the {} on empty params, and instead follow what's prescribed in the documentation. Still no good. Also, if I run the puppet node command you gave me on the master, the classes appear correct. When I run 'puppet --test --noop' on the client, though, it still

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Henrik Lindberg
On 2012-24-08 13:58, Sandra Schlichting wrote: Yes, you may either use it as an Eclipse plugin or as a standalone program.. [snip] That sounds interesting. How do I do that? =) The standalone Geppetto is downloadable from https://github.com/cloudsmith/geppetto/downloads (linux, windo

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Dan White
The author of vim-puppet says in the README that they use something called "pathogen" to manage their vim modules. I found this: https://github.com/tpope/vim-pathogen Otherwise, it looks like one would have to pick apart the innards on vim-puppet to understand it enough to install it by other m

[Puppet Users] Topic Shift: Trying to print documentation (Was: Chart of the most common Ruby I should know for puppet 3?)

2012-08-24 Thread Dan White
It is great to see the documentation maintained and updated. However, I have a (personal) problem with the documentation and I am still looking for a workflow/workaround to use without resorting to submitting an Issue/Complaint/Bug. How might I make a PDF / printout of the documentation pages

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Sandra Schlichting
> > I first use vim-puppet (syntax highlighting for puppet manifests in > vim while creating my manifest) To create my manifests > Btw. How do you install that? I have tried mkdir .vim cd .vim git clone https://github.com/rodjek/vim-puppet.git cd echo "set runtimepath+=$HOME/.vim/vim-puppet"

Re: [Puppet Users] Chart of the most common Ruby I should know for puppet 3?

2012-08-24 Thread Sandra Schlichting
Hi James The Puppet language reference: > http://docs.puppetlabs.com/puppet/2.7/reference/ Just what I was looking for =) Thanks. Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https

[Puppet Users] Getting issues while separating CA and master servers

2012-08-24 Thread liondgr8
I am trying to setup a different CA_server and master server. I am following these links : http://bodepd.com/wordpress/?p=7 http://docs.puppetlabs.com/guides/scaling_multiple_masters.html Kindly help as am getting this error info: Retrieving plugin err: /File[/var/opt/lib/pe-puppet/lib]

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Sandra Schlichting
Dear Juan - puppet parser validate file.pp (Validate the syntax of one or more > Puppet manifests). > > - puppet-lint file.pp (Check that your Puppet manifest conform to the > style guide) this one must installed using gems package manager: gem > install puppet-lint > That's exactly what I w

Re: [Puppet Users] Chart of the most common Ruby I should know for puppet 3?

2012-08-24 Thread James Turnbull
Sandra Schlichting wrote: > Hi all, > > Being new to puppet 3 and to Ruby. > > Does there exist a chart of the Ruby I should know? The Puppet language reference: http://docs.puppetlabs.com/puppet/2.7/reference/ A Ruby primer: http://www.ruby-lang.org/en/documentation/quickstart/ Although learn

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Sandra Schlichting
> > Yes, you may either use it as an Eclipse plugin or as a standalone > program. > [snip] That sounds interesting. How do I do that? =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://grou

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Juan Sierra Pons
Hi I my 5 cents: I first use vim-puppet (syntax highlighting for puppet manifests in vim while creating my manifest) To create my manifests Then I use - puppet parser validate file.pp (Validate the syntax of one or more Puppet manifests). - puppet-lint file.pp (Check that your Puppet manifest c

RE: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Bernd Adamowicz
Hi Sandra, Yes, you may either use it as an Eclipse plugin or as a standalone program. There's no link to vi or Emacs at all. I think I know what you mean. My absolutely favorite editor is vim. Normally I don't need anything else but the command line and vim. However, when it's about creating s

Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Sandra Schlichting
Hi Bernd > Did you ever try Gepetto (https://github.com/cloudsmith/geppetto)? At > least in the coming version (3.0) will support Puppet 3. I really do > recommend Gepetto since I’ve been working with it for more than a year > now and it helped me a lot creating error free code. You should gi

Re: [Puppet Users] Re: Anyone using config_version successfully?

2012-08-24 Thread R.I.Pienaar
- Original Message - > From: "Glenn Poston" > To: puppet-users@googlegroups.com > Sent: Friday, August 24, 2012 2:01:59 AM > Subject: [Puppet Users] Re: Anyone using config_version successfully? > > I second this. I would prefer this config_version to update at > compile time with each

Re: [Puppet Users] hiera command line performance

2012-08-24 Thread R.I.Pienaar
- Original Message - > From: "Paul Colby" > To: puppet-users@googlegroups.com > Sent: Friday, August 24, 2012 11:03:51 AM > Subject: Re: [Puppet Users] hiera command line performance > > Thanks again R.I. Pienaar. awesome, glad you could sort it out :) pretty interesting that just req

[Puppet Users] Removing a sub array from a combined array

2012-08-24 Thread iamauser
Hello, I have an array $array_comb = unique(flatten([$arr_1, $arr_2, $arr_3, $arr_4])) $arr_1 = unique(flatten(['var1', 'var2', 'var3', 'var5', 'var6', $sub_arr_1])) I would like to remove $sub_arr_1 from $array_comb. I don't want to call delete() for every single element of $sub_arr_1 or $ar

Re: [Puppet Users] hiera command line performance

2012-08-24 Thread Paul Colby
Thanks again R.I. Pienaar. I just got time to get back to this, I've implemented a basic ruby script to export the hiera data as you've suggested - works extremely well!! :) Interestingly, the performance issue seems to be with puppet specifically, not hiera. Here's a slightly cut-down version

RE: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Bernd Adamowicz
Did you ever try Gepetto (https://github.com/cloudsmith/geppetto)? At least in the coming version (3.0) will support Puppet 3. I really do recommend Gepetto since I've been working with it for more than a year now and it helped me a lot creating error free code. You should give it a try. There a

[Puppet Users] Chart of the most common Ruby I should know for puppet 3?

2012-08-24 Thread Sandra Schlichting
Hi all, Being new to puppet 3 and to Ruby. Does there exist a chart of the Ruby I should know? Hugs, Sandra -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users

[Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Sandra Schlichting
Dear readers, How do I syntax debug the config files on the puppet master before I deploy them? My current problem is that server_list is to be an array, and I don't know if I should write class { 'ntp': server_list => $ntpServerList } or class { 'ntp': server_list = $ntpServerList } How

Re: [Puppet Users] Re: Anyone using config_version successfully?

2012-08-24 Thread Stephen Gran
Hi, On Thu, 2012-08-23 at 18:01 -0700, Glenn Poston wrote: > I second this. I would prefer this config_version to update at > compile time with each client request. > > On Monday, January 31, 2011 6:58:29 PM UTC-5, John Warburton wrote: > I have tried to use config_version and failed due