[Puppet Users] augeas and /etc/securetty

2010-09-06 Thread hai wu
Hi, I need to add one line to /etc/securetty, say it needs to be ttyS1. Do not add it if ttyS1 already exists in file /etc/securetty. How to achieve this using puppet module in puppet 2.5? This file is different than the other examples using augeas, this one only has value per line, not name-val p

Re: [Puppet Users] augeas and /etc/securetty

2010-09-06 Thread Daniel Pittman
hai wu writes: > Hi, I need to add one line to /etc/securetty, say it needs to be ttyS1. Do > not add it if ttyS1 already exists in file /etc/securetty. I strongly suggest you copy into place a file that contains exactly the content you want: editing files in place is an invitation to screw thin

Re: [Puppet Users] augeas and /etc/securetty

2010-09-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > How to achieve this using puppet module in puppet 2.5? This file is > different than the other examples using augeas, this one only has value per > line, not name-val pair. you can find and example here: http://git.puppet.immerda.ch/?p=module-virtua

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Martijn Grendelman
On 05-09-10 12:02, Marcin Owsiany wrote: > On Tue, Aug 31, 2010 at 04:03:35PM +0200, Martijn Grendelman wrote: >> What I would like, is for Puppet to run `aptitude update` before it >> installs or upgrades packages. > > FYI you're likely to encounter problems when using aptitude provider for > pac

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Héctor Rivas Gándara
On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang wrote: > Can someone tell me why, when I restart puppet on the client, I get this: > > Sep  4 20:41:49 s_...@db01.pax.livegamer.com puppet-agent[26756]: > Could not retrieve catalog from remote server: Error 400 on SERVER: > Syntax error at ';'; e

[Puppet Users] SSLVerifyClient required with Apache+Mongrel

2010-09-06 Thread Héctor Rivas Gándara
Hello, In the wiki "Using_Mongrel" http://projects.reductivelabs.com/projects/puppet/wiki/Using_Mongrel it proposes a configuration with the option: SSLVerifyClient require But with this option set I am not able to register new clients. When I run a new puppet client, I get the error: warning:

Re: [Puppet Users] SSLVerifyClient required with Apache+Mongrel

2010-09-06 Thread Ohad Levy
by enabling require, you basically say - the client is already suppose to have a certificate that I could verify. You can either, set the different certificate request path to not require verification, or disable it (unless you have another ca server or another way of distributing the certificates

Re: [Puppet Users] SSLVerifyClient required with Apache+Mongrel

2010-09-06 Thread Héctor Rivas Gándara
On Mon, Sep 6, 2010 at 12:52 PM, Ohad Levy wrote: >> But if I set in apache configuration: >> >> SSLVerifyClient optional >> >> client is able to establish SSL connection and the certificate request >> can be signed from puppetmaster. > by enabling require, you basically say - the client is alre

Re: [Puppet Users] SSLVerifyClient required with Apache+Mongrel

2010-09-06 Thread Ohad Levy
Yes 2010/9/6 Héctor Rivas Gándara > On Mon, Sep 6, 2010 at 12:52 PM, Ohad Levy wrote: > > >> But if I set in apache configuration: > >> > >> SSLVerifyClient optional > >> > >> client is able to establish SSL connection and the certificate request > >> can be signed from puppetmaster. > > > by e

[Puppet Users] Puppet (0.24.4) mounts cifs filesystems on Linux twice!

2010-09-06 Thread ere
I know this version of puppet is ancient, but I don't have the opportunity to replace it as of now. The problem is that the mount resources appears to be mounted twice on the host in test, but the qass host is ok. Test and Qass is very similar, both are RHEL 5.5 with the same errata installed and

[Puppet Users] error in foreman, seem to be missing a column in DB

2010-09-06 Thread Steve Neuharth
I've been trying to get foreman to work and I'm getting the following error: Processing DashboardController#index (for 10.10.32.10 at 2010-09-06 08:50:06) [GET] Parameters: {"action"=>"index", "controller"=>"dashboard"} ActiveRecord::StatementInvalid (Mysql::Error: Unknown column 'enabled' in 'w

Re: [Puppet Users] error in foreman, seem to be missing a column in DB

2010-09-06 Thread Ohad Levy
You probably updated from source (git?) and forgot to migrate your database: see http://theforeman.org/projects/foreman/wiki/Upgrade_instructions#Step-4-Update-the-database Ohad On Mon, Sep 6, 2010 at 5

[Puppet Users] Re: error in foreman, seem to be missing a column in DB

2010-09-06 Thread Steve Neuharth
ah, yes, that did the trick. I got too excited once I got foreman running in passenger and just started clicking on stuff when I should have completed the installation instructions ;) thanks ohad, -s On Sep 6, 9:18 am, Ohad Levy wrote: > You probably updated from source (git?) and forgot to migr

[Puppet Users] for each in puppet templates

2010-09-06 Thread lists
Hi all, I'm sure there's an easy way to do this, however I can't work it out! I've got a custom fact named "mysql_repl_dbs" and is has the databases that a host needs to replicate as a comma separated list. I want my template for my.cnf to add a replicate-do-db= statement for each of these

[Puppet Users] puppet-announce

2010-09-06 Thread Bostjan Skufca
Hi! Is there some a puppet-announce mailing list available? Or any other low-volume new-version-has-just-been-released notification method? If there is not any available, I recommend creating one. Best regards, b. -- You received this message because you are subscribed to the Google Groups "Pu

[Puppet Users] Re: puppet-announce

2010-09-06 Thread Bostjan Skufca
I kindly request appologies for hasty posting. "some a puppet- announce" should read as "something like a puppet-announce". On 6 sep., 18:39, Bostjan Skufca wrote: > Hi! > > Is there some a puppet-announce mailing list available? Or any other > low-volume new-version-has-just-been-released notifi

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Nigel Kersten
On Tue, Aug 31, 2010 at 3:35 PM, Martijn Grendelman wrote: > But for this to work, the Puppet run needs to run aptitude update to > pick up the new package name. Running the update periodically isn't > enough, but running an update on every catalog run is just overkill. I understand your concer

Re: [Puppet Users] Re: puppet-announce

2010-09-06 Thread James Turnbull
Bostjan Skufca wrote: > I kindly request appologies for hasty posting. "some a puppet- > announce" should read as "something like a puppet-announce". > > On 6 sep., 18:39, Bostjan Skufca > wrote: >> Hi! >> >> Is there some a puppet-announce mailing list available? Or any other >> low-volume new-v

[Puppet Users] Re: puppet-announce

2010-09-06 Thread Bostjan Skufca
Crap :) Tnx, b. On 6 sep., 19:38, James Turnbull wrote: > Bostjan Skufca wrote: > > I kindly request appologies for hasty posting. "some a puppet- > > announce" should read as "something like a puppet-announce". > > > On 6 sep., 18:39, Bostjan Skufca > > wrote: > >> Hi! > > >> Is there some a

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Silviu Paragina
On 01.09.2010 01:35, Martijn Grendelman wrote: Mathias Gug schreef: I am not sure how I said I want to do an update before /every/ package install. Once at the start of a Puppet-run, /IF/ one or more packages need to be installed, would suffice. You may run into a chicken-egg problem. Packages

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 10:56 AM, Silviu Paragina wrote: > As it was said earlier if you have a ensure => latest you should probably > have (also) a cron job for updates. I think it's much more difficult to manage multiple schedules, and to deal with inconsistencies when people manually run Puppe

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Douglas Garstang
2010/9/6 Héctor Rivas Gándara : > On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang > wrote: > >> Can someone tell me why, when I restart puppet on the client, I get this: >> >> Sep  4 20:41:49 s_...@db01.pax.livegamer.com puppet-agent[26756]: >> Could not retrieve catalog from remote server: Erro

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread James Turnbull
Douglas Garstang wrote: > 2010/9/6 Héctor Rivas Gándara : >> On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang >> wrote: >> >>> Can someone tell me why, when I restart puppet on the client, I get this: >>> >>> Sep 4 20:41:49 s_...@db01.pax.livegamer.com puppet-agent[26756]: >>> Could not retrieve

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Silviu Paragina
On 06.09.2010 21:03, Nigel Kersten wrote: On Mon, Sep 6, 2010 at 10:56 AM, Silviu Paragina wrote: As it was said earlier if you have a ensure => latest you should probably have (also) a cron job for updates. I think it's much more difficult to manage multiple schedules, and to deal with inc

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Douglas Garstang
On Mon, Sep 6, 2010 at 11:31 AM, James Turnbull wrote: > Douglas Garstang wrote: >> 2010/9/6 Héctor Rivas Gándara : >>> On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang >>> wrote: >>> Can someone tell me why, when I restart puppet on the client, I get this: Sep  4 20:41:49 s_...@d

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread James Turnbull
Douglas Garstang wrote: > > James, I'm not even sure why you focused on the error itself. R.I > clearly pointed out that he's seen this issue countless times. It > makes debugging kinda challenging. I focused on it because you claimed it was an issue was with 2.6.x. It is not. I agree this might

[Puppet Users] Cross definition dependancies.

2010-09-06 Thread Douglas Garstang
Yikes. I have two different definitions, one installing components for jboss, and the other installing components for tomcat. I've used a definition rather than a class, because we are running multiple copies of each. I have files and packages in jboss that are needed by files in tomcat. Since obj

[Puppet Users] Re: Cross definition dependancies.

2010-09-06 Thread Douglas Garstang
On Mon, Sep 6, 2010 at 12:12 PM, Douglas Garstang wrote: > Yikes. > > I have two different definitions, one installing components for jboss, > and the other installing components for tomcat. I've used a definition > rather than a class, because we are running multiple copies of each. I > have file

Re: [Puppet Users] for each in puppet templates

2010-09-06 Thread Thomas Bellman
li...@truthisfreedom.org.uk wrote: <% mysql_repl_dbs.split[','].each do | dbname | -%> replicate-do-db=<%=dbname%> <% end -%> I get an error stating that puppet cannot convert a String to an Integer. Function calls in Ruby use round parenthesis or none at all, not square parenthesis. Square

Re: [Puppet Users] Re: Cross definition dependancies.

2010-09-06 Thread Brian Gallew
There are two standard answers for conflicting items like this. 1) Break out the conflicting items into their own class/definition. 2) Learn to love virtual resources and realize them as necessary. On Mon, Sep 6, 2010 at 12:30 PM, Douglas Garstang wrote: > On Mon, Sep 6, 2010 at 12:12 PM, Douglas

Re: [Puppet Users] for each in puppet templates

2010-09-06 Thread Matthew Macdonald-Wallace
Doh! I knew it would be something obvious. Thanks M. On 6 Sep 2010 20:55, "Thomas Bellman" wrote: li...@truthisfreedom.org.uk wrote: > <% mysql_repl_dbs.split[','].each do | dbname | -%> > replicat... Function calls in Ruby use round parenthesis or none at all, not square parenthesis. Square

[Puppet Users] Could not parse configuration file: StoreConfigs not supported without ActiveRecord 2.1 or higher

2010-09-06 Thread Steve Neuharth
I just can't seem to get past this error. I have the following system config: mcp puppet # gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0) actionpack (3.0.0) activemodel (3.0.0) activerecord (3.0.0) activeresource (3.0.0) activesupport (3.0.0) arel (1.0.1) builder (2.1.2) bundl

[Puppet Users] Just upgraded to 2.6 and having trouble with file serving.

2010-09-06 Thread Steve Neuharth
I don't seem to be able to get files from /plugins on my puppetmaster: r...@a1 puppet puppetd --test notice: Ignoring --listen on onetime run info: Retrieving plugin err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet:

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 11:52 AM, Silviu Paragina wrote: >  On 06.09.2010 21:03, Nigel Kersten wrote: >> >> On Mon, Sep 6, 2010 at 10:56 AM, Silviu Paragina >>  wrote: >> >>> As it was said earlier if you have a ensure =>  latest you should >>> probably >>> have (also) a cron job for updates. >> >>

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Héctor Rivas Gándara
> Can someone tell me why, when I restart puppet on the client, I get this: > > Sep  4 20:41:49 s_...@db01.pax.livegamer.com puppet-agent[26756]: > Could not retrieve catalog from remote server: Error 400 on SERVER: > Syntax error at ';'; expected '}' at > /etc/puppet/module

Re: [Puppet Users] Re: Cross definition dependancies.

2010-09-06 Thread Douglas Garstang
On Mon, Sep 6, 2010 at 1:05 PM, Brian Gallew wrote: > There are two standard answers for conflicting items like this. > 1) Break out the conflicting items into their own class/definition. > 2) Learn to love virtual resources and realize them as necessary. > Brian, For (1), I don't see how that w

Re: [Puppet Users] Re: Cross definition dependancies.

2010-09-06 Thread Douglas Garstang
On Mon, Sep 6, 2010 at 2:21 PM, Douglas Garstang wrote: > On Mon, Sep 6, 2010 at 1:05 PM, Brian Gallew wrote: >> There are two standard answers for conflicting items like this. >> 1) Break out the conflicting items into their own class/definition. >> 2) Learn to love virtual resources and realize

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 11:53 AM, Douglas Garstang wrote: > On Mon, Sep 6, 2010 at 11:31 AM, James Turnbull wrote: >> Douglas Garstang wrote: >>> 2010/9/6 Héctor Rivas Gándara : On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang wrote: > Can someone tell me why, when I restart p

Re: [Puppet Users] Re: Cross definition dependancies.

2010-09-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > require => Jboss::server::instance["${name}"] it's Jboss::Server::Instance -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyFjAMACgkQbwltcAfKi3/YBQCdGXgq

Re: [Puppet Users] Creating tests for the yum package provider

2010-09-06 Thread Matt Robinson
Hi Oliver, Dan Bode emailed me to let me know that he has already looked into this a bit and that he will be on site to work with you this next week. I'll look further into these tests if he doesn't have the time to see this through. Matt On Fri, Sep 3, 2010 at 4:20 PM, Matt Robinson wrote: > Hi

Re: [Puppet Users] Could not parse configuration file: StoreConfigs not supported without ActiveRecord 2.1 or higher

2010-09-06 Thread James Turnbull
Steve Neuharth wrote: > I just can't seem to get past this error. I have the following system > config: > What platform is this? Regards James -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Use

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Douglas Garstang
On Mon, Sep 6, 2010 at 4:52 PM, Nigel Kersten wrote: > On Mon, Sep 6, 2010 at 11:53 AM, Douglas Garstang > wrote: >> On Mon, Sep 6, 2010 at 11:31 AM, James Turnbull wrote: >>> Douglas Garstang wrote: 2010/9/6 Héctor Rivas Gándara : > On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang >>>

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 6:09 PM, Douglas Garstang wrote: > On Mon, Sep 6, 2010 at 4:52 PM, Nigel Kersten wrote: >> On Mon, Sep 6, 2010 at 11:53 AM, Douglas Garstang >> wrote: >>> On Mon, Sep 6, 2010 at 11:31 AM, James Turnbull >>> wrote: Douglas Garstang wrote: > 2010/9/6 Héctor Rivas

[Puppet Users] installing pear packages

2010-09-06 Thread mark ardiente
Hi, Is there a pear package provider? How do I install pear packages using puppet? Thanks, Mark -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this gr

[Puppet Users] Confused about virtual Resources

2010-09-06 Thread Douglas Garstang
I'm confused about virtual resources. The documentation on the Puppet Labs web site isn't very clear, but, as is often the case, by trial and error, I thought I had it figured out. It seemed like you could define a resource as virtual in one definition, realize it in that definition, and then requi

[Puppet Users] ANNOUNCE: Puppet 2.6.1 - Release Candidate 4 available!

2010-09-06 Thread James Turnbull
In the long Puppet tradition of fast releases and agile iteration comes the 2.6.1 release! The fourth (and hopefully final!) release candidate is now available and is a maintenance release in the 2.6.x branch. It contains a number of functional and performance enhancements including preliminary

Re: [Puppet Users] SSLVerifyClient required with Apache+Mongrel

2010-09-06 Thread Thomas Guthmann
Hi, There is no (real) point of using SSLVerifyClient Require... I encountered the same problem when I started to use Puppet (2.6.0). When you have no real knowledge about Puppet, it takes some time to understand the whole shebang and it's even more confusing when the documentation tend to be