Re: [Puppet Users] Puppet's generate conflicts with generate in ruby rails

2011-01-14 Thread Daniel Pittman
Hey, good news that you got it fixed. Could you post a link to the bug so that we can add it to the FAQ or whatever and save the next person who hits it the same round of trouble? Thanks, Daniel On Fri, Jan 14, 2011 at 15:56, Andree Jacobson wrote: > The problem seems to have resolved itsel

Re: [Puppet Users] Using puppet to redeploy staging app

2011-01-14 Thread Daniel Pittman
On Fri, Jan 14, 2011 at 14:26, Romain Pelisse wrote: >> Personally, I would use some sort of CI solution like Hudson that >> would be triggered on commit.  As part of the configured project you >> could have a full test suite run and if (and only if) it was entirely >> successful build new OS pac

Re: [Puppet Users] Puppet's generate conflicts with generate in ruby rails

2011-01-14 Thread Andree Jacobson
The problem seems to have resolved itself after we fixed a known bug in ruby rails / rack that also prevented us from getting the apache web server integrated. Thanks for all your useful comments. /Andree On 01/14/2011 01:06 PM, Andree Jacobson wrote: > When I uninstall the rubygem-rails package,

[Puppet Users] Experiment: Data/Model separation design proposal

2011-01-14 Thread Nigel Kersten
This is very much an experiment, not the publishing of this design, but the way we're seeking feedback. I'm going to experiment with creating a Google Doc, and allowing *anyone in the world* to edit it without signing into Google Apps. Lets see whether we get more or different feedback publishing

Re: [Puppet Users] Re: Using puppet to redeploy staging app

2011-01-14 Thread Romain Pelisse
How are you versioning/distributing your software? > The commits go in github and are polled regularly by our Hudson (CI server) which builds our code (Scala/Java code and also some Javascript source code), run the tests and package all of that either in jar or zip files. Hudson deploys everything

[Puppet Users] Re: Using puppet to redeploy staging app

2011-01-14 Thread chris mague
On Jan 14, 2:27 pm, Romain Pelisse wrote: > > It depends on how you deploy your applications. > > > In the case of packaged applications I do the following after tests > > pass in Hudson: > > > 1) using extconf to specify versions and overwrite the package version > > of the file with a script >

[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-14 Thread Brian
On Jan 13, 9:26 pm, Corey Osman wrote: > Hi, > > I am somewhat new to puppet and I wanted to show a demo that automated the > install of oracle to my DBA in hopes to entice him to start automating his > procedures. > > I have linked my manifest code below for review.  In the code I have > atte

Re: [Puppet Users] Re: Using puppet to redeploy staging app

2011-01-14 Thread Romain Pelisse
> > It depends on how you deploy your applications. > > In the case of packaged applications I do the following after tests > pass in Hudson: > > 1) using extconf to specify versions and overwrite the package version > of the file with a script > 2) use mcollective to go out and run apt-get update

Re: [Puppet Users] Using puppet to redeploy staging app

2011-01-14 Thread Romain Pelisse
> > Personally, I would use some sort of CI solution like Hudson that > would be triggered on commit. As part of the configured project you > could have a full test suite run and if (and only if) it was entirely > successful build new OS packages and push that artefact up to your > repository. T

[Puppet Users] Re: Using puppet to redeploy staging app

2011-01-14 Thread chris mague
On Jan 14, 1:41 pm, Romain Pelisse wrote: > Hi, > > I'm building a staging environement and I would like it to be able to > redeploy automatically, after each commit - or every hour, some > applications. Those applications are right now deployed and set up by > puppet. I wonder if I should use pup

Re: [Puppet Users] Using puppet to redeploy staging app

2011-01-14 Thread Daniel Pittman
On Fri, Jan 14, 2011 at 13:41, Romain Pelisse wrote: > I'm building a staging environement and I would like it to be able to > redeploy automatically, after each commit - or every hour, some > applications. Those applications are right now deployed and set up by > puppet. I wonder if I should use

[Puppet Users] Re: puppet agent 2.6.4... log file no longer careted/updated?

2011-01-14 Thread trey85stang
They certainly are, thats for pointing that out. Ill just feel embarassed now for not looking there to begin with. :) On Jan 14, 3:43 pm, Mohamed Lrhazi wrote: > are the logs in syslogd ? grep -r puppet /var/log ? > > > > On Fri, Jan 14, 2011 at 4:30 PM, trey85stang wrote: > > I recently insta

Re: [Puppet Users] puppet agent 2.6.4... log file no longer careted/updated?

2011-01-14 Thread Mohamed Lrhazi
are the logs in syslogd ? grep -r puppet /var/log ? On Fri, Jan 14, 2011 at 4:30 PM, trey85stang wrote: > I recently installed puppet 2.6.4 on a server and client...  And I can > not get puppet agent to write to a log file. > > puppet.conf is as follows: > > [main] >    vardir = /var/puppet >    

[Puppet Users] Using puppet to redeploy staging app

2011-01-14 Thread Romain Pelisse
Hi, I'm building a staging environement and I would like it to be able to redeploy automatically, after each commit - or every hour, some applications. Those applications are right now deployed and set up by puppet. I wonder if I should use puppet to redeploy those applications after each commit,

[Puppet Users] puppet agent 2.6.4... log file no longer careted/updated?

2011-01-14 Thread trey85stang
I recently installed puppet 2.6.4 on a server and client... And I can not get puppet agent to write to a log file. puppet.conf is as follows: [main] vardir = /var/puppet logdir = $vardir/log rundir = $vardir/run ssldir = $vardir/ssl [agent] classfile = $vardir/classes.txt

Re: [Puppet Users] Autosign Certificate upon rebuild

2011-01-14 Thread Ohad Levy
One way would be to enable autosign when you request your kickstart... if you ks is dynamically generated, that could be easily scripted. alternatively, you can have a look at Foreman [1] which handle this kind of things for you. Ohad [1] - http://theforeman.org On Fri, Jan 14, 2011 at 9:04 PM

[Puppet Users] Autosign Certificate upon rebuild

2011-01-14 Thread Derek Tracy
I am implementing Puppet on a small RHEL 5.3 cluster (~14 machines). These boxes will be rebuilt via kickstart at least once a month. What would be the best way to handle the certificate signing, preferably one that has the least interaction? I want to be able to kick off the rebuild and walk aw

Re: [Puppet Users] Puppet's generate conflicts with generate in ruby rails

2011-01-14 Thread Andree Jacobson
When I uninstall the rubygem-rails package, I get the expected result as well. I'm on CentOS 5.5, Puppet 2.6.4 - rpm built from source. It does not matter what client version it's running on. Here are the relevant packages installed: puppet.x86_64 2.6.4-1.NMC

Re: [Puppet Users] Can External Nodes scripts supply tags?

2011-01-14 Thread Dan Bode
On Fri, Jan 14, 2011 at 11:08 AM, Dan Bode wrote: > > > On Fri, Jan 14, 2011 at 11:03 AM, Rameses Mss wrote: > >> Is there any support for this? Or planned support? >> > > I have a patch that allows ENC to pass param classes, you should be able to > pass tags to these classes (although I have no

Re: [Puppet Users] Puppet's generate conflicts with generate in ruby rails

2011-01-14 Thread James Turnbull
Andree Jacobson wrote: > file { "/tmp/test2": > ensure => present, > content => generate('/usr/bin/env', 'sh', '-c', 'date'); > } When I run your manifest I get: $ puppet gen.pp notice: /Stage[main]//File[/tmp/test2]/ensure: created $ cat /tmp/test2 Sat Jan 15 06:10:23 EST 2011 What

Re: [Puppet Users] Can External Nodes scripts supply tags?

2011-01-14 Thread Dan Bode
On Fri, Jan 14, 2011 at 11:03 AM, Rameses Mss wrote: > Is there any support for this? Or planned support? > I have a patch that allows ENC to pass param classes, you should be able to pass tags to these classes (although I have not explicitly tested it) It is a fairly lightweight patch against

[Puppet Users] Can External Nodes scripts supply tags?

2011-01-14 Thread Rameses Mss
Is there any support for this? Or planned support? -- 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 unsubscribe from this group, send email to puppet-users+unsubscr...@google

Re: [Puppet Users] Puppet's generate conflicts with generate in ruby rails

2011-01-14 Thread Andree Jacobson
Here's the manifest: class test { file { "/tmp/test2": ensure => present, content => generate('/usr/bin/env', 'sh', '-c', 'date'); } } This is the generate.rb from the 2.6.4 source. # Runs an external command and returns the results Puppet::Parser::Functions::newfunction(:generate, :

[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-14 Thread Corey Osman
Well based on all the feedback, I have decided to go the RPM route. I had thought about it earlier and it sounded silly to package a 1.8GB gz file into an rpm. However, below is what I have decided to do: 1. Install oracle with patches 2. Tar+gzip entire /opt/oracle directory (954MB) vs 1.8GB in

Re: [Puppet Users] Puppet's generate conflicts with generate in ruby rails

2011-01-14 Thread James Turnbull
Andree Jacobson wrote: > My puppetmaster is running on a machine were we also want ruby rails > installed (partially for running a separate apache server to serve > puppet's files). However, using puppet's generate function, doesn't > work as expected with rails installed: > > err: Could not retri

Re: [Puppet Users] Problem restarting the agent

2011-01-14 Thread Wesley Wu
Thank you Mike and Jeff. I fixed the problem by following Mike's suggestion (removed the cert on the client). Cheers, Wesley On Thu, Jan 13, 2011 at 8:49 PM, Jeff McCune wrote: > On Thu, Jan 13, 2011 at 12:20 PM, Wesley Wu wrote: > > Just installed Puppet 2.6.4 on Ubuntu 10.10 > > > > I was

[Puppet Users] Puppet's generate conflicts with generate in ruby rails

2011-01-14 Thread Andree Jacobson
My puppetmaster is running on a machine were we also want ruby rails installed (partially for running a separate apache server to serve puppet's files). However, using puppet's generate function, doesn't work as expected with rails installed: err: Could not retrieve catalog from remote server: Err

Re: [Puppet Users] Re: puppet, mongrel and apache

2011-01-14 Thread Adam Heinz
On Fri, Jan 14, 2011 at 9:47 AM, Jake - USPS wrote: > Thanks for letting me know.  Also, what is Passenger?  I'm new to > puppet and not super familiar with ruby. http://www.modrails.com/ "Phusion Passenger™ — a.k.a. mod_rails or mod_rack — makes deployment of Ruby web applications, such as thos

[Puppet Users] Re: puppet, mongrel and apache

2011-01-14 Thread Jake - USPS
Thanks for letting me know. Also, what is Passenger? I'm new to puppet and not super familiar with ruby. Thanks, Jake On Jan 13, 2:02 pm, Daniel Pittman wrote: > On Thu, Jan 13, 2011 at 08:20, Jake - USPS wrote: > > > This is version of mongrel included with SLES10 SP3 > > > eagnmnmbpe26:~ #

[Puppet Users] Re: Problems with autoloading modules

2011-01-14 Thread luke.bigum
On Jan 13, 7:04 pm, Daniel Pittman wrote: > Luke, I don't see a CLA for you (but I confess that I am new at the > process of checking that, so please forgive me if you have one already > and I messed up.) > > This change isn't huge, but it would be nice to get a CLA for you – > especially because

[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-14 Thread Sven Sporer
On Jan 14, 10:52 am, Patrick wrote: > On Jan 14, 2011, at 1:39 AM, Sven Sporer wrote: > > > > > > > > > > >> How can I tell if oracle is install or any program when its install > >> without rpm? > >> How can I tell when the untar command is finished?   > >> What happens when it takes a while to t

[Puppet Users] Re: Virtual resources, account module help.

2011-01-14 Thread luke.bigum
Hi Adam, Shame you can't use LDAP or NIS ;) But anyway... Let me give you one of my working examples of virtual resources and hopefully it'll give you an idea on how to solve your problem. I've got Yum repos as virtual resources. Now I don't want every Yum repo on every server, so I've got a 'yum

Re: [Puppet Users] Help with Oracle Installer manifest

2011-01-14 Thread Avi Miller
Hi, Corey Osman wrote: I am somewhat new to puppet and I wanted to show a demo that automated the install of oracle to my DBA in hopes to entice him to start automating his procedures. An automated Oracle install is pretty complicated. I've been a Linux Sysadmin for about 10 years and I've

Re: [Puppet Users] Re: Help with Oracle Installer manifest

2011-01-14 Thread Patrick
On Jan 14, 2011, at 1:39 AM, Sven Sporer wrote: >> How can I tell if oracle is install or any program when its install without >> rpm? >> How can I tell when the untar command is finished? >> What happens when it takes a while to transfer 1.8GB file? >> Does the "user => oracle" give me the

[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-14 Thread Sven Sporer
> How can I tell if oracle is install or any program when its install without > rpm? > How can I tell when the untar command is finished?   > What happens when it takes a while to transfer 1.8GB file?   > Does the "user => oracle" give me the environment of the user like su - > oracle would? > Is