[Puppet Users] camptocamp / puppet-apache can't get it to work properly.

2011-12-20 Thread Will S. G.
Hello, I'm attempting to use the camptocamp / puppet-apache module on one of my CentOS 6 hosts. I defined include apache on my node, imported the modules, and then executed puppetd to run. This is what I see when I run it: err: Could not retrieve catalog from remote server: Error 400 on SERVER: N

Re: [Puppet Users] camptocamp / puppet-apache can't get it to work properly.

2011-12-20 Thread Luke Bigum
Hi Will, I don't use the module but every time I see the word 'undef' in an error I think "a variable is used before being defined". Line 80: file { "${apache::params::conf}/mods-available": ensure => directory, source => $lsbmajdistrelease ? { 5 => "puppet:///modules/apache/e

[Puppet Users] Re: camptocamp / puppet-apache can't get it to work properly.

2011-12-20 Thread Will S. G.
> IIRC you only get LSB Facts if you have the necessary LSB package, > which is redhat-lsb on RHEL I think. That was it; redhat-lsb package was missing, which begs the question, why not require it in the module? There is another error (Puppet::Parser::AST::Resource failed with error ArgumentError

[Puppet Users] Re: Puppet capacity with apache+passenger, server saturated

2011-12-20 Thread Antonio Xanxess
Hi Brice, Thanks for the reply. I've been looking at what you sent me and now I think I meet all these requirements. Currently, each node accesses the settings every hour, which means that from 1927 to 1960 = 32 nodes checking every minute. I use Passenger with apache, maybe it's the best solution

[Puppet Users] Re: camptocamp / puppet-apache can't get it to work properly.

2011-12-20 Thread Will S. G.
I figured it out, I needed the puppet-common modules installed and included. Thank you for your help this morning. On Dec 20, 1:30 am, "Will S. G." wrote: > > IIRC you only get LSB Facts if you have the necessary LSB package, > > which is redhat-lsb on RHEL I think. > > That was it; redhat-lsb p

Re: [Puppet Users] Re: camptocamp / puppet-apache can't get it to work properly.

2011-12-20 Thread Luke Bigum
"Invalid resource type" is exactly what it sounds. Consider the following: file { "/etc/passwd: } woofwoof { "/tmp": } service { "httpd": } If you don't have any extra Custom Types or Defined Types on your Master, then the "woofwoof" resource type would give you the same error. What you'll wa

Re: [Puppet Users] Puppet capacity with apache+passenger, server saturated

2011-12-20 Thread Trevor Vaughan
One other thing to look at is how many nodes are hitting your server at once. If you're not using the ip_to_cron function from the Cron Patterns page, you might want to take a look at it. http://projects.puppetlabs.com/projects/1/wiki/Cron_Patterns Some people are also using MCollective to to a

[Puppet Users] custom facts loaded twice

2011-12-20 Thread Arnau Bria
Hi all, Every time I run puppet manually I see the message: # puppetd --test --server $SERVER info: Retrieving plugin info: Loading facts in hwtype info: Loading facts in odd_ip info: Loading facts in default_gateway info: Loading facts in hwtype info: Loading facts in odd_ip info: Loading facts

[Puppet Users] Re: [Puppet-dev] Re: When the lint accumulates...

2011-12-20 Thread Christopher Johnston
Is there a minimum version of ruby or puppet for it to work? I am open to running this on my entire puppet tree (close to 53 modules and growing). puppet-lint /etc/puppet/manifests /usr/lib/ruby/gems/1.8/gems/puppet-lint-0.1.7/bin/../lib/puppet-lint/plugin.rb:43: warning: parenthesize argument(s)

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread ollies...@googlemail.com
Thanks. I assume that the section in this:- http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Scalability Stating that is doesn't work for 0.25 & 2.6 also applies to the 2.7.9 release that is the latest ? Sharing an area via NFS/iSCSI/rsync'ing or whatever is potentially viable does an

Re: [Puppet Users] duplicate definition error

2011-12-20 Thread Chris Blumentritt
> > Basically, yes. It's all to do with how unqualified variables are resolved. > > Try "class { '::passenger': }" instead to qualify the class as being in > the root scope. > > HTH > > Dan > Thanks Dan that solved it. -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread Brice Figureau
On Tue, 2011-12-20 at 07:14 -0800, ollies...@googlemail.com wrote: > Thanks. > > I assume that the section in this:- > http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Scalability > > Stating that is doesn't work for 0.25 & 2.6 also applies to the 2.7.9 > release that is the latest ?

[Puppet Users] Re: [Puppet-dev] Re: When the lint accumulates...

2011-12-20 Thread david-dasz
it'd be very great if the various best-practice definitions in the puppet universe would match ;-) Have fun, David On Mon, 19 Dec 2011 22:11:53 +0100, Henrik Lindberg wrote: > I am also very interested in this to enable Geppetto to also provide the > same feedback. One difficulty I have faced i

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread ollies...@googlemail.com
> That's easy: dedicate two host to be CAs only. One is the hot standby of > the first one. You can either manually bring it up when the first one > fails, or use something like drbd+pacemaker to do it automatically. > Then have all your other masters run in "no ca" mode. Each can have a > differe

Re: [Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread Brice Figureau
On Tue, 2011-12-20 at 08:02 -0800, ollies...@googlemail.com wrote: > > That's easy: dedicate two host to be CAs only. One is the hot standby of > > the first one. You can either manually bring it up when the first one > > fails, or use something like drbd+pacemaker to do it automatically. > > Then

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread ollies...@googlemail.com
On Dec 20, 4:16 pm, Brice Figureau wrote: > On Tue, 2011-12-20 at 08:02 -0800, ollies...@googlemail.com wrote: > > > That's easy: dedicate two host to be CAs only. One is the hot standby of > > > the first one. You can either manually bring it up when the first one > > > fails, or use something

Re: [Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-20 Thread Brice Figureau
On Tue, 2011-12-20 at 08:25 -0800, ollies...@googlemail.com wrote: > > On Dec 20, 4:16 pm, Brice Figureau > wrote: > > On Tue, 2011-12-20 at 08:02 -0800, ollies...@googlemail.com wrote: > > > > That's easy: dedicate two host to be CAs only. One is the hot standby of > > > > the first one. You can

[Puppet Users] Bug #9388 prevents us from upgrading to 2.7.x

2011-12-20 Thread Dennis Jacobfeuerborn
Hi, can somebody who understands the puppet codebase take a look at bug #9388? I isolated the problem and it seems that the yaml cache files are not properly updated when mongrel is used. Cody Robertson added the the switch from GET to POST/PUT between 2.6.x and 2.7.x might be the problem and tha

Re: [Puppet Users] Bug #9388 prevents us from upgrading to 2.7.x

2011-12-20 Thread Brice Figureau
On Tue, 2011-12-20 at 08:32 -0800, Dennis Jacobfeuerborn wrote: > Hi, > can somebody who understands the puppet codebase take a look at bug > #9388? > I isolated the problem and it seems that the yaml cache files are not > properly updated when mongrel is used. > Cody Robertson added the the switch

Re: [Puppet Users] custom facts loaded twice

2011-12-20 Thread Nan Liu
On Tue, Dec 20, 2011 at 6:32 AM, Arnau Bria wrote: > Hi all, > > Every time I run puppet manually I see the message: > > # puppetd --test --server $SERVER > info: Retrieving plugin > info: Loading facts in hwtype > info: Loading facts in odd_ip > info: Loading facts in default_gateway > info: Load

Re: [Puppet Users] Bug #9388 prevents us from upgrading to 2.7.x

2011-12-20 Thread Michael Stahnke
Confirming that was fixed and is available in 2.7.8+ On Tue, Dec 20, 2011 at 8:59 AM, Brice Figureau wrote: > On Tue, 2011-12-20 at 08:32 -0800, Dennis Jacobfeuerborn wrote: >> Hi, >> can somebody who understands the puppet codebase take a look at bug >> #9388? >> I isolated the problem and it s

[Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Swampcritter
We are developing in-house RHEL VM provisioning (similar to Satellite/ Spacewalk) along with a customized kickstart template, but also including Puppet to handle the actual configuration of the environment. One thing we need to see is does Puppet have a variable that will deploy one module only onc

Re: [Puppet Users] Re: Puppet with Ruby1.9 issue

2011-12-20 Thread Patrick Carlisle
That should be fine as long as you're only running on Ruby 1.9. A fix for this issue went into our 2.7.x branch yesterday [ https://github.com/puppetlabs/puppet/commit/933844567fbe4078cb76f2c089ced1cb6c4170b7]. I'd love to hear if that solves your problems, although I think on 1.9.2 it's functional

[Puppet Users] Recommendation for general practice for application deployment?

2011-12-20 Thread Kenneth Lo
Hi: I have a pretty general high-level question regarding application deployment using puppet infrastructure. Being new with puppet here we have a pretty simple module setup where we are utilizing a basic package-file-service combo for an tomcat application server, and with some additional war

[Puppet Users] Windows

2011-12-20 Thread Brian Dunbar
Hi, Windows - Puppet - Documentation seems to be lacking. I may not be looking in the right place. Help? I'm starting a second effort [1] with Puppet at work. Got the master running, an agent (look we can change the login banner!). A fellow from the Windows server team wandered over. They l

[Puppet Users] certificate sync methods?

2011-12-20 Thread Ryan Bowlby
Hi All, We are going to setup two puppet masters, each will include the full stack of services. Apache as the frontend on both load balancing to the backend services on both. We will be using keepalived and VIP whose A record is puppet.domain. We would like to have the CA in active/active on the

Re: [Puppet Users] custom facts loaded twice

2011-12-20 Thread Walter Heck
I'm seeing this too, Debian 5.0.9 / puppet 2.7.9. On Tue, Dec 20, 2011 at 16:32, Arnau Bria wrote: > Hi all, > > Every time I run puppet manually I see the message: > > # puppetd --test --server $SERVER > info: Retrieving plugin > info: Loading facts in hwtype > info: Loading facts in odd_ip > i

Re: [Puppet Users] Re: [Puppet-dev] Re: When the lint accumulates...

2011-12-20 Thread Walter Heck
On 2011-19-12 21:00, James Turnbull wrote: >> >>> So what can you do to help? Well firstly help us identify any syntax, >>> language constructions, structures etc that have caused issues for you >>> or that when used result in errors or issues. You can let us know about >>> these in three ways >>>

[Puppet Users] Geppetto templates

2011-12-20 Thread Walter Heck - Tribily
Hello all, I was wondering if anyone happens to sit on a nice template library for geppetto they would be willing to share? kind regards, -- Walter Heck -- Co-founder @ Tribily (http://tribily.com) In-depth Server Monitoring as a Service -- Follow @tribily on Twitter and/or 'Like' our Facebook

[Puppet Users] a question about ensure file exists

2011-12-20 Thread chateau Xiao
hi all: if we need to ensure a file exist in a folder that not yet been created. puppet will simplely report error. for example: file { "/aaa/bbb/ccc/aaa" ensure => 'present'; } if directory ccc not yet been created, puppet client excute will get an error message. Does puppet have any fu

Re: [Puppet Users] Re: [Puppet-dev] Re: When the lint accumulates...

2011-12-20 Thread James Turnbull
Walter Heck wrote: > > > On 2011-19-12 21:00, James Turnbull wrote: > > So what can you do to help? Well firstly help us identify > any syntax, > language constructions, structures etc that have caused > issues for you > or tha

Re: [Puppet Users] Re: [Puppet-dev] Re: When the lint accumulates...

2011-12-20 Thread James Turnbull
Christopher Johnston wrote: > Is there a minimum version of ruby or puppet for it to work? I am open > to running this on my entire puppet tree (close to 53 modules and > growing). > > puppet-lint /etc/puppet/manifests > /usr/lib/ruby/gems/1.8/gems/puppet-lint-0.1.7/bin/../lib/puppet-lint/plugi

Re: [Puppet Users] Windows

2011-12-20 Thread Josh Cooper
Hi Brian, Puppet support on Windows has evolved considerably since you last tried. I recommend looking at this wiki page describing how to get started, what types are supported, and other Windows considerations: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows Josh On Thu, Dec 15,

Re: [Puppet Users] Puppet capacity with apache+passenger, server saturated

2011-12-20 Thread Jeffrey Watts
Here's how I do it, which IMHO works really well in most situations and is much simpler. No external scripts, no custom functions. We take the IP address of the system, strip out the periods, and modulo 30 it: $cron_time1= generate('/usr/bin/env', 'sh', '-c', "printf $(($(echo $::ipaddress | a

Re: [Puppet Users] certificate sync methods?

2011-12-20 Thread Aaron Grewell
In our case the ssldir is on a shared filesystem. On Mon, Dec 19, 2011 at 5:15 PM, Ryan Bowlby wrote: > Hi All, > > We are going to setup two puppet masters, each will include the full > stack of services. Apache as the frontend on both load balancing to > the backend services on both. We will be

Re: [Puppet Users] a question about ensure file exists

2011-12-20 Thread Jeffrey Watts
Any reason you can't do the following? file { "/aaa/bbb/ccc" ensure => 'directory', } Jeffrey. On Thu, Dec 15, 2011 at 9:43 PM, chateau Xiao wrote: > hi all: > if we need to ensure a file exist in a folder that not yet been created. > puppet will simplely report error. > for example: > >

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Craig White
On Dec 20, 2011, at 9:49 AM, Swampcritter wrote: > We are developing in-house RHEL VM provisioning (similar to Satellite/ > Spacewalk) along with a customized kickstart template, but also > including Puppet to handle the actual configuration of the > environment. One thing we need to see is does

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Aaron Grewell
If you really don't want ongoing configuration management then Puppet may not be your tool of choice. Cobbler perhaps? On Tue, Dec 20, 2011 at 10:41 AM, Craig White wrote: > > On Dec 20, 2011, at 9:49 AM, Swampcritter wrote: > >> We are developing in-house RHEL VM provisioning (similar to Satell

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Daniel Pittman
On Tue, Dec 20, 2011 at 08:49, Swampcritter wrote: > We are developing in-house RHEL VM provisioning (similar to Satellite/ > Spacewalk) along with a customized kickstart template, but also > including Puppet to handle the actual configuration of the > environment. One thing we need to see is doe

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Scott Merrill
On Tue, Dec 20, 2011 at 11:49 AM, Swampcritter wrote: > We are developing in-house RHEL VM provisioning (similar to Satellite/ > Spacewalk) along with a customized kickstart template, but also > including Puppet to handle the actual configuration of the > environment. One thing we need to see is d

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Nan Liu
On Tue, Dec 20, 2011 at 8:49 AM, Swampcritter wrote: > We are developing in-house RHEL VM provisioning (similar to Satellite/ > Spacewalk) along with a customized kickstart template, but also > including Puppet to handle the actual configuration of the > environment. One thing we need to see is do

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Dan White
An easy way to avoid messing up a development box as you describe is to not run the puppet client on it. Contrarywise, how about using tags ? http://projects.puppetlabs.com/projects/1/wiki/Using_Tags “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is th

Re: [Puppet Users] certificate sync methods?

2011-12-20 Thread Dan White
I am working on an idea for using my Cobbler-Server/PuppetMaster as a CA for TLS/SSL (R)syslogging where the CA generates all the certs. That way, bi-directional cert sync in unnecessary. The PuppetMaster becomes the CertMaster. “Sometimes I think the surest sign that intelligent life exists

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Dan White
- Nan Liu wrote: > You can use a completely separate bootstrap environment if it's > significantly different. > # onetime > puppet agent --environment bootstrap > # later on > puppet agent --environment production > > Or you can use a custom fact. Easiest way is either environment > variable

[Puppet Users] Network config module won't work. -Mac address errors

2011-12-20 Thread Luke
Hello, I created a module for modifying the base network settings on a machine. However no matter what changes I make it keeps giving me the error "has different MAC address than expected, ignoring" when the network tries to startup. I am testing this out on the puppet learning VM. Does anyone s

Re: [Puppet Users] Network config module won't work. -Mac address errors

2011-12-20 Thread Charles Buckley
Hello, What are the VM's definitions of its network interfaces? Also, if you are trying Linux, what are the contents of /etc/udev/rules.d/70-persistent-net.rules ? Charles Buckley On Tue, Dec 20, 2011 at 1:41 PM, Luke wrote: > Hello, > > I created a module for modifying the base network

Re: [Puppet Users] Re: [Puppet-dev] Re: When the lint accumulates...

2011-12-20 Thread Henrik Lindberg
On 2011-20-12 16:21, Walter Heck wrote: looks nice so far, wish we could have this in geppetto soon :) cheers, -- Walter Heck Just a quick note regarding Geppetto in this respect, and to let you know what the plans are (I am not trying to hijack this thread :)... I follow the lint project

Re: [Puppet Users] Can Puppet be configured to one-time deployment for modules?

2011-12-20 Thread Ohad Levy
On Tue, Dec 20, 2011 at 6:49 PM, Swampcritter wrote: > We are developing in-house RHEL VM provisioning (similar to Satellite/ > Spacewalk) along with a customized kickstart template, but also > including Puppet to handle the actual configuration of the > While being biased, I would recommend you

[Puppet Users] script to find non-puppet systems

2011-12-20 Thread Corey Osman
Hi, Just curious if anybody had written a script to find systems that don't have puppet installed by doing a port scan or something else. I would like to have my puppetmaster send an email when it finds a system that doesn't have puppet installed and possibly take action by installing it. Does