[Puppet Users] Re: testing exec

2011-09-20 Thread Tim Coote
That's it! I was getting lazy and not putting the #! /bin/bash at the top of the shell script. This was a pig to pull out tho': when run under the debugger I flushed out an 'Exec format error', which just didn't make it to the log when run normally. Google found the 'Exec format error' on a unix

[Puppet Users] qualified variables in templates

2011-09-20 Thread Arnau Bria
Hi all, is there a way for qualifying variables inside a template? I've tried : Name = <%= "${::hostname}" %> but the var gets "${::hostname}" value. thinking in version 2.8, is it needed? http://docs.puppetlabs.com/guides/scope_and_puppet.html says nothing about this... TIA, Arnau -- You r

[Puppet Users] Parameterized class of Parameterized classes

2011-09-20 Thread Arnau Bria
Hi all, is there any problem in creating a parameterized class of parameterized classes? something like: class A ($var1,$var2,$var3) { class { 'B' : param => ${var1} ; 'C' : param => ${var2} ; 'D' : param => ${var3} ; } } nod

Re: [Puppet Users] Re: Deployment of applications

2011-09-20 Thread Ashley Penney
This looks fascinating and I'm absolutely going to do some experimentation with it this week as a way to do some of the awkward deploys that exist. I love the idea. As a recent 2.7 upgrader I look forward to seeing the faces version you talk about. I guess today I'll finally get mcollective roll

[Puppet Users] Custom the puppet CA settings

2011-09-20 Thread Yunfeng Xu
Hi, I am trying to use my self-signed CA and certificates instead of the built-in CA.That is what I do: create a self-signed CA by openssll issue a certificate for puppet master by CA above then, add the private key files, ca files and pub key files into the folowing location(use the default val

[Puppet Users] Re: Requiring a package to satisfy a provider requirement

2011-09-20 Thread Matthew Willsher
On Sep 19, 4:06 pm, Matt wrote: > On Sep 19, 3:52 pm, John Kennedy wrote: > > > > > Would it be possible to create a class to install Glassfish and require that > > class to be fulfilled before?  I actually thought that > > require      => Package['glassfish'] > > would have the desired effect.

[Puppet Users] Re: Requiring a package to satisfy a provider requirement

2011-09-20 Thread Matthew Willsher
On Sep 20, 1:02 pm, Matthew Willsher wrote: > On Sep 19, 4:06 pm, Matt wrote: > > > On Sep 19, 3:52 pm, John Kennedy wrote: > > > > Would it be possible to create a class to install Glassfish and require > > > that > > > class to be fulfilled before?  I actually thought that > > > require    

Re: [Puppet Users] debugging new custom type

2011-09-20 Thread Guy Matz
Stefan, thanks again for your reply. I'm just trying to get something working, even if it doesn't actually do anything yet . . . On Mon, Sep 19, 2011 at 1:48 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Thu, Sep 15, 2011 at 04:22:45PM -0400, Guy Matz wrote: > > hi! Does anyo

Re: [Puppet Users] Re: Requiring a package to satisfy a provider requirement

2011-09-20 Thread Dan Bode
On Tue, Sep 20, 2011 at 5:27 AM, Matthew Willsher < matthew.wills...@gmail.com> wrote: > > > On Sep 20, 1:02 pm, Matthew Willsher > wrote: > > On Sep 19, 4:06 pm, Matt wrote: > > > > > On Sep 19, 3:52 pm, John Kennedy wrote: > > > > > > Would it be possible to create a class to install Glassfis

Re: [Puppet Users] Custom the puppet CA settings

2011-09-20 Thread Craig White
On Sep 20, 2011, at 3:32 AM, Yunfeng Xu wrote: > Hi, > > I am trying to use my self-signed CA and certificates instead of the built-in > CA.That is what I do: > > create a self-signed CA by openssll > issue a certificate for puppet master by CA above > > then, add the private key files, ca fi

Re: [Puppet Users] puppet on VPC-Virtual private cloud

2011-09-20 Thread Craig White
On Sep 19, 2011, at 7:20 PM, newguy wrote: > Hi guys > am running puppet clients as Ubuntu machines and am under a VPC, now > the problem is that due to a bug in ubuntu (lets not get in to the bug > details) I cant run apt-get update, upgrade remotely from the new VPC > puppet client but I can c

[Puppet Users] Re: troubles with require parametre

2011-09-20 Thread Christoph Maser
Hi is there any news on this topic, did you find a workaround? -- 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/-/FZaXGxabmpcJ. To post to this group, send em

[Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Alex L. Demidov
I have Gentoo host where `ifconfig -a` prints long interface names truncated to 9 chars (there is closed bug report [1]). Unfortunately, `facter` uses `ifconfig -a` output to get list of interface names and because of truncation it generates `interfaces` fact with incorrect interface names. Also

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Ken Barber
Hi Alex, What happens when you run 'ip addr list' instead? ken. On Tue, Sep 20, 2011 at 6:20 PM, Alex L. Demidov wrote: > I have Gentoo host where `ifconfig -a` prints long interface names > truncated to 9 chars (there is closed bug report [1]). > > Unfortunately, `facter` uses `ifconfig -a` ou

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Alex L. Demidov
On Tue, Sep 20, 2011 at 06:24:40PM +0100, Ken Barber wrote: > Hi Alex, > > What happens when you run 'ip addr list' instead? It shows interface names properly and not truncated. > > ken. > > On Tue, Sep 20, 2011 at 6:20 PM, Alex L. Demidov > wrote: > > I have Gentoo host where `ifconfig -a` p

[Puppet Users] Re: Puppet installation and configuration (Master and Client)

2011-09-20 Thread treydock
On Sep 19, 1:40 pm, Jo Rhett wrote: > On Sep 19, 2011, at 11:23 AM, Mr. E. wrote: > > > I need latest documentation on how to install and configure Puppet > > master and Puppet client in CentOS environment.  The CentOS version is > > 5.4 and Puppet version is 0.22.4.   > > Puppet 0.22.4 is quite

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Ken Barber
I think this gives a little weight to this ticket for Facter then: http://projects.puppetlabs.com/issues/1346 Although - I don't see a 9 char limitation on Debian Wheezy. Not sure where that patch came from though. I wonder how many other distros suffer from this. Of slightly related interest -

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Alex L. Demidov
On Tue, Sep 20, 2011 at 06:50:25PM +0100, Ken Barber wrote: > I think this gives a little weight to this ticket for Facter then: > > http://projects.puppetlabs.com/issues/1346 > > Although - I don't see a 9 char limitation on Debian Wheezy. Not sure > where that patch came from though. I wonder h

[Puppet Users] Puppet - Update a custom debian pkg

2011-09-20 Thread Sidarta
Hello folks, We're starting using Puppet in our production environment and now we're with some preformance issues. For example, we've some large(200MB) recursives directories for puppet's deploy, and that was totally inefficient. (Minimize recursive file serving: http://docs.puppetlabs.com/guides/

Re: [Puppet Users] debugging new custom type

2011-09-20 Thread Guy Matz
But to answer your question, vncservers file is a little different . . . there are two type of lines: 1. contains a space-separated list of port and usernames separated by colons, e.g.: VNCSERVERS="92:gmatz 44:wsmith" 2. contains arguments to be supplied to vncserver, with port number acting as a

[Puppet Users] Re: qualified variables in templates

2011-09-20 Thread Alessandro Franceschi
Use something like <%= scope.lookupvar('hostname') %> On Sep 20, 11:06 am, Arnau Bria wrote: > Hi all, > > is there a way for qualifying variables inside a template? > I've tried : > > Name = <%= "${::hostname}" %> > > but the var gets "${::hostname}" value. > > thinking in version 2.8, is it >

Re: [Puppet Users] Re: qualified variables in templates

2011-09-20 Thread Adrien Thebo
There's also more documentation on using puppet specific methods in templates at http://docs.puppetlabs.com/guides/templating.html On Tue, Sep 20, 2011 at 11:53 AM, Alessandro Franceschi wrote: > Use something like <%= scope.lookupvar('hostname') %> > > On Sep 20, 11:06 am, Arnau Bria wrote: >

Re: [Puppet Users] Puppet - Update a custom debian pkg

2011-09-20 Thread Scott Smith
Use apt On Sep 20, 2011 11:24 AM, "Sidarta" wrote: > Hello folks, > > We're starting using Puppet in our production environment and now > we're with some preformance issues. > For example, we've some large(200MB) recursives directories for > puppet's deploy, and that was totally inefficient. (Mini

[Puppet Users] Review of new type & provider

2011-09-20 Thread Jesse Peterson
Hello, I'm new to both Ruby and Puppet. Puppet is fantastic - loving it so far. I created a new type & provider (of parsed file type) for modifying newsyslog.conf files and am hoping some folks would be willing to review it to make sure there are no glaring mistakes or perhaps some shortcuts or l

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-20 Thread Matthew Marlowe
All, I put in a request to have the gentoo bug reopened and see if we can apply the same patch that the other distributions used. Thanks, Matt On Tue, Sep 20, 2011 at 11:16 AM, Alex L. Demidov wrote: > On Tue, Sep 20, 2011 at 06:50:25PM +0100, Ken Barber wrote: >> I think this gives a little we

Re: [Puppet Users] Custom the puppet CA settings

2011-09-20 Thread Yunfeng Xu
Hi, Craig I know your meaning,but it seems not working. These are my steps: 1. Run "puppetca --clean vmsz014" on the master to remove certificate. vmsz014 is the agent. 2. Rerun " puppetd --test" on the vmsz014 agent, but I still got the same err: err: Could not request certificate: Retrieved

Re: [Puppet Users] Custom the puppet CA settings

2011-09-20 Thread Yushu Yao
Hi Yunfeng, I implemented a ca that works with puppet. (including putting the right file into right places). Somewhere here: http://code.google.com/p/cloudcrv/source/browse/trunk/CRV/crv/model/centos5_puppet_clientmaker.py You might need to dig around a bit. But most of the stuff are in this fil

Re: [Puppet Users] Review of new type & provider

2011-09-20 Thread James Turnbull
Jesse Peterson wrote: > Hello, > > I'm new to both Ruby and Puppet. Puppet is fantastic - loving it so > far. > > I created a new type & provider (of parsed file type) for modifying > newsyslog.conf files and am hoping some folks would be willing to > review it to make sure there are no glaring m