[Puppet Users] run puppet service type with specific user

2011-09-24 Thread Dieter De Meyer
Hi, is it possible to use the service resource type with a specific user ? So that the service is started with that given user instead of the puppet user starting it... Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this disc

Re: [Puppet Users] run puppet service type with specific user

2011-09-24 Thread R.I.Pienaar
- Original Message - > Hi, > > > is it possible to use the service resource type with a specific user > ? > So that the service is started with that given user instead of the > puppet user starting it... puppet runs as root, your rc script should do the right thing and run the service

[Puppet Users] Re: Official puppetlabs position on cron vs puppet as a service?

2011-09-24 Thread treydock
On Sep 23, 5:42 pm, Brian Gupta wrote: > Over the years many shops have come to start running puppet via cron to > address memory leaks in earlier versions of Ruby, but the official position > was that puppet was meant to be run as a continually running service. > > I am wondering if the officia

Re: [Puppet Users] run puppet service type with specific user

2011-09-24 Thread Dieter De Meyer
Thanks for the reply. I modified the rc script to run as a user. But now I'm facing the following problem: I have to include some nasty puppet code for adding the service before i can use the service resource type. And the service resource type returns ok, but the service is in fact not started.

Re: [Puppet Users] run puppet service type with specific user

2011-09-24 Thread R.I.Pienaar
- Original Message - > Thanks for the reply. > > > I modified the rc script to run as a user. > But now I'm facing the following problem: > I have to include some nasty puppet code for adding the service > before i can use the service resource type. > And the service resource type retur

Re: [Puppet Users] run puppet service type with specific user

2011-09-24 Thread Matthew Black
Take a look at http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html I forget exactly the usage of the daemon but you need to include the functions, which is shown at the init script example. If you read that functions file it will give you an idea of how to use it to start up a service a

[Puppet Users] Using puppet to install debian packages from backports

2011-09-24 Thread Sébastien B .
Hello, with debian, provided you added backports.debian.org to your sources.list, you can install some fresher packages (say iceweasel) with the command apt-get install -t squeeze-backports iceweasel Is there anyway to do this using puppet ? Or maybe should I specify the required version of ice

Re: [Puppet Users] run puppet service type with specific user

2011-09-24 Thread Chuck Anderson
On Sat, Sep 24, 2011 at 04:02:22PM +0100, R.I.Pienaar wrote: > > > - Original Message - > > Thanks for the reply. > > > > > > I modified the rc script to run as a user. > > But now I'm facing the following problem: > > I have to include some nasty puppet code for adding the service > >

[Puppet Users] Trying to get a basic connection going between master and agent

2011-09-24 Thread mlove
Hi all, I am trying to get a simple example going with one master and one puppet. I am on Debian and used apt-get install puppetmaster for the master and apt-get install puppet for the puppet. I was able to get the cert signed and imported to the master from the puppet. Now I am just trying to g

[Puppet Users] Gotchas around upgrading from an old version (0.25.4) to a newer version.

2011-09-24 Thread brokenpipe
I've been tasked at my workplace to upgrade our puppet installation to a more modern version. Currently all the environments run a RubyGem version of puppet 0.25.4 on mostly RHEL/Centos 5.3 - 5.5 (there are, like most environments, a few laggards running RHEL4 or new machines running CentOS 6). Th

[Puppet Users] Could not render to pson: you must specify title patterns

2011-09-24 Thread Steve Traylen
Hi, I'm trying to add my first custom type to puppet largely copying examples whilst working with puppet-2.6.6. My error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not render to pson: you must specify title patterns when there are two or more key attributes W

Re: [Puppet Users] run puppet service type with specific user

2011-09-24 Thread Dieter De Meyer
Thank you all for the replies. I will certainly look into it.. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/4uAfGv7esQsJ. To post to this group, send ema

[Puppet Users] centos puppet user resource type - provider useradd does not support features manages_passwords

2011-09-24 Thread Dieter De Meyer
Hello, I have a CentOS 6.0 Virtualbox VM to package as a Vagrant box for testing Puppet manifests. The problem i'm having is with the user resource type not working with CentOS. I keep having an error message when setting the password for a user. Provider useradd does not support features manag

[Puppet Users] Templating question:

2011-09-24 Thread Peter Berghold
I thought I read in some documentation somewhere that for array variables you had a means of setting up a conditional for "last element". For instance class foo { $hosts=['hosta','hostb','hostc'] file { some-config : path=>"/s/ome/path/2[image: Call phone]/ In

Re: [Puppet Users] Trying to get a basic connection going between master and agent

2011-09-24 Thread Daniel Bahena
Run puppetd with the -v flag for verbose and see any errors printed. On Sep 24, 2011 12:16 PM, "mlove" wrote: > Hi all, > > I am trying to get a simple example going with one master and one > puppet. I am on Debian and used apt-get install puppetmaster for the > master and apt-get install puppet f

[Puppet Users] Re: Templating question:

2011-09-24 Thread Steve Snodgrass
Peter, I'm not sure about your specific question but there is a much easier way of doing what you are trying to do. <%= hosts.join(',') %> That will replace your entire example template. :) On Sep 24, 2:33 pm, Peter Berghold wrote: > I thought I read in some documentation somewhere that for ar

[Puppet Users] Re: Root User

2011-09-24 Thread Steve Snodgrass
Peter, are you using run stages? Your cyclical reference is probably related to the fact that every single file resource that installs a root-owned file has an implicit dependency on the root user. If you've got any root-owned files installed by stages that happen before the stage where you decla

Re: [Puppet Users] Using puppet to install debian packages from backports

2011-09-24 Thread Denmat
Hi, The options available to you are: * Try an exec that installs the package * try pinning the resource and push that to your apt config * try specifying version in the config To be honest I have not done any of these myself on debian style hosts. Cheers Den On 24/09/2011, at 8:06, Sébast

Re: [Puppet Users] Re: Templating question:

2011-09-24 Thread Peter Berghold
Hmmm looks suspiciously Perl-ish. ;) On Sep 24, 2011 4:19 PM, "Steve Snodgrass" wrote: Peter, I'm not sure about your specific question but there is a much easier way of doing what you are trying to do. <%= hosts.join(',') %> That will replace your entire example template. :) On Sep 24

Re: [Puppet Users] Re: Templating question:

2011-09-24 Thread Scott Smith
You must be new to Ruby. On Sep 24, 2011 3:30 PM, "Peter Berghold" wrote: > Hmmm looks suspiciously Perl-ish. ;) > > On Sep 24, 2011 4:19 PM, "Steve Snodgrass" wrote: > > Peter, I'm not sure about your specific question but there is a much > easier way of doing what you are trying to do. > >

Re: [Puppet Users] Re: Official puppetlabs position on cron vs puppet as a service?

2011-09-24 Thread Aaron Grewell
We had frequent inexplicable daemon crashes on Solaris, but not on RHEL5 (at least not yet) . Given known issues with memory leakage in older Ruby releases Cron seemed more likely to be reliable. We stuck a random wait in the Cron job to spread load on the master and so far it works well. On Se