Re: [Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread Michael Stahnke
On Tue, Oct 18, 2011 at 2:56 PM, jcbollinger wrote: > > > On Oct 18, 11:43 am, Michael Stahnke wrote: >> On Tue, Oct 18, 2011 at 6:19 AM, jcbollinger >> wrote: > [...] >> > I, on the other hand, would recommend avoiding gems altogether if >> > you're using the system's Ruby (i.e. one you instal

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Nathan Clemons
If it's a straightforward compilation, you should be able to do this with a set of chained execs. For instance, a file resource to push the tarball, then an exec to extract it (which depends on the tarball), an exec to configure it (which depends on the previous exec), and an exec to install it (w

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Dan White
Thanks for the opinion. I understand your concern, but I have a need to do exactly that. Making a long story short, RPM's do not work for this need unless you consider a relocatable package and I have seen some serious objection

[Puppet Users] Deploying custom facts doesn't seem to be working.

2011-10-18 Thread CZACHOR, KRISTOPHER
Hi, I'm running an rpm install of puppet 2.6.6 on Fedora 15. I've written a custom fact that I would like to deploy to all of my clients. Here is what I have so far: /etc/puppet/fileserver.conf: [files] Path /var/lib/puppet/files Allow * [plugins] Allow * /etc/puppet/puppet.conf: [main

[Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread jcbollinger
On Oct 18, 11:43 am, Michael Stahnke wrote: > On Tue, Oct 18, 2011 at 6:19 AM, jcbollinger > wrote: [...] > > I, on the other hand, would recommend avoiding gems altogether if > > you're using the system's Ruby (i.e. one you installed from an RPM, > > whether via yum or otherwise).  Ruby modul

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Scott Smith
Use fpm. On Tue, Oct 18, 2011 at 1:21 PM, Dan White wrote: > Are there any exapmples out there that show an intelligent way to do this ? > > My searches are not turning up anything useful > > “Sometimes I think the surest sign that intelligent life exists elsewhere > in the universe is that none

[Puppet Users] Re: Facter on a VM...

2011-10-18 Thread Kit Plummer
Hey.  Just getting back to this issue. It happens on just about every OS, or VM enviro.  I'm currently testing on MacOSX, but have also seen it on various Linux distros, most recently CentOS-6.  I can reproduce it in AWS, VMware, and Virtualbox, but only from my app.  It never happens if in IRB, or

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Craig White
I've always thought that if you wanted, consistent, repeatable methodology for install/remove/upgrade that the native packaging is always the way to go and rpm-build does exactly that with tarballs. I don't think Puppet is the way to drop tarballs && config && make && make install because so ma

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Christopher Wood
On Tue, Oct 18, 2011 at 08:54:22PM +, Dan White wrote: > Yes, I agree. If it were something as simple as pulling in a binary to the > right location and setting up a script in /etc/init.d to let services/xinitd > run it. > > But I am looking for something that might pull in a tar-ball, unro

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Dan White
I'm on puppet 2.6.something, and I fully plan to use the "/etc/init.d/" mechanism to define my service. Is there any other (correct) way to do it ? I'm just looking for an automated way to install it with puppet. - Nathan Clemons wrote: > The one thing that I'll mention is that you want t

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Dan White
RHEL 5, and the packages in question come as tar-balls that have to be unrolled into place and then compiled/configured. Not your simple "yum install...", sad to say. - Russell Van Tassell wrote: > It might be helpful to include the O/S you're asking about, possibly with > the package...

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Dan White
Yes, I agree. If it were something as simple as pulling in a binary to the right location and setting up a script in /etc/init.d to let services/xinitd run it. But I am looking for something that might pull in a tar-ball, unroll it, compile it (maybe) and set up the appripriate stuff. I can (

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Nathan Clemons
The one thing that I'll mention is that you want to use "hasstatus => true" whenever possible, I've found, at least on older versions of Puppet (0.25.x). Sometimes the logic it tries to use otherwise doesn't quite work, but using the "/etc/init.d/ status" check seems to work fine. -- Nathan Clemon

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Christopher Wood
On Tue, Oct 18, 2011 at 08:21:34PM +, Dan White wrote: > Are there any exapmples out there that show an intelligent way to do this ? http://docs.puppetlabs.com/references/stable/type.html#service That makes it sound like as long as you have the right init script (or platform-specific variant

Re: [Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Russell Van Tassell
It might be helpful to include the O/S you're asking about, possibly with the package... sometimes it's a matter of just changing/adding a respository. Sometimes it might be a little more involved. On Tue, Oct 18, 2011 at 1:21 PM, Dan White wrote: > Are there any exapmples out there that show a

[Puppet Users] How-To Question: Installing a "service" that does not come in an RPM ?

2011-10-18 Thread Dan White
Are there any exapmples out there that show an intelligent way to do this ? My searches are not turning up anything useful “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- Y

Re: [Puppet Users] Puppet node fails to pass facts to master

2011-10-18 Thread Adrien Thebo
What version of facter are you using? On Oct 18, 2011 9:49 AM, "Yann H" wrote: > Hello Puppet list, > > I am taking over the puppet configuration of a sysadmin who left, and > am having troubles deploying puppet to a new node. We are using puppet > v2.7.3 both on the client and the puppetmaster,

Re: [Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread Michael Stahnke
On Tue, Oct 18, 2011 at 9:49 AM, Steve Snodgrass wrote: > I've been working on building the Fedora 15 rails 3 RPMs for EL6.  I'd > be interested in doing that for EPEL, I'll have to look into how to > become a maintainer. > If you're already in the Fedora/EPEL ecosystem, ping me in #epel. I can

Re: [Puppet Users] puppet-foreman

2011-10-18 Thread Ohad Levy
On Tue, Oct 18, 2011 at 8:00 PM, Corey Osman wrote: > Hi, > I created a centOS6 EC2 instance last night and ran the foreman puppet > module but it came back with a few years.  Was hoping somebody could help me > understand these errors. > [root@ip-10-170-77-129 config]# echo include foreman | pupp

[Puppet Users] Re: puppet-foreman

2011-10-18 Thread Florian Koch
Hi, is selinux active ? If is active (run "sestatus") you need to disable ("setenforce 0" and edit /etc/sysconfig/selinux) or create a policy. rgds flo On Oct 18, 8:00 pm, Corey Osman wrote: > Hi, > > I created a centOS6 EC2 instance last night and ran the foreman puppet module > but it came

[Puppet Users] puppet-foreman

2011-10-18 Thread Corey Osman
Hi, I created a centOS6 EC2 instance last night and ran the foreman puppet module but it came back with a few years. Was hoping somebody could help me understand these errors. [root@ip-10-170-77-129 config]# echo include foreman | puppet --modulepath /root/puppet-foreman/ err: /Stage[main]/F

Re: [Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread Eric Shamow
My worry is often that a poorly-crafted will overwrite something that the gem db expects to be there. It shouldn't happen but it does - so for me I stick to all-RPMs, because at least then expectations are managed by the rpm database, and I can fix things by repairing a broken package. If gem a

Re: [Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread Aaron Grewell
It also depends on how many machines you're managing. If you've got very many I'm with John: don't cross the streams. It's so easy to make RPMs from gems that there's really no reason not to if you need a newer version than what's provided. On Tue, Oct 18, 2011 at 10:14 AM, Craig White wrote: >

Re: [Puppet Users] Re: passing parameters to templates

2011-10-18 Thread Nan Liu
On Tue, Oct 18, 2011 at 10:24 AM, Matt Zagrabelny wrote: > On Tue, Oct 18, 2011 at 12:11 PM, Steve Snodgrass wrote: >> To be a little more explicit about what Nan said, if you use a >> parameterized class, any parameters you passed into the class will >> also be available in the template.  The sa

Re: [Puppet Users] Re: passing parameters to templates

2011-10-18 Thread Matt Zagrabelny
On Tue, Oct 18, 2011 at 12:11 PM, Steve Snodgrass wrote: > To be a little more explicit about what Nan said, if you use a > parameterized class, any parameters you passed into the class will > also be available in the template.  The same things goes for a define. I've got a class: class libapach

Re: [Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread Craig White
On Oct 18, 2011, at 6:19 AM, jcbollinger wrote: > > > On Oct 17, 3:03 pm, Russell Van Tassell wrote: >> Personally, I've had better luck letting gem managed its own gems, rather >> than depending on Yum repositories (specifically on CentOS). >> >> I'd take a list of the Ruby gems you've insta

[Puppet Users] Re: passing parameters to templates

2011-10-18 Thread Steve Snodgrass
To be a little more explicit about what Nan said, if you use a parameterized class, any parameters you passed into the class will also be available in the template. The same things goes for a define. On Oct 17, 5:58 pm, Matt Zagrabelny wrote: > Hi, > > Is it possible to pass parameters to use in

Re: [Puppet Users] Puppet node fails to pass facts to master

2011-10-18 Thread Aaron Grewell
Make sure you have all the lsb packages installed. That's usually what causes LSB facts not to resolve. On Tue, Oct 18, 2011 at 6:22 AM, Yann H wrote: > Hello Puppet list, > > I am taking over the puppet configuration of a sysadmin who left, and > am having troubles deploying puppet to a new nod

[Puppet Users] Puppet node fails to pass facts to master

2011-10-18 Thread Yann H
Hello Puppet list, I am taking over the puppet configuration of a sysadmin who left, and am having troubles deploying puppet to a new node. We are using puppet v2.7.3 both on the client and the puppetmaster, on Ubuntu 10.10. The node asks for a certificate fine, and I signed it on the puppetmaster

[Puppet Users] Error when setting up stored configurations "unable to open database file"

2011-10-18 Thread Chris
Hi, I'm getting the following error when I try to set up stored configurations. It appears in the master logs when the agent process runs. $ sudo /usr/sbin/puppetmasterd --no-daemonize --verbose ... info: Connecting to sqlite3 database: /var/lib/puppet/state/ clientconfigs.sqlite3 err: could not

[Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread Steve Snodgrass
I've been working on building the Fedora 15 rails 3 RPMs for EL6. I'd be interested in doing that for EPEL, I'll have to look into how to become a maintainer. On Oct 17, 4:05 pm, Todd Zullinger wrote: > robert.morti...@gmail.com wrote: > > I am having no joy installing Puppet Server with MySQL s

Re: [Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread Michael Stahnke
On Tue, Oct 18, 2011 at 6:19 AM, jcbollinger wrote: > > > On Oct 17, 3:03 pm, Russell Van Tassell wrote: >> Personally, I've had better luck letting gem managed its own gems, rather >> than depending on Yum repositories (specifically on CentOS). >> >> I'd take a list of the Ruby gems you've insta

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread Craig White
On Oct 18, 2011, at 8:07 AM, Nigel Kersten wrote: > > > On Tue, Oct 18, 2011 at 6:57 AM, R.I.Pienaar wrote: > > > - Original Message - > > > > > > On Oct 17, 10:23 am, Mohamed Lrhazi wrote: > > > - When the master calls my ENC, it knows what the environment of > > > the > > > client

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread R.I.Pienaar
- Original Message - > > > > On Tue, Oct 18, 2011 at 6:57 AM, R.I.Pienaar < r...@devco.net > wrote: > > > > > > - Original Message - > > > > > > On Oct 17, 10:23 am, Mohamed Lrhazi < lrh...@gmail.com > wrote: > > > - When the master calls my ENC, it knows what the enviro

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread Nigel Kersten
On Tue, Oct 18, 2011 at 6:57 AM, R.I.Pienaar wrote: > > > - Original Message - > > > > > > On Oct 17, 10:23 am, Mohamed Lrhazi wrote: > > > - When the master calls my ENC, it knows what the environment of > > > the > > > client is, regardless of where it got it from, right? > > > > No, i

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread R.I.Pienaar
- Original Message - > > > On Oct 17, 10:23 am, Mohamed Lrhazi wrote: > > - When the master calls my ENC, it knows what the environment of > > the > > client is, regardless of where it got it from, right? > > No, it doesn't, and it can't. That's one of the things the ENC is > permitt

[Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-18 Thread jcbollinger
On Oct 17, 10:23 am, Mohamed Lrhazi wrote: > - When the master calls my ENC, it knows what the environment of the > client is, regardless of where it got it from, right? No, it doesn't, and it can't. That's one of the things the ENC is permitted to decide. The master knows what environment th

Re: [Puppet Users] Re: setting ACLs using exec resource in Puppet DSL

2011-10-18 Thread neubyr
On Tue, Oct 18, 2011 at 8:09 AM, jcbollinger wrote: > > > On Oct 17, 5:03 pm, neubyr wrote: >> Hi, >> >> I am trying to set ACLs using exec resource in Puppet DSL as follows: > > > No, you're not.  You are trying to set ACLs by using an Exec resource > in a *Ruby* Puppet manifest, not one written

Re: [Puppet Users] Better solution for puppet SVN releases

2011-10-18 Thread Paul Morgan
On Tue, Oct 18, 2011 at 01:52:18AM -0700, Andreas Paul wrote: > we are currently managing our puppet modules with one SVN workspace for each > admin. > The post commit hook script updates /etc/puppet/ directory and triggers the > puppet kick of the correct server. we use git branches. the master

Re: [Puppet Users] setting ACLs using exec resource in Puppet DSL

2011-10-18 Thread neubyr
On Mon, Oct 17, 2011 at 6:17 PM, Nan Liu wrote: > On Mon, Oct 17, 2011 at 3:03 PM, neubyr wrote: >> Hi, >> >> I am trying to set ACLs using exec resource in Puppet DSL as follows: >> >> >> ... >> ... >> define :set_acl_userdir do >>  username = @name >>  user_dirname = dir + username >>  user_di

[Puppet Users] Re: Puppet on Centos 6.0

2011-10-18 Thread jcbollinger
On Oct 17, 3:03 pm, Russell Van Tassell wrote: > Personally, I've had better luck letting gem managed its own gems, rather > than depending on Yum repositories (specifically on CentOS). > > I'd take a list of the Ruby gems you've installed via rpm (rpm -q -a | grep > ruby) and then consider inst

Re: [Puppet Users] Better solution for puppet SVN releases

2011-10-18 Thread Christopher Wood
I use two separate puppetmasters for lab and production. (The lab side has more of the "dratted commas" style of checkin.) Testing changes to one particular type of server is where virtualization really shines. You can spin up a scratch virtual machine with the same manifests as your target hos

[Puppet Users] Re: setting ACLs using exec resource in Puppet DSL

2011-10-18 Thread jcbollinger
On Oct 17, 5:03 pm, neubyr wrote: > Hi, > > I am trying to set ACLs using exec resource in Puppet DSL as follows: No, you're not. You are trying to set ACLs by using an Exec resource in a *Ruby* Puppet manifest, not one written in Puppet DSL. It's not obvious to me at the moment why you aren

[Puppet Users] Re: More changes on yum.puppetlabs.com

2011-10-18 Thread Alexandre
ah so that's why i could not find it at first. Somewhere in the Cloud provisioner or Dashboard or documentation, there were links to ...prosvc... On 6 oct, 19:34, Michael Stahnke wrote: > Greetings, > > I'd like to remove the cruft (no longer maintained) areas of > yum.puppetlabs.com.  I fear th

Re: [Puppet Users] Reusing host names with puppet and SSL certificates

2011-10-18 Thread Alexandre Fouché
As far as i could see, the Puppet cloud provisionner also generates a random name and creates a certificate request based on it. Then Puppet client is run with the certname option, set with this previously generated hostname 2011/10/17 James A. Peltier > - Original Message - > | > | Is

[Puppet Users] Re: Better solution for puppet SVN releases

2011-10-18 Thread Luke Bigum
We use Git here and we tag branches to certain environments. We have a testing branch which everyone commits in to and what most of our testing machines are using. We then have other environments like Staging and Production that have specific tag checked out that (will eventually) align with our De

Re: [Puppet Users] Puppet cant find a class

2011-10-18 Thread Alexandre Fouché
Sorry, it does not help with the problem, but some time ago, i think i had something similar. I had a module+class which is perfectly working, and which was included in the node code. But if this class was in included in another class, it could not be found and puppet run failed. I had no choice b

Re: [Puppet Users] Better solution for puppet SVN releases

2011-10-18 Thread Alexandre Fouché
I had a similar problem, i use Git, and i though i could use branches and Git tricks, but it does not mixes well with Puppet environments. What i do below permits to use many puppet code branches, while having my puppetmaster serve all different branches at the same time using environments In my c

Re: [Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-18 Thread Alexandre Fouché
Hi, The 3rd option is interesting, i should try it to see. So far i had tried a similar way, with a "realize", but instead of overriding the content file, i had some conditional blocks with a variable in the puppet.conf.erb file. And it did not work, because it seems the variable was never known

Re: [Puppet Users] Re: How to inherit a parameterized class ? What is the syntax ?

2011-10-18 Thread Alexandre Fouché
Hi all, thanks for your answers, After some though and to keep it simple, i think the simplest way is to simply merge the two classes as you proposed, and decide the behaviour with a parameter. As stupid as it is, i admit i did not even though about it, i was seeing my current puppet class organis

[Puppet Users] Could not create RRD file

2011-10-18 Thread Martijn Grendelman
Hi, On 24 Dec 2010, I wrote to the mailing list about an issue with RRD reports: http://www.mail-archive.com/puppet-users@googlegroups.com/msg17209.html Back then, there was no solution. At the time, we were on Puppet 2.6.3. This week, I moved to Puppet 2.7.6rc3, and the problem is still here:

[Puppet Users] Better solution for puppet SVN releases

2011-10-18 Thread Andreas Paul
Hi, we are currently managing our puppet modules with one SVN workspace for each admin. The post commit hook script updates /etc/puppet/ directory and triggers the puppet kick of the correct server. The problem we have with this solution is that sometimes there are many small checkins to one c

[Puppet Users] Re: Managing entries in /etc/group (membership)

2011-10-18 Thread Luke Bigum
If I understand your problem correctly, no, there is no native resource type in Puppet to manage a UNIX group, ie: this does not exist: group { "wheel": members => "luke", } To manage group membership you need to know about every user you want in every group. So if what you mean by "not having