Re: [Puppet Users] can not use $caller_module_name

2011-02-12 Thread flex
by the way, the $module_name is set correctly, but seems it can not be pass to a define like this: redarrow::add {test_portage: module => $module_name} 2011/2/13 flex > my puppet version is 2.6.2 > > 2011/2/13 Nan Liu > > On Sat, Feb 12, 2011 at 9:06 AM, flex wrote: >> > This is my puppet sc

Re: [Puppet Users] Making dependencies work with variable resource names

2011-02-12 Thread Ashley Gould
On Fri, Feb 11, 2011 at 12:42:58PM -0500, Matthew Pounsett wrote: > I'm having an issue solving dependencies inside defines, where the paths to > various resources are variable. It seems like puppet isn't expanding all of > the variables when it constructs the catalog, so it's unable to find the

Re: [Puppet Users] Active Directory join, stages, and AD accounts issues

2011-02-12 Thread Daniel Pittman
On Fri, Feb 11, 2011 at 12:01, Nigel Kersten wrote: > On Fri, Feb 11, 2011 at 11:52 AM, Monkeys Typing > wrote: […] >> I have an exec in my samba module to join the new servers to the >> domain, a simple "net ads join -U adminaccount". >> >> I see during --test runs, that the joindomain exec is

Re: [Puppet Users] can not use $caller_module_name

2011-02-12 Thread flex
my puppet version is 2.6.2 2011/2/13 Nan Liu > On Sat, Feb 12, 2011 at 9:06 AM, flex wrote: > > This is my puppet script: > > modules/redarrow/manifests/add.pp: > > define redarrow::add($type = "file") { > > file { "/etc/redarrow.conf/$name.conf": > > owner => "root", > > gr

Re: [Puppet Users] convert yum repos into manifest

2011-02-12 Thread Ashley Gould
works like a charm. thanks so much. On Fri, Feb 11, 2011 at 08:20:09AM +1100, Michael Knox wrote: > Hi Ashley, > Not a problem I've added a release to Puppet Forge ... > http://forge.puppetlabs.com/mikeknox/zypprepo > > It's derived from the yumrepo type in Puppet core (0.25.5). > It hasn't been

Re: [Puppet Users] can not use $caller_module_name

2011-02-12 Thread Nan Liu
On Sat, Feb 12, 2011 at 9:06 AM, flex wrote: > This is my puppet script: > modules/redarrow/manifests/add.pp: > define redarrow::add($type = "file") { >     file { "/etc/redarrow.conf/$name.conf": >         owner => "root", >         group => "root", >         mode => 644, >         source => $typ

[Puppet Users] Re: [Puppet-dev] Collections and Realizing Resources

2011-02-12 Thread Dan Bode
On Sat, Feb 12, 2011 at 2:00 PM, Nigel Kersten wrote: > Querying is awesome, particularly with the new relationship syntax, and as > a more comprehensible alternative to class inheritance. > > Package <| |> > > The part I find frustrating is that it also *realizes* all the virtual > resources tha

Re: [Puppet Users] Parameterized class syntax...

2011-02-12 Thread Dan Bode
On Sat, Feb 12, 2011 at 3:13 PM, Peter Berghold wrote: > Am I correct in making the observation that this: > > class openldap::config ($prefix ="dc=no,dc=domain",$rootpw="secret") { > case $operatingsytem { >Debian,Ubuntu: { class { openldap::config::debian : >

Re: [Puppet Users] Re: Fwd: [Puppet-dev] ANNOUNCE: Puppet 2.6.5 - Release Candidate 1 available!

2011-02-12 Thread James Turnbull
jcbollinger wrote: >> License is now GPLv2 >> Previous versions of Puppet were licensed as GPL version 2 or greater; the >> license is now specified as GPL version 2. > > The license change is not a serious problem for me, but I'm curious: > what is the reason for this change? Does PuppetLabs see

Re: [Puppet Users] Debian packaging provider

2011-02-12 Thread Daniel Pittman
On Sat, Feb 12, 2011 at 14:32, Peter Berghold wrote: > On Sat, Feb 12, 2011 at 5:00 PM, Stu Teasdale wrote: >> >> You need to install the gpg key used to sign the archive. The way I >> usually solve this is to manage my repositories in puppet, keep the >> public key in my manifests and get puppet

[Puppet Users] Parameterized class syntax...

2011-02-12 Thread Peter Berghold
Am I correct in making the observation that this: class openldap::config ($prefix ="dc=no,dc=domain",$rootpw="secret") { case $operatingsytem { Debian,Ubuntu: { class { openldap::config::debian : prefix => $prefix, rootpw =>

Re: [Puppet Users] Debian packaging provider

2011-02-12 Thread Peter Berghold
On Sat, Feb 12, 2011 at 5:00 PM, Stu Teasdale wrote: > > You need to install the gpg key used to sign the archive. The way I > usually solve this is to manage my repositories in puppet, keep the > public key in my manifests and get puppet to use apt-key to add it to > the apt keyring. > > > That

[Puppet Users] Re: Problem with file serving and envrionments.

2011-02-12 Thread trey85stang
One suggestion, if you two are still reading. First im not a developer, just a sys admin so if this suggestion is dumb just ignore but: Why not just add an override in the client config. env_defined_remote = true (or whatever), will tell the puppet client to grab the environment from the ser

Re: [Puppet Users] Debian packaging provider

2011-02-12 Thread Stu Teasdale
On Sat, Feb 12, 2011 at 04:32:21PM -0500, Peter Berghold wrote: > Hi folks, > > One thing I noticed about puppet and its interaction with Debian I'm sure > others have run into and figured away around is if a package is being loaded > that may not be trusted puppet's attempt to install it aborts.

[Puppet Users] Collections and Realizing Resources

2011-02-12 Thread Nigel Kersten
Querying is awesome, particularly with the new relationship syntax, and as a more comprehensible alternative to class inheritance. Package <| |> The part I find frustrating is that it also *realizes* all the virtual resources that match the query. It would be immensely useful in my opinion if yo

[Puppet Users] Debian packaging provider

2011-02-12 Thread Peter Berghold
Hi folks, One thing I noticed about puppet and its interaction with Debian I'm sure others have run into and figured away around is if a package is being loaded that may not be trusted puppet's attempt to install it aborts. A for instance: In order to load Sogo on my boxes I have to first modify

Re: [Puppet Users] Puppet T-shirt contest

2011-02-12 Thread James Turnbull
Brice Figureau wrote: > Hi Jose, > > On 11/02/11 22:33, Jose Palafox wrote: >> Our Puppet t-shirts are due for a >> redesign: http://www.puppetlabs.com/blog/tshirt-contest/ >> >> Be sure you submit cool tagline for our new shirts and enter for a >> chance to win an Ar.drone >> (http://store.apple.

[Puppet Users] can not use $caller_module_name

2011-02-12 Thread flex
This is my puppet script: modules/redarrow/manifests/add.pp: define redarrow::add($type = "file") { file { "/etc/redarrow.conf/$name.conf": owner => "root", group => "root", mode => 644, source => $type ? { "file" => "puppet:///modules/$caller_modul

Re: [Puppet Users] Defines, Realization and Variables

2011-02-12 Thread Martin Alfke
On 11.02.2011, at 15:42, li...@truthisfreedom.org.uk wrote: > Hi all, > > I'm running puppet 0.25.5 and I'm running into an issue with virtual defines > for setting up my NGinx Vhosts. > > The define is as follows: > > class nginx{ > > ... > > > # Setup a resource to create the configurati

Re: [Puppet Users] Puppet T-shirt contest

2011-02-12 Thread Brice Figureau
Hi Jose, On 11/02/11 22:33, Jose Palafox wrote: > Our Puppet t-shirts are due for a > redesign: http://www.puppetlabs.com/blog/tshirt-contest/ > > Be sure you submit cool tagline for our new shirts and enter for a > chance to win an Ar.drone > (http://store.apple.com/us/product/H1991ZM/A?fnode=MT