[Puppet Users] Help

2010-08-11 Thread parag(PK)
Hey, If sumone could help me down i have ubuntu (karmic ) an i run my puppetmaster on it . version 0.24.8 Now, have a client machine which run FC11 ,i am trying to configure puppet(version 0.25.5) on it (with ubuntu as puppetserver) every time i try to connect to the server ..its give

Re: [Puppet Users] Parsing key/value pairs in ruby

2010-08-11 Thread John Warburton
I based my bad first ruby code on http://www.devco.net/archives/2008/04/17/easy_per-machine_custom_facts_ for_puppet.php I just checked the URL, and Volcane admits the code was bad too - so have a look at http://www.devco.net/archives/2008/06/16/rework_of_puppet_facts_for_etcfactstxt.php John On

[Puppet Users] Re: Puppet system deployment hanging ..

2010-08-11 Thread MadX
On Aug 12, 8:13 am, James Turnbull wrote: > MadX wrote: > > We have successfully installed puppet on a CentOS Server, but I am > > battling with a deployment. > > > It has to do with grid software. The repository gets created, then > > begins installation. > > The problem is that it just hangs -

Re: [Puppet Users] Puppet system deployment hanging ..

2010-08-11 Thread James Turnbull
MadX wrote: > We have successfully installed puppet on a CentOS Server, but I am > battling with a deployment. > > It has to do with grid software. The repository gets created, then > begins installation. > The problem is that it just hangs - no errors, no network activity. I > can see puppet is r

[Puppet Users] Puppet system deployment hanging ..

2010-08-11 Thread MadX
We have successfully installed puppet on a CentOS Server, but I am battling with a deployment. It has to do with grid software. The repository gets created, then begins installation. The problem is that it just hangs - no errors, no network activity. I can see puppet is running, but nothing it bei

Re: [Puppet Users] Puppet/OpenSUSE 11.3 and packages

2010-08-11 Thread Michael Knox
On 11/08/10 6:31 PM, Jose Marques wrote: The other hassle which I've just been dealing with is repo definitions, you can use yumrepo but I think that process is fairly awkward on SuSE/OpenSuSE when you could use yast repo definitions. The yumrepo type seems interesting, as it doesn't use prov

[Puppet Users] ANNOUNCE: Puppet 2.6.1 - Release Candidate 2 available!

2010-08-11 Thread James Turnbull
In the long Puppet tradition of fast releases and agile iteration comes the 2.6.1 release! The second release candidate is now available and is a maintenance release in the 2.6.x branch. It contains a number of functional and performance enhancements including preliminary support for running Pupp

Re: [Puppet Users] Forbidden request: access to /certificate_revocation_list/ca failed

2010-08-11 Thread Brian Wong
On Wed, Aug 11, 2010 at 1:28 PM, Christian wrote: > I have installed on the client and on the server puppet version > 0.25.5. > > The setup was successfully tested with Webrick server on the > puppetserver. Afterwards i switched to passenger (2.2.11) and rack > (1.0.1) on the server. > > Puppetmas

[Puppet Users] Parsing key/value pairs in ruby

2010-08-11 Thread Patrick Mohr
I'm making a provider for cups and I need to parse a string into arbitrary key/value pairs. The string looks like this: printer-make-and-model='Brother HL-2060 Foomatic/hpijs-pcl5e (recommended)' printer-state=3 printer-state-change-time=1266621145 printer-state-reasons=none printer-type=85647

[Puppet Users] Re: install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread DaveQB
Here's how I do it. if ( $operatingsystem == "SLES" ) and ( $operatingsystemrelease == "10" ){ include SLES_10 } if ( $operatingsystem == "SLES" ) and ( $operatingsystemrelease == "11" ){ include SLES_11 } Of course run facter to check the variables. But you get the ide

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Jeff McCune
On Wednesday, August 11, 2010, Yushu Yao > Is there a way to change the "ca" to some other name? E.g. foo ? Yes, there is an option to change the cn field of the ca when puppet auto generates one. I'm not sure what it is off the top of my head but please check the configuration reference. I'm gu

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Yushu Yao
Thanks a lot for all of you. Another question: I saw the CN=ca for the certificate authority. (e.g. puppetca --list --print --all shows: ... Issuer: CN=ca ... Subject: CN=asdf ... ) Is there a way to change the "ca" to some other name? E.g. foo ? The reason for this is when I us

Re: [Puppet Users] Documentation contribution opportunity - Please help!

2010-08-11 Thread James Turnbull
Rob McBroom wrote: > 1) It looks like text enclosed `like this` is properly converted to > like this on the back-end, but there’s no styling to set this > text apart. (It should show up in a fixed-width font at the very least). I've updated the style and pushed an update. > 2) There are places

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Teyo Tyree
Yushu, This should work... 1. Create the cert with an arbitrary name (puppetca --generate foo.somethingrandom.bar) 2. You will need some process to sign the cert and copy the private keys to the client vm because they don't exist at cert creation time. Copying private keys about is generally fro

[Puppet Users] Re: define help

2010-08-11 Thread Douglas Wilson
On Aug 6, 11:13 am, Douglas Wilson wrote: > I'm trying to create a simple CPAN type and started with the code from > this page:http://www.windley.com/archives/2008/10/using_puppet_and_cpan.shtml > > I've tried all versions of code from that page, and what I'd like to > do is: > > class perl { >

[Puppet Users] Re: Could not retrieve catalog from remote server & Duplicate definition

2010-08-11 Thread martin kummer
So I was tried it to fix myself. I found the reason: First, there was no master running. I restarted it several time to find the problem, even with: puppetmasterd -l console --debug it just died, silently. Second: In the file /etc/puppet/fileserver.conf I inserted an space at the end of the i

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Matthew Macdonald-Wallace
On Wed, 2010-08-11 at 14:49 -0400, Marc Zampetti wrote: > Thanks all for the suggestions so far. A little more info to make it > clear what I'm trying to do. > > Basically, I don't want to stop Puppet from running and managing the > rest of the system, I just don't want it changing the state of th

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Ohad Levy
Hi, You may look into how mcollective or foreman[1] handles the certificate signing processes. [1] http://theforeman.org Ohad On Wed, Aug 11, 2010 at 9:07 PM, Yushu Yao wrote: > Just to add: > > The reason I wanted to do this: > 1. I want to create the certificates before the VMs are created.

Re: [Puppet Users] install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread Nan Liu
On Wed, Aug 11, 2010 at 12:52 PM, Nigel Kersten wrote: > > > $os_release = "${operatingsystem}-${operatingsystemrelease}" > > > > $pkg = ${os_release} ? { > > /^OEL-/ => redhat-lsb, > > /^SLES-11./ => lsb, > > default => redhat-lsb, > > } > > > > package { $pkg: > > ensure => installed

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Jeff McCune
On Wednesday, August 11, 2010, Yushu Yao wrote: > Thanks Jeff, > > Assuming we will worry about security later. > > Is it possible to use arbitrary name in both client cert's CN and in nodes.pp? Yes, this will work. -Jeff -- Jeff McCune http://www.puppetlabs.com/ -- You received this message

Re: [Puppet Users] install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread Gustavo Soares
I've been doing like this. (Don't know if it is the better ways.. but.. :)) if ($operatingsystemrelease >= 4) and ($operatingsystemrelease < 5) { $release = "el4" } else { if ($operatingsystemrelease >= 5) and ($operatingsystemrelease < 6) { $release = "el5" } } package { abc: ensure => "0.25.

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Marc Zampetti
Thanks all for the suggestions so far. A little more info to make it clear what I'm trying to do. Basically, I don't want to stop Puppet from running and managing the rest of the system, I just don't want it changing the state of the service itself. For example, an Apache http server is in ma

Re: [Puppet Users] Documentation contribution opportunity - Please help!

2010-08-11 Thread James Turnbull
Rob McBroom wrote: > > Like I said, no time at the moment, but if I were to fork that repo, I could > just send a pull request, right? > > [1]: http://docs.puppetlabs.com/references/latest/configuration.html Correct. Thanks James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-73

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Yushu Yao
Just to add: The reason I wanted to do this: 1. I want to create the certificates before the VMs are created. The VMs will need to run puppet client 2. However, before a VM is created, I don't know the IP nor the FQDN of the VM. That's why I'm thinking of using an arbitrary name. 3. I want to use

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-08-11 Thread Yushu Yao
Thanks Jeff, Assuming we will worry about security later. Is it possible to use arbitrary name in both client cert's CN and in nodes.pp? E.g. in node.pp we have: node "MyMachine1" { xxx } In client's cert the CN="MyMachine1" Where MyMachine1 is neither the IP address nor the fqdn. Then when

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Nan Liu
On Wed, Aug 11, 2010 at 1:02 PM, Nigel Kersten wrote: > You could use tags to identify that subset of resources, and have the > client work out whether it's under a maintenance window or not and > supply the appropriate tag specification to Puppet if so? > I recommend voting up the negate tag fe

Re: [Puppet Users] variable confusion

2010-08-11 Thread Douglas Garstang
On Tue, Aug 10, 2010 at 12:48 AM, David Schmitt wrote: > On 8/9/2010 6:23 PM, Christopher Johnston wrote: >> >> Why can't variables be reassigned with a setup like this? >> >> node /.*mydomain.com/ { >>   import mydomain.pp >> } >> >> node /*.yourdomain.com/

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Nan Liu
On Wed, Aug 11, 2010 at 12:27 PM, Marc Zampetti wrote: > To do this, I see two issues. > 1) How do I test for the existence of a file? The docs don't seem to be > able to do so. I'm guessing I would need to define a custom fact for that, > right? > 2) How do make it so that the service "ensure" pr

[Puppet Users] Forbidden request: access to /certificate_revocation_list/ca failed

2010-08-11 Thread Christian
I have installed on the client and on the server puppet version 0.25.5. The setup was successfully tested with Webrick server on the puppetserver. Afterwards i switched to passenger (2.2.11) and rack (1.0.1) on the server. Puppetmaster starts successfully with an httpd start. Making a certificat

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Nigel Kersten
On Wed, Aug 11, 2010 at 9:27 AM, Marc Zampetti wrote: >  I want puppet to normally manage the running state of a service, so that if > the service stops, it is restarted, etc. But during maintenance windows, I > want puppet to leave the service in whatever state it is in. My idea is to > have a fi

Re: [Puppet Users] Documentation contribution opportunity - Please help!

2010-08-11 Thread Rob McBroom
On Aug 11, 2010, at 11:00 AM, James Turnbull wrote: > Okay - I will fix that one. Thanks. >> puppet --configprint templatedir >> > > Thanks - fixed that one - any others? None that I’ve personally run across, but cloning `puppet-docs` and searching for the regex '--\w' shows a few. There are

Re: [Puppet Users] install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread Nigel Kersten
On Wed, Aug 11, 2010 at 9:48 AM, Nan Liu wrote: > On Wed, Aug 11, 2010 at 11:55 AM, Jason Amato wrote: >> >> How can I create a class to install a RPM based on the o/s type and >> the o/s release. >> I want to install a package on SLES, but only if it's release 11, not >> 10. >> > > I suppose you

Re: [Puppet Users] install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread Nan Liu
On Wed, Aug 11, 2010 at 11:55 AM, Jason Amato wrote: > How can I create a class to install a RPM based on the o/s type and > the o/s release. > I want to install a package on SLES, but only if it's release 11, not > 10. > > I suppose you can write nested if statements. Not sure if there are other

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Patrick Mohr
On Aug 11, 2010, at 9:31 AM, Joe McDonagh wrote: > On 08/11/2010 12:27 PM, Marc Zampetti wrote: >> I want puppet to normally manage the running state of a service, so that if >> the service stops, it is restarted, etc. But during maintenance windows, I >> want puppet to leave the service in wha

Re: [Puppet Users] install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread Joe McDonagh
On 08/11/2010 11:55 AM, Jason Amato wrote: How can I create a class to install a RPM based on the o/s type and the o/s release. I want to install a package on SLES, but only if it's release 11, not 10. I can do this, but how do I incorporate the release in here... thanks in advance! class packa

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Joe McDonagh
On 08/11/2010 12:27 PM, Marc Zampetti wrote: I want puppet to normally manage the running state of a service, so that if the service stops, it is restarted, etc. But during maintenance windows, I want puppet to leave the service in whatever state it is in. My idea is to have a file that can be

[Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Marc Zampetti
I want puppet to normally manage the running state of a service, so that if the service stops, it is restarted, etc. But during maintenance windows, I want puppet to leave the service in whatever state it is in. My idea is to have a file that can be checked to see if the service is in maintena

[Puppet Users] install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread Jason Amato
How can I create a class to install a RPM based on the o/s type and the o/s release. I want to install a package on SLES, but only if it's release 11, not 10. I can do this, but how do I incorporate the release in here... thanks in advance! class packages1 { $lsb = $operatingsystem ? {

Re: [Puppet Users] puppet dashboard not working for node group

2010-08-11 Thread Igal Koshevoy
Hai, Thanks for confirming the cause and glad you have a workaround. -igal On 08/11/2010 08:14 AM, hai wu wrote: > Thanks Igal! This is the exact root cause. It is working for me now, > now that I know the workaround. > > Thanks, > Hai > > On Wed, Aug 11, 2010 at 10:05 AM, Igal Koshevoy > mailto

Re: [Puppet Users] puppet dashboard not working for node group

2010-08-11 Thread hai wu
Thanks Igal! This is the exact root cause. It is working for me now, now that I know the workaround. Thanks, Hai On Wed, Aug 11, 2010 at 10:05 AM, Igal Koshevoy wrote: > On 08/11/2010 07:37 AM, hai wu wrote: > > I am using puppet-dashboard 1.0.3 for Ubuntu 10.04. It is not working > > for node g

[Puppet Users] puppetd slow, if master is on another host inside same LAN - newbie question

2010-08-11 Thread Martin Kuen
Hello all, I am new to puppet and I currently just use it during development - just two hosts. I only manage distribution of files/permissions with it. I am wondering why puppetd is running slowly on one of these machines. Google told me that File with "recurse => true" will make things run slowl

Re: [Puppet Users] puppet dashboard not working for node group

2010-08-11 Thread Igal Koshevoy
On 08/11/2010 07:37 AM, hai wu wrote: > I am using puppet-dashboard 1.0.3 for Ubuntu 10.04. It is not working > for node group. I can add a node group via "Add Group". After this, > from Edit node page, after trying to add this group to a node, the > group field would still be empty, and if looking

Re: [Puppet Users] Documentation contribution opportunity - Please help!

2010-08-11 Thread James Turnbull
Rob McBroom wrote: > I’ve noticed a couple of things related to in-line fixed-width text > (or whatever you want to call the expected result of using back ticks > in Markdown). > > 1) It looks like text enclosed `like this` is properly converted to > like this on the back-end, but there’s no styli

[Puppet Users] puppet dashboard not working for node group

2010-08-11 Thread hai wu
I am using puppet-dashboard 1.0.3 for Ubuntu 10.04. It is not working for node group. I can add a node group via "Add Group". After this, from Edit node page, after trying to add this group to a node, the group field would still be empty, and if looking at the log, it shows for this "update" _metho

Re: [Puppet Users] Documentation contribution opportunity - Please help!

2010-08-11 Thread Rob McBroom
On Aug 10, 2010, at 10:53 PM, James Turnbull wrote: > During this process we began doing a programmatic conversion of the > Restructured Text output from the automatically generated documentation > to Markdown.The conversion process is less than perfect and some of > the Markdown generated is

Re: [Puppet Users] networking on centos

2010-08-11 Thread Daniel Maher
On 08/09/2010 02:46 PM, cola wrote: I'm new to puppet, just want to know which is the right way to configure networking on centos (5). I've puppet up running, and now the first thing I'm trying to achieve is to configure the network interface ( /etc/sysconfig/network and / etc/sysconfig/netwo

[Puppet Users] Could not retrieve catalog from remote server & Duplicate definition

2010-08-11 Thread martin kummer
hi all I run puppet version 0.25.4 on Ubuntu 10.4 LTS as client and as master. Everything worked fin, but now I got a problem: If I try to update with puppetd --test, I get this Error Message: err: Could not retrieve catalog from remote server: undefined method `closed?' for nil:NilClass warnin

Re: [Puppet Users] Unit test standards, and feature request #2866

2010-08-11 Thread James Turnbull
Oliver Hookins wrote: > Hi all, > > I would find the feature #2866 very useful, and I noticed that > currently it is stalled in "Tests Insufficient" state. Where can I > find a document which describes the unit test standards for inclusion > of new features, or perhaps can you tell me what will be

[Puppet Users] Unit test standards, and feature request #2866

2010-08-11 Thread Oliver Hookins
Hi all, I would find the feature #2866 very useful, and I noticed that currently it is stalled in "Tests Insufficient" state. Where can I find a document which describes the unit test standards for inclusion of new features, or perhaps can you tell me what will be required for inclusion of this pa

Re: [Puppet Users] Puppet and Andorid

2010-08-11 Thread Michael Gliwinski
On Wednesday 11 Aug 2010 03:01:07 Disconnect wrote: > Is there something I'm missing? (As an aside, 50 megs - only 3 shared - > seems to be fairly standard for memory use when idle. That -screams- "not > made for embedded" :) ..) Yes, I meant to say it *would* be nice to be able to "scale it down"

[Puppet Users] Re: RHEL4 puppet-dashboard 1.0.3

2010-08-11 Thread ScubaDude
No problem Igal, Only happy to help with documentation if you need it. Brett On Aug 11, 11:45 am, Igal Koshevoy wrote: > On 08/11/2010 12:26 AM, ScubaDude wrote: > > > > > On Aug 10, 8:22 pm, Igal Koshevoy wrote: > > >> On 08/10/2010 06:58 AM, ScubaDude wrote:> Packages I needed to get > >> d

[Puppet Users] Re: RHEL4 puppet-dashboard 1.0.3

2010-08-11 Thread ScubaDude
No problem Igal. Happy to help with documentation if you need it. Brett On Aug 11, 11:45 am, Igal Koshevoy wrote: > On 08/11/2010 12:26 AM, ScubaDude wrote: > > > > > On Aug 10, 8:22 pm, Igal Koshevoy wrote: > > >> On 08/10/2010 06:58 AM, ScubaDude wrote:> Packages I needed to get > >> dash

Re: [Puppet Users] Re: RHEL4 puppet-dashboard 1.0.3

2010-08-11 Thread Igal Koshevoy
On 08/11/2010 12:26 AM, ScubaDude wrote: > On Aug 10, 8:22 pm, Igal Koshevoy wrote: > >> On 08/10/2010 06:58 AM, ScubaDude wrote:> Packages I needed to get dashboard >> running on a RHEL4 Server: >> >> Thanks for describing this, we'll incorporate these into a future >> release of the Puppet D

Re: [Puppet Users] Puppet/OpenSUSE 11.3 and packages

2010-08-11 Thread Jose Marques
On 10 Aug 2010, at 21:50, Michael Knox wrote: > rug disappeared from OpenSuSE about 11.1/11.2. zypper as a package provider > should be fully (thanks to patches #3802 & #1223) supported in puppet 2.6. > I'm using 0.25.5 with those patches. Thank you for the pointers. Looks like I might be best

[Puppet Users] Re: RHEL4 puppet-dashboard 1.0.3

2010-08-11 Thread ScubaDude
On Aug 10, 8:22 pm, Igal Koshevoy wrote: > On 08/10/2010 06:58 AM, ScubaDude wrote:> Packages I needed to get dashboard > running on a RHEL4 Server: > > Thanks for describing this, we'll incorporate these into a future > release of the Puppet Dashboard's documentation. I've added a feature > ti

Re: [Puppet Users] puppetrun with --class argument not working, ver. 0.25.5

2010-08-11 Thread Patrick Mohr
I think I've seen a similar error before. If I remember right, the problem is that puppetrun or is looking in the main/puppetrun sections for information about ldap. You have you ldap stuff in puppetmasterd. Try temporarily putting all the ldap stuff in [main]. On Tue, Aug 10, 2010 at 9:14 PM,