Re: [Puppet Users] Re: is there a definition of the abstract service type

2011-04-21 Thread Felix Frank
>> Also note that under the puppet paradigm, a "service" is not something >> reachable via network (as in "services provided through xinetd"), but >> can be any process that is maintained by use of an init-script. >> >> Regards, >> Felix > > Hi Felix > Any service must surely have an access point

Re: [Puppet Users] Re: Installing port on FreeBSD

2011-04-21 Thread Felix Frank
>> What semantics are you gunning for? "Only install X on boxes where Y is >> getting installed" is a tough call. >> You could use custom facts to find out about your Y. >> Otherwise, the require is a nice choice, because your catalog should >> fail where Y is not in the catalog. > > I'll give req

Re: [Puppet Users] Re: What to do if something is not required on the clients?

2011-04-21 Thread Felix Frank
> However, I also tried this (I posted this before in this thread abut > can't see that anymore): > > package { > 'httpd': notify => Exec[ 'remove-httpd' ]; > } > > exec { 'remove-httpd': > command => '/usr/bin/yum remove -y httpd', > refreshonly => true, > } >

Re: [Puppet Users] Re: is there a definition of the abstract service type

2011-04-21 Thread Thomas Bellman
On 2011-04-21 09:18, Felix Frank wrote: > So obviously, there is no xinetd provider. I concur that such a thing > would probably be worthwile. If your Ruby is good (or if you like doing > new things ;-), you may want to cobble one together yourself as a > plugin, it's not rocket science. Well, on

Re: [Puppet Users] Re: is there a definition of the abstract service type

2011-04-21 Thread Felix Frank
On 04/21/2011 09:35 AM, Thomas Bellman wrote: > On 2011-04-21 09:18, Felix Frank wrote: > >> So obviously, there is no xinetd provider. I concur that such a thing >> would probably be worthwile. If your Ruby is good (or if you like doing >> new things ;-), you may want to cobble one together yours

[Puppet Users] Default parameters for classes with parameters

2011-04-21 Thread Oliver Schad
Hi all, does somebody know if default parameters in classes with parameters work? I tried it with puppet v2.6.7 i.e.: class app::mysql( $mysql_data_dir = '/data/mysql/data', $mysql_log_dir = '/data/mysql/log', $mysql_binlog_dir = '/data/mysql/bi

Re: [Puppet Users] Re: is there a definition of the abstract service type

2011-04-21 Thread Thomas Bellman
On 2011-04-21 10:19, Felix Frank wrote: > I don't think ralsh packs much intelligence in that regard, but relies > on the redhat provider instead. Yes, I was thinking "ralsh" as in "ralsh and all the subroutines from the rest of Puppet that it uses". > Peaking at the provider, it doesn't appear

Re: [Puppet Users] Default parameters for classes with parameters

2011-04-21 Thread Martin Alfke
Hi On Apr 21, 2011, at 10:58 AM, Oliver Schad wrote: > Hi all, > > does somebody know if default parameters in classes with parameters work? I > tried it with puppet v2.6.7 i.e.: this is possible according to documentation: http://docs.puppetlabs.com/guides/parameterized_classes.html#using-para

Re: [Puppet Users] Installing port on FreeBSD

2011-04-21 Thread Russell Jackson
On 04/20/2011 02:45 PM, Nigel Kersten wrote: > On Fri, Apr 15, 2011 at 3:26 PM, fafaforza wrote: >> New user trying to get a port to compile: I tried searching but all I >> get are links to the FreeBSD port of puppet. Easier to find a needle >> in a haystack. >> >> A class has: >> >> exec { "por

Re: [Puppet Users] Installing port on FreeBSD

2011-04-21 Thread Nigel Kersten
On Thu, Apr 21, 2011 at 11:03 AM, Russell Jackson wrote: > The ports provider doesn't work due to bugs in portupgrade when run > without a controlling tty. I opened a problem report about this sometime > ago and recommended removing the provider entirely. I'll chase this up now Russell. > The p

Re: [Puppet Users] Multiple includes in a module class not "included"

2011-04-21 Thread Nigel Kersten
On Thu, Apr 21, 2011 at 10:56 AM, Jeff Falgout wrote: > Greetings - > I'm trying to get multiple includes to work within a class within a module > and it looks as if the just the first "include" is included ... > client:  Scientific Linux 6 with puppet-2.6.6-1.el6.noarch  (from > EPEL-testing) > s

Re: [Puppet Users] Installing port on FreeBSD

2011-04-21 Thread Russell Jackson
On 04/21/2011 11:05 AM, Nigel Kersten wrote: > On Thu, Apr 21, 2011 at 11:03 AM, Russell Jackson wrote: > >> The ports provider doesn't work due to bugs in portupgrade when run >> without a controlling tty. I opened a problem report about this sometime >> ago and recommended removing the provider

[Puppet Users] Re: Handling unmanaged resources and their files/configs

2011-04-21 Thread Forrie
That only removes the management element, as I understand. I can think of a couple of scenarios where I've had issues with this: * ssh_authorized_keys - there is a bug where if a comment exists it just keeps dumping more copies of the keys. When a key is no longer managed, might be nice to have

Re: [Puppet Users] Re: Handling unmanaged resources and their files/configs

2011-04-21 Thread Nigel Kersten
On Thu, Apr 21, 2011 at 11:21 AM, Forrie wrote: > That only removes the management element, as I understand. > > I can think of a couple of scenarios where I've had issues with this: > > * ssh_authorized_keys - there is a bug where if a comment exists it > just keeps dumping more copies of the key

Re: [Puppet Users] Multiple includes in a module class not "included"

2011-04-21 Thread Jeff Falgout
On Thu, Apr 21, 2011 at 12:13 PM, Nigel Kersten wrote: > > > > > The class: > > from rpm_gpg/manifests/init.pp > > class rpm_gpg { > > include > > "rpm_gpg::keys::spacewalk2010", > > "rpm_gpg::keys::jpackage" > > } > > > > root@devlucid:/home/nigel/src/puppe

Re: [Puppet Users] Multiple includes in a module class not "included"

2011-04-21 Thread Nan Liu
On Thu, Apr 21, 2011 at 11:45 AM, Jeff Falgout wrote: > > > > On Thu, Apr 21, 2011 at 12:13 PM, Nigel Kersten > wrote: >> >> > >> > The class: >> > from rpm_gpg/manifests/init.pp >> > class rpm_gpg { >> >         include >> >                 "rpm_gpg::keys::spacewalk2010", >> >                 "r

Re: [Puppet Users] Multiple includes in a module class not "included"

2011-04-21 Thread Jeff Falgout
On Thu, Apr 21, 2011 at 1:10 PM, Nan Liu wrote: > > > > > I suspect I'm doing something incorrect or misunderstanding something. > > Puppet classes are singletons, even if you include a class multiple > times it only realize the resources defined in the class once. > Ahhh - ok, makes sense. >

Re: [Puppet Users] Multiple includes in a module class not "included"

2011-04-21 Thread Nan Liu
On Thu, Apr 21, 2011 at 12:40 PM, Jeff Falgout wrote: > > > On Thu, Apr 21, 2011 at 1:10 PM, Nan Liu wrote: >> >> > >> > I suspect I'm doing something incorrect or misunderstanding something. >> >> Puppet classes are singletons, even if you include a class multiple >> times it only realize the re

[Puppet Users] Re: Handling unmanaged resources and their files/configs

2011-04-21 Thread Forrie
This type seems like it could have unwanted side effects. I'd prefer there be a way to specify the resource I want purged, instead of just all or nothing. On Apr 21, 2:36 pm, Nigel Kersten wrote: > On Thu, Apr 21, 2011 at 11:21 AM, Forrie wrote: > > That only removes the management element,

Re: [Puppet Users] Re: Handling unmanaged resources and their files/configs

2011-04-21 Thread Nigel Kersten
On Thu, Apr 21, 2011 at 1:24 PM, Forrie wrote: > This type seems like it could have unwanted side effects. I'd prefer > there be a way to specify the resource I want purged, instead of just > all or nothing. > You can do that, but you did ask about handling "unmanaged resources" :) A resou

[Puppet Users] Re: Handling unmanaged resources and their files/configs

2011-04-21 Thread Forrie
Fair enough :-) In my case, we have NFS mounts that rotate out -- and I dread having to manually prune the many systems we use. Puppet will handle /etc/fstab, but I want to remove the mountpoint as well. On Apr 21, 4:29 pm, Nigel Kersten wrote: > On Thu, Apr 21, 2011 at 1:24 PM, Forrie wrot

[Puppet Users] Re: What to do if something is not required on the clients?

2011-04-21 Thread Sans
Thanks Felix, for the explaining this to me. I'm still learning Puppet and making mistakes. Although I used "ensure => purged" for httpd, I wanted to know why this wasn't working. Thanks again. Cheers!! -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] Certificate request does not match existing certificate

2011-04-21 Thread Jeff McCune
On Tue, Apr 19, 2011 at 4:57 AM, Thomas Mueller wrote: >> >> Client version: 0.24.8 >> Server version: 2.6.6 > > IMHO client 0.24.x is too old and does not work with puppetmaster 2.6.x? Puppet 0.24.8 works just fine with Puppet Master 2.6.x. To resolve this issue, have you tried cleaning out the

Re: [Puppet Users] Puppet apply with ENC and storeconfigs

2011-04-21 Thread Jeff McCune
On Tue, Apr 19, 2011 at 3:45 AM, Oliver wrote: > I'm probably doing something wrong, but please sanity check this. I'm > trying to use "puppet apply" locally on my Puppetmasters. They have > storeconfigs configured in the [main] section, as well as the ENC > config set up in [main]. > > When puppe

[Puppet Users] ssh_authorized_key fails when home directory doesn't exist

2011-04-21 Thread Corey Osman
Here is my situation: 1. We use Active directory (LDAP) to store all user info which is retrieved from linux 2. A home directory is not created until the first time the user logs into the linux system I am using the ssh_authorized_key type to push out my ssh keys to every system. However,

Re: [Puppet Users] ssh_authorized_key fails when home directory doesn't exist

2011-04-21 Thread Jeff McCune
On Thu, Apr 21, 2011 at 3:41 PM, Corey Osman wrote: > Here is my situation: > > 1. We use Active directory (LDAP) to store all user info which is retrieved > from linux > 2.  A home directory is not created until the first time the user logs into > the linux system > > > I am using the ssh_autho

[Puppet Users] Re: how to catch errors

2011-04-21 Thread eshamow
We use a dashboard -- in our case Foreman -- and watch for hosts returning anything other than complete success. Any diagnostic messages at all drop the host into "hosts that made modifications" category, and errors drop the host into "hosts in error state." I have my team watching the dashboard

Re: [Puppet Users] ssh_authorized_key fails when home directory doesn't exist

2011-04-21 Thread Marcello de Sousa
I have the same issue (using Likewise Open) and even remember discussing this briefly with Jeff (Puppetcamp in Belgium). I still could not find a perfect solution. Likewise open takes care of k5login kerberos file when creating the homedir. If the folder already exists because puppet created it, L

Re: [Puppet Users] ssh_authorized_key fails when home directory doesn't exist

2011-04-21 Thread Marcello de Sousa
Btw, you can probably let puppet manage the .k5login as well... It's just an extra small hassle. On Fri, Apr 22, 2011 at 2:10 AM, Marcello de Sousa wrote: > I have the same issue (using Likewise Open) and even remember > discussing this briefly with Jeff (Puppetcamp in Belgium). I still > could n