[Puppet Users] The getting of wisdom - Puppet Labs and Hiera

2011-10-27 Thread James Turnbull
Over the last couple years R.I. Pienaar has attacked the problems of storing and separating data and logic in Puppet and other tools. He started with the extlookup function (which was merged into Puppet in the 2.6.x release series) a simple file-based hierarchical data store. He then tackled the p

Re: [Puppet Users] Custom providers - instalation and usage of an executable

2011-10-27 Thread Stefan Schulte
On Thu, Oct 27, 2011 at 08:00:05AM -0700, David Campos wrote: > Hello all, > > I am facing a problem while dealing with a custom provider and its > requirements. I have included a custom provider (with its custom > types) into my puppet deployment that is expected to deal with all > tasks related

[Puppet Users] Having issues with ordering

2011-10-27 Thread Kabal458
Hey everyone, I'm trying to get my first puppet configuration set up and I was hoping to find some help with issues I've been having lately with ordering. Essentially I'm trying to get a postgres 9.0 server set up on a ubuntu 10.04 machine which will have multiple users and databases defined by ea

Re: [Puppet Users] Re: Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Ken Barber
Yeah - nice one Henrik. Al - You should be able to create something based on create_resources to do what you want. Its a similar concept. ken. On Thu, Oct 27, 2011 at 6:46 PM, Alessandro Franceschi wrote: > Thanks for the link. > I fear that this function doesn't exactly apply to my case (it cr

[Puppet Users] Re: Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Alessandro Franceschi
Thanks for the link. I fear that this function doesn't exactly apply to my case (it creates dynamically resources, not arguments for a resource) but I should give it a deeper look and consider if I can work around it. al -- You received this message because you are subscribed to the Google Gro

Re: [Puppet Users] Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Alessandro Franceschi
On Thursday, October 27, 2011 4:03:42 PM UTC+1, Henrik Lindberg wrote: > > Did you try something like: > > define boo($a="a", $b="b", $c="c") { > bar { $title: >a => $a, >b => $b, >c => $c, > } > } > > boo { 'the title' : a => "a value", c => "c value" } > Thanks

[Puppet Users] Custom providers - instalation and usage of an executable

2011-10-27 Thread David Campos
Hello all, I am facing a problem while dealing with a custom provider and its requirements. I have included a custom provider (with its custom types) into my puppet deployment that is expected to deal with all tasks related to glassfish. This provider is able to create domains, deploy applications

[Puppet Users] Re: Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Alexandre
There is a function to dynamically create Puppet resources from a hash: createresources(): http://docs.puppetlabs.com/references/stable/function.html#createresources On 27 oct, 17:03, Henrik Lindberg wrote: > Did you try something like: > > define boo($a="a", $b="b", $c="c") { >      bar { $tit

Re: [Puppet Users] Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Henrik Lindberg
Did you try something like: define boo($a="a", $b="b", $c="c") { bar { $title: a => $a, b => $b, c => $c, } } boo { 'the title' : a => "a value", c => "c value" } - henrik On 10/27/11 1:29 PM, Alessandro Franceschi wrote: Maybe I'm asking too much, but is there a way

[Puppet Users] Re: Duplicate exported resources

2011-10-27 Thread jcbollinger
On Oct 27, 2:23 am, Galed Friedmann wrote: > Hmm.. > I'm not setting up local Host resources any where in the manifests, my nodes > only collect the exported resources. > > Almost all of my nodes are exporting their Host resource, and I have several > hosts that collect the resource according to

Re: [Puppet Users] bug: recursive directory copy that re-copies nightly

2011-10-27 Thread Ken Barber
Yeah - I'm curious to see if/how you solved this as well :-). On Thu, Oct 27, 2011 at 12:19 PM, Felix Frank wrote: > On 10/27/2011 06:21 AM, Jo Rhett wrote: >> Thank you Doug, for the clue-by-four.  I overlooked that.  I owe you a beer. > > I don't get it. What's precisely causing this issue then

[Puppet Users] Dynamically create arguments for a define (or parametrized class)

2011-10-27 Thread Alessandro Franceschi
Maybe I'm asking too much, but is there a way to dynamically add resources in a define/parametrized class based on a variable (or hash) passed to a containing class/define? Something that when I call boo { "bah": options => { "optiona" => "valuea", "optionb" => "valueb",

Re: [Puppet Users] bug: recursive directory copy that re-copies nightly

2011-10-27 Thread Felix Frank
On 10/27/2011 06:21 AM, Jo Rhett wrote: > Thank you Doug, for the clue-by-four. I overlooked that. I owe you a beer. I don't get it. What's precisely causing this issue then? > On Oct 26, 2011, at 7:23 AM, Doug Warner wrote: >> On 10/26/2011 12:51 AM, Jo Rhett wrote: >>> It happens every night

Re: [Puppet Users] rpm packages for el4

2011-10-27 Thread Arnau Bria
On Thu, 27 Oct 2011 11:04:35 +0200 Arnau Bria wrote: > Mike, > > where is the tarball for 2.6.12-2 ? > > I can't find it at http://downloads.puppetlabs.com/puppet/ I found src.rpm for el5. http://yum.puppetlabs.com/el/5/products/SRPMS/ Cheers, Arnau -- You received this message because you a

Re: [Puppet Users] rpm packages for el4

2011-10-27 Thread Arnau Bria
Mike, where is the tarball for 2.6.12-2 ? I can't find it at http://downloads.puppetlabs.com/puppet/ Cheers, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscr

Re: [Puppet Users] [SOLVED] ERB: apache2 vhost template - iterating over array writing out mod_rewrite rules

2011-10-27 Thread Jan
Hi Nan, On 10/25/2011 07:57 PM Nan Liu wrote: [...] >> Because of the additional '[OR]' parameter at the end of the second line an >> endless loop is being created crashing all vhosts. Does anybody have an >> idea on how to deal with this? > > Try vhostaliases_regex.collect{ |val| "RewriteCond

Re: [Puppet Users] rpm packages for el4

2011-10-27 Thread Arnau Bria
On Wed, 26 Oct 2011 14:29:32 -0700 Michael Stahnke wrote: Hi Michael, > We've discussed it. The issue is that el4 ships with ruby 1.8.1. > Puppet doesn't work to well with 1.8.1 any more. If you rebuild or > pull in a newer ruby stack (even 1.8.5) then the el5 rpms probably > work. Ok. I'll l

Re: [Puppet Users] Re: Duplicate exported resources

2011-10-27 Thread Galed Friedmann
Hmm.. I'm not setting up local Host resources any where in the manifests, my nodes only collect the exported resources. Almost all of my nodes are exporting their Host resource, and I have several hosts that collect the resource according to their tag name: Host <<| tag == "production-pro