Re: [Puppet Users] Re: how can i determinate from one class if another class applied?

2010-10-18 Thread Felix Frank
On 10/15/2010 05:40 PM, Bruce Richardson wrote: > On Fri, Oct 15, 2010 at 07:06:52AM -0700, walexey wrote: >> i can't imaging something better than add >> >>if tagged(winbind) { >> $winbind = 'winbind' >> } else { >> $winbind = '' >> } >> in l

Re: [Puppet Users] Re: Autoloading and nested classes

2010-10-18 Thread Felix Frank
On 10/15/2010 10:39 AM, Bill Proud wrote: > Hi, > > If you nest classes like that then you probably do have to dump > everything in init.pp > > If however you split the classes and define each in a separate file > with the name .pp in the manifests directory of the module, you > will be able to "

[Puppet Users] Negate or uninclude a class

2010-10-18 Thread luke.bigum
Hi guys, Is there any functionality to negate or uninclude a class so as to stop it's resources being declared? I'm thinking along the lines of having some classes included by default, but in very select circumstances to not include it. For example, LDAP auth on all servers except the actual LDAP

Re: [Puppet Users] Negate or uninclude a class

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 02:19:38AM -0700, luke.bigum wrote: > Hi guys, > > Is there any functionality to negate or uninclude a class so as to > stop it's resources being declared? I'm thinking along the lines of > having some classes included by default, but in very select > circumstances to not i

[Puppet Users] best practice for removing a module & maintained resources from a system ?

2010-10-18 Thread Daniel Maher
Hello, I am curious to know what is the best practice for removing a module (and the resources it maintains) from a system ? Consider : node 'webserver' { include webservice ... } class 'webservice' { file { '/etc/httpd/conf.d/webservice.conf': ... } } At some point i no longer

[Puppet Users] Re: best practice for removing a module & maintained resources from a system ?

2010-10-18 Thread jcbollinger
On Oct 18, 5:19 am, Daniel Maher wrote: > I am curious to know what is the best practice for removing a module > (and the resources it maintains) from a system ? [...] > I have occasionally written sub-modules to do the work of cleaning the > resources away (ex. « webservice::no »), but this se

Re: [Puppet Users] Re: best practice for removing a class & maintained resources from a system ?

2010-10-18 Thread Daniel Maher
On 10/18/2010 03:13 PM, jcbollinger wrote: I'm guessing you mean you have written sub-*classes* to do that job. That is indeed the Puppet way to do it, and I don't find it at all ridiculous. Classes, yes - sorry, i should know better than to post before the first coffee of the day. :P Perh

Re: [Puppet Users] Re: best practice for removing a module & maintained resources from a system ?

2010-10-18 Thread David Schmitt
On 10/18/2010 3:13 PM, jcbollinger wrote: On Oct 18, 5:19 am, Daniel Maher wrote: I am curious to know what is the best practice for removing a module (and the resources it maintains) from a system ? [...] I have occasionally written sub-modules to do the work of cleaning the resources awa

[Puppet Users] Applying custom patch

2010-10-18 Thread stefan . schulte
Hi at all, what do you do if you have fixed a bug or have developed a new feature for puppet and want to use that customized puppet? Here's an example: We have a few HP-UX Servers and the mount provider dont work here. I used the fix (http://projects.puppetlabs.com/issues/4279) to patch p

[Puppet Users] Re: Negate or uninclude a class

2010-10-18 Thread jcbollinger
On Oct 18, 4:38 am, Bruce Richardson wrote: > No, you can't uninclude a class.   Right. > > Is the only way to do this to inherit the base class and override all > > it's resources to do the equivalent of "ensure => absent", then > > something like "if (tagged(class)) { include undo-subclass }

Re: [Puppet Users] Re: Negate or uninclude a class

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 07:20:10AM -0700, jcbollinger wrote: > > On Oct 18, 4:38 am, Bruce Richardson wrote: > > No, you can't uninclude a class.   > > Right. > > > > Is the only way to do this to inherit the base class and override all > > > it's resources to do the equivalent of "ensure => ab

Re: [Puppet Users] Applying custom patch

2010-10-18 Thread Jeff McCune
I recommend running puppet from a git clone using a wrapper script managing the RUBYLIB and PATH environment variables. you're then free to "git checkout" the branch with the patch you want. It's also easy to switch branches quickly in this case. In this case you should be aware you may need to cl

Re: [Puppet Users] Applying custom patch

2010-10-18 Thread Nigel Kersten
On Mon, Oct 18, 2010 at 7:12 AM, wrote: > Hi at all, > > what do you do if you have fixed a bug or have developed a new feature for > puppet and want to use that customized puppet? > > Here's an example: We have a few HP-UX Servers and the mount provider dont > work here. I used the fix (http://p

[Puppet Users] Puppet Application Server Deployment

2010-10-18 Thread ajax
Hello all, I wanted to know can i deploy Application Severs like JOnAS (java) using Puppet from the server. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from

[Puppet Users] unable to get puppet client to work

2010-10-18 Thread mar...@fearless.nl
Hi All, first off, i'm new to puppet. I've started playing with it for a few days now and it seems to be perfectly matching my needs. I've created two labs, one at home (working) and one in the office (not working). Now as you can gather, i would like some help on find the reason the the office-l

Re: [Puppet Users] Puppet Application Server Deployment

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 01:19:41AM -0700, ajax wrote: > Hello all, > > I wanted to know can i deploy Application Severs like JOnAS (java) > using Puppet from the server. Absolutely, you can. Puppet can deploy it as easily as any other applicaton. Where things become interesting is when you have

Re: [Puppet Users] stages examples/advices

2010-10-18 Thread Hunter Haugen
> 3.-) Stage order. > > but when applying new syntax: > > class orden { >        Stage['repos'] -> Stage['os'] -> Stage['main'] -> Stage['gLite'] -> > Stage['post'] > } In your working example you define the classes and then enforce ordering at the same time. The new syntax references the stages

Re: [Puppet Users] stages examples/advices

2010-10-18 Thread Arnau Bria
On Mon, 18 Oct 2010 09:14:09 -0700 Hunter Haugen wrote: Hi, [...] > In your working example you define the classes and then enforce > ordering at the same time. The new syntax references the stages but > doesn't actually define them, so you could do this: > class orden { > stage { [ 'repos', '

Re: [Puppet Users] Dashboard and passenger under /dashboard path

2010-10-18 Thread Jacob Helwig
On Fri, 15 Oct 2010 13:56:13 -0700, Radek wrote: > > I'm currently running a dashboard as a separate process and have a > proxy in apache with authentication to access as > http://puppet.ourhost.com/dashboard/ > > I have to start the dashboard with "-P /dashboard" option to make it > work. > >

Re: [Puppet Users] unable to get puppet client to work

2010-10-18 Thread Mohit Chawla
Hi, What's the client version ? On Mon, Oct 18, 2010 at 9:36 PM, mar...@fearless.nl wrote: > Hi All, > > first off, i'm new to puppet. I've started playing with it for a few > days now and it seems to be perfectly matching my needs. > > I've created two labs, one at home (working) and one in the

[Puppet Users] setting type defaults in some classes

2010-10-18 Thread Arnau Bria
Hi all, I'm wondering what puppet does if I define two diff type defaults (like file mode, owner) in two different classes. I'm trying to figure it out by running puppet and watching some file perms, but I see no changes. But I'm not sure that my desired behaivour is the one puppet follows. Is ea

[Puppet Users] Local puppet forge repository

2010-10-18 Thread Carl Caum
Is there a way to run your own puppet forge repository? We are interested versioning and distributing our modules the same way we do our custom RPMs. We want to use puppet-module-tool and configure it to point to our local repository. -- You received this message because you are subscribed to

Re: [Puppet Users] setting type defaults in some classes

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 10:58:56PM +0200, Arnau Bria wrote: > Hi all, > > I'm wondering what puppet does if I define two diff type defaults (like > file mode, owner) in two different classes. I'm trying to figure it out > by running puppet and watching some file perms, but I see no changes. If yo

Re: [Puppet Users] setting type defaults in some classes

2010-10-18 Thread Arnau Bria
On Mon, 18 Oct 2010 22:24:28 +0100 Bruce Richardson wrote: Hi Bruce, > > I'm wondering what puppet does if I define two diff type defaults > > (like file mode, owner) in two different classes. I'm trying to > > figure it out by running puppet and watching some file perms, but I > > see no changes

Re: [Puppet Users] setting type defaults in some classes

2010-10-18 Thread Bruce Richardson
On Mon, Oct 18, 2010 at 11:54:49PM +0200, Arnau Bria wrote: > My fear was that declaring File description in test1 could > change/overwrite general File description. In other words, > only one default possible. Resource defaults respect traditional puppet scope rules. Resource collections, on t