[Puppet Users] Re: Cannot create authorized key and user in the same go?

2009-11-12 Thread Peter Meier
Hi > class users { > > user { "ben" : > ensure => present, > uid => 1010, > gid => "users", > managehome => true, > password => "blahblah" > } > > ssh_authorized_key { "ben-key": >ensure => present, >key=> "blahblah", >type => "ssh-dss", >user => "be

[Puppet Users] facter inconsistent results

2009-11-12 Thread Andrew Schulman
Hi. I'm running facter 1.5.1 in Ubuntu Jaunty. facter is giving me inconsistent results for the operatingsystem fact: $ facter operatingsystem Debian $ facter | grep operatingsystem operatingsystem => Ubuntu operatingsystemrelease => 9.04 Is this a known problem? Possibly fixed in a more rec

[Puppet Users] Recipes/Authorized_keys problem.

2009-11-12 Thread Adam Steffes
Hello. I am configuring my puppetmaster with the authorized_keys management recipe from the recipes repository on the Puppet site. So far, it does what it should *except* generate a keypair for new users, and I'm unsure of how to proceed from here. Any suggestions would be greatly appreciated. I

[Puppet Users] Re: Cannot create authorized key and user in the same go?

2009-11-12 Thread M F Haris
Ben Lavender schrieb: > Hi, > > I'm trying to create an authorized key and a user in one go and I'm > not getting anywhere: > > class users { > > user { "ben" : > ensure => present, > uid => 1010, > gid => "users", > managehome => true, > password => "blahblah" > } > > ssh

[Puppet Users] Re: Recipes/Authorized_keys problem.

2009-11-12 Thread Peter Meier
> Which seems odd because the user's account and home directory do > exist. In this example, the puppet client and puppetmaster are the > same machine. I can reproduce the problem with a second machine as the > client, as well. do exists, means that you have an actual file-resource managing it? I

[Puppet Users] Re: Recipes/Authorized_keys problem.

2009-11-12 Thread Peter Meier
> Are you using 0.25? Then you might also hit a current bug where traling > slashes are stripped of but not in relationships. So you might want to > change File["${homeroot}/$name/"], to File["${homeroot}/$name"], ftr: http://projects.reductivelabs.com/issues/2675 cheers pete --~--~-~--

[Puppet Users] Re: Cannot create authorized key and user in the same go?

2009-11-12 Thread Arto Bendiken
On Nov 12, 11:51 am, Ben Lavender wrote: > > > you have to specify relationship between these 2 resources. This means > > that the ssh_authorized_key needs a require => User['ben'] > > This is not the issue; specifying the relationship manually does not > solve the problem.  Further, the docs sta

[Puppet Users] Re: how to manage a service that enables a cron

2009-11-12 Thread Arnau Bria
Hi all, I would not like to confuse people. What I described in OT only happens to pakiti service and not to yum. So I suppose it's a "service" specific problem. It has its own init script but must behaves diff from standrd RH service. Cheers, Arnau --~--~-~--~~~-

[Puppet Users] how to manage a service that enables a cron

2009-11-12 Thread Thomas Bellman
Arnau Bria wrote: > # /etc/init.d/pakiti status > nightly pakiti update is enabled > # /etc/init.d/pakiti stop > Disabling pakiti: [ OK ] > # /etc/init.d/pakiti status > nightly pakiti update is disabled Now try this: # /etc/init.d/pakiti start

[Puppet Users] Managing 'services' (daemons) in AIX Client

2009-11-12 Thread M F Haris
Dear all, I want to manage services in my AIX node. I mean i can start/stop service using exec { command => "/etc/rc/blah-service start",} but i like this to be done by puppet itself with its type reference 'service'. has anyone manage the services on AIX machine ??? if yes, please share it! P

[Puppet Users] Puppet Not Running chkconfig correctly.

2009-11-12 Thread Thomas Bellman
jcbollinger wrote: > On Nov 10, 10:13 am, Thomas Bellman wrote: >> The problem is that 'chkconfig on' does an implicit add of >> the service; but it does a half-assed job, in that it only adds the >> start links, not the kill links. Thus, it is very easy to get into >> the broken state by doin

[Puppet Users] Re: Puppet Not Running chkconfig correctly.

2009-11-12 Thread jcbollinger
On Nov 11, 12:18 pm, David Schmitt wrote: > As a debianista I obviously haven't touched chkconfig ever. But in the > spirit of DWIM, I would expect a provider to do the magic to get (in > this case) an init-script under the control of the chosen tool. I'd be happier with that plan if the WIM we

[Puppet Users] Re: how to manage a service that enables a cron

2009-11-12 Thread jcbollinger
On Nov 11, 10:13 am, Arnau Bria wrote: > I'm just trying to control a service that does not run a process but > enables a cron (like yum autoupdate or pakiti). What Bellman said. Puppet is limited in what it can do for you if your initscipt's status command doesn't return an accurate status.

[Puppet Users] Re: how to manage a service that enables a cron

2009-11-12 Thread Arnau Bria
Hi Thomas, that's the problem all status return code is 0... Thanks, going to contact developer and see if he accepts a patch. Cheers, Arnau --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" grou

[Puppet Users] Creating Multiple Users in IBM AIX

2009-11-12 Thread M F Haris
hi all, I am trying to create a set of users on my AIX node and trying to get their authorized_keys which are already hosted on my server with name like, myuser_id_ds.pub. Currently i am managing 2 nodes (1. Suse Enterprise 2. AIX). I defined the 'source' file paths in 2 separate contexts in

[Puppet Users] Re: Behavior Driven Infrastructure

2009-11-12 Thread Patrick Debois
FYI: for those looking for examples and more discussions. I've put my collection of infrastructure testing links online: http://www.jedi.be/blog/2009/11/12/collection-of-test-driven-infrastructure-links/ --~--~-~--~~~---~--~~ You received this message because yo

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread Christopher Webber
We treat zones like normal nodes for the most part. There is a separate base class that is zone specific but otherwise we don't do things any differently. -- cwebber On Nov 12, 2009, at 8:28 AM, windowsrefund wrote: > > Getting past zone creation, I'm curious to know how people are > managi

[Puppet Users] Opensolaris: beyond zones

2009-11-12 Thread windowsrefund
Getting past zone creation, I'm curious to know how people are managing zone-specifics like users, packages, and services. Looking forward to this thread... Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Pupp

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread windowsrefund
On Nov 12, 11:32 am, Christopher Webber wrote: > We treat zones like normal nodes for the most part. There is a   > separate base class that is zone specific but otherwise we don't do   > things any differently. > So each zone runs a puppet client? --~--~-~--~~~---~

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread windowsrefund
On Nov 12, 11:32 am, Christopher Webber wrote: > We treat zones like normal nodes for the most part. There is a   > separate base class that is zone specific but otherwise we don't do   > things any differently. > So each zone runs a puppet client? --~--~-~--~~~---~

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread Christopher Webber
Yes. -- cwebber On Nov 12, 2009, at 8:55 AM, windowsrefund wrote: > > > > On Nov 12, 11:32 am, Christopher Webber wrote: >> We treat zones like normal nodes for the most part. There is a >> separate base class that is zone specific but otherwise we don't do >> things any differently. >> > > So

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread windowsrefund
That's not an option for me as I'm already planning on managing a few hundred physical nodes. Any other approaches out there? Thanks, Adam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread Akins, Brian
On 11/12/09 12:10 PM, "windowsrefund" wrote: > That's not an option for me as I'm already planning on managing a few > hundred physical nodes. Any other approaches out there? We manage a few thousand. We generally operate on "groups" (as defined in our external nodes classifier) and never on i

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread windowsrefund
Brian, Can you be more specific? For example, how would you go about ensuring that apache is running inside a non-global zone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gr

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread Akins, Brian
On 11/12/09 1:36 PM, "windowsrefund" wrote: > Can you be more specific? For example, how would you go about ensuring > that apache is running inside a non-global zone? The same as we do on any node. Service ensure running. -- Brian Akins --~--~-~--~~~---~--~~

[Puppet Users] Re: Recipes/Authorized_keys problem.

2009-11-12 Thread Adam Steffes
On Nov 12, 2:35 am, Peter Meier wrote: > > Which seems odd because the user's account and home directory do > > exist. In this example, the puppet client and puppetmaster are the > > same machine. I can reproduce the problem with a second machine as the > > client, as well. > > do exists, means t

[Puppet Users] Re: Opensolaris: beyond zones

2009-11-12 Thread windowsrefund
Brian, OK so you're also running a puppet client on each virtual node. --~--~-~--~~~---~--~~ 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 unsu

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread Russ Allbery
Andrew Schulman writes: > Hi. I'm running facter 1.5.1 in Ubuntu Jaunty. facter is giving me > inconsistent results for the operatingsystem fact: > $ facter operatingsystem > Debian > $ facter | grep operatingsystem > operatingsystem => Ubuntu > operatingsystemrelease => 9.04 > Is this a kn

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread Nigel Kersten
On Thu, Nov 12, 2009 at 11:29 AM, Russ Allbery wrote: > > Andrew Schulman writes: > > > Hi. I'm running facter 1.5.1 in Ubuntu Jaunty. facter is giving me > > inconsistent results for the operatingsystem fact: > > > $ facter operatingsystem > > Debian > > > $ facter | grep operatingsystem > >

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread Russ Allbery
Nigel Kersten writes: > Ugh. This is particularly sucky, and I vote this fact needs to be fixed > for this irrespective of the plugin loading issue. > The problem is: > if Facter.value(:lsbdistid) == "Ubuntu" >"Ubuntu" > elsif FileTest.exists?("/etc/debian_version")

[Puppet Users] Re: conditional restart of service

2009-11-12 Thread Jason Lavoie
On 10/29, Peter Meier wrote: > > I'm trying to have a exec dependency on a service object that would keep > > it from being restarted if the exec fails. Unfortunately, the service > > gets refreshed regardless whenever the exec is run, failure or not. [...] > > don't set the command to refreshon

[Puppet Users] Re: Managing 'services' (daemons) in AIX Client

2009-11-12 Thread jcbollinger
On Nov 12, 7:32 am, M F Haris wrote: > I want to manage services in my AIX node. I mean i can start/stop > service using > exec { command => "/etc/rc/blah-service start",} but i like this to be > done by puppet itself with its type reference 'service'. > > has anyone manage the services on AIX

[Puppet Users] Re: Crunchies (non-technical email follows)

2009-11-12 Thread Ryan Dooley
I can get behind that. Nominated :) On Nov 12, 2009, at 12:52 AM, Michael T. Halligan wrote: > > I just nominated Reductive Labs for a Crunchie in the "Best Enterprise > Startup" category, if only because it's the kind of ridiculous SF startup > popularity game that I think would annoy Luke

[Puppet Users] master/slave

2009-11-12 Thread mcnabb
I would like to set up two puppetmaster servers, one slaving off the other. Can anyone point me towards some documentation for setting it up? I've looked, but haven't had any luck finding anything. --~--~-~--~~~---~--~~ You received this message because you are s

[Puppet Users] Re: autoloader

2009-11-12 Thread Eric Sorenson
Here are the two go-to points for me: http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation http://www.devco.net/archives/2009/09/28/simple_puppet_module_structure.php -=Eric On Nov 10, 2009, at 4:38 PM, Allan Marcus wrote: > > CAn someone point me to some documentation on the autoloa

[Puppet Users] Win32 interest in London

2009-11-12 Thread Paul Nasrat
I'm looking for people and organisations I can work with in the London area who can provide tangible problems, alpha test and give feedback on puppet win32 support in the forthcoming months. Ideallly you have a heterogenous setup and some specific problems to solve, and potentially happy to have

[Puppet Users] Distinguishing between SLES 10 SP2 and SLES 10 SP3

2009-11-12 Thread Matt Delves
Hey All, I'm wondering if there is an easy way to distinguish between SP2 and SP3 on a SLES 10 installation. Thanks, Matt Delves --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to thi

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Scott
Is anyone using multiple environments? Can someone at least tell me what they did to get it working? Thanks, Scott On Nov 12, 6:53 am, Scott wrote: > So I'm trying to get multiple environments to work with puppet 0.25.1 > on ubuntu 8.04 and no matter what I do, puppet just completely ignores >

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Luke Schierer
I just had to set the environment variable in the puppet.conf file before starting the puppetd daemon. Then in each class I use that variable to determine what happens, for example file { "smtpd.conf": owner => root, group => root, mode=> 600,

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread lance dillon
On Thu, Nov 12, 2009 at 2:36 PM, Russ Allbery wrote: > > Nigel Kersten writes: > > > Ugh. This is particularly sucky, and I vote this fact needs to be fixed > > for this irrespective of the plugin loading issue. > > > The problem is: > > > if Facter.value(:lsbdistid) == "Ubuntu" > >

[Puppet Users] Re: Distinguishing between SLES 10 SP2 and SLES 10 SP3

2009-11-12 Thread Michael T. Halligan
It might be in /etc/suse-release if Facter isn't already picking it up On Nov 12, 2009, at 2:27 PM, Matt Delves wrote: > > Hey All, > I'm wondering if there is an easy way to distinguish between SP2 and SP3 on a > SLES 10 installation. > > Thanks, > Matt Delves > > > > --~--~-~--

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Pete Emerson
Scott, Multiple environments is working for me under puppet 0.25.1. I'm not sure what's wrong, but I wonder if having a manifest and modulepath entry in the [main] part of your puppet.conf is overriding any sections below. My puppet.conf does not have a manifest or modulepath entry in [main]. P

[Puppet Users] Re: Managing upgrading of puppet recipes

2009-11-12 Thread Pete Emerson
Here's the solution I wound up using. I created a puppet.conf.erb template file and had puppet create the puppet.conf file dynamically. The critical pieces (I only wanted directories starting with v, like v01, v02, et cetera): <% dirs = Dir.entries("/etc/puppet/manifests").sort -%> [main] ... [

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread Nigel Kersten
On Thu, Nov 12, 2009 at 4:48 PM, lance dillon wrote: > > > On Thu, Nov 12, 2009 at 2:36 PM, Russ Allbery wrote: > >> >> Nigel Kersten writes: >> >> > Ugh. This is particularly sucky, and I vote this fact needs to be fixed >> > for this irrespective of the plugin loading issue. >> >> > The probl

[Puppet Users] Re: Multiple environments

2009-11-12 Thread Scott
Pete, I only put the "modulepath" and "manifest" entries in the "main" section in an attempt to get environments to work. So your configuration is working with just a separate section like [testing] in my puppet.conf? No "environments" entry in [puppetmasterd] and just "modulepath" and "manifes

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread Andrew Schulman
> This has nothing to do with grep. > > facter should report a single consistent value for 'operatingsystem' when > invoked in either of these ways. Agreed. > Andrew, have you put a bug report in about this? No, I wanted to check first if I was missing something. I'll file a bug report about i

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Schulman wrote: >> This has nothing to do with grep. >> >> facter should report a single consistent value for 'operatingsystem' when >> invoked in either of these ways. > Maybe I am jumping in too late but do you have lsb installed on that ho

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread Russ Allbery
James Turnbull writes: > Andrew Schulman wrote: >>> This has nothing to do with grep. >>> facter should report a single consistent value for 'operatingsystem' when >>> invoked in either of these ways. > Maybe I am jumping in too late but do you have lsb installed on that > host (lsb-base packa

[Puppet Users] Re: facter inconsistent results

2009-11-12 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Russ Allbery wrote: > > Yeah, I bet that's more likely than my explanation, given that it's also > not working inside Puppet (which doesn't have the plugin problem). > Although that doesn't explain why running facter with grep works > Ah missed