[Puppet Users] Re: Solaris SSL error

2009-02-11 Thread chakkerz
OK, new error. Regardless of which ruby i use, i get the following if i do a puppetca --generate puppetsun... and then transfer the files. (also this doesn't seem to care too much about permissions, but the last time i did it, i was very careful to replicate the permissions from the master). r...

[Puppet Users] Re: basic question about template conditionals

2009-02-11 Thread Eric Heydrick
Here's how we generate access.conf. We define a type that adds and removes access.conf entries and use this type in the node that we need a particular group to be able to login to. class pam { $access = "/etc/security/access.conf" exec {"prep access.conf": command => "echo - : ALL :

[Puppet Users] Schedule oddity

2009-02-11 Thread Matt McLeod
I have the following set up: schedule {nightly: period => daily, range => "18 - 23", repeat => 1 } define deadlypkg { tag("package") $pkgrepo="/staging/PRODUCTION/deadly" package{"$name": source => "$pkgrepo/$name.pkg", ensure =

[Puppet Users] Re: Installing on OS X server 10.4.11

2009-02-11 Thread Daniel Koblas
Thanks a bunch, this has helped immensely. I can see that a lot of this is very basic and simple config, but when you're first starting out it's not entirely obvious how to set this up to run for OS X server. Now I've got the daemon running and successfully doing some basic manipulation

[Puppet Users] Re: basic question about template conditionals

2009-02-11 Thread Steven Nemetz
I do a lot of this and usually use regular expression to handle it A couple examples: <% if hostname =~ /server[135]/ %> <% if hostname =~ /dns1001|mail2002|web1003/ %> Steven -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Mic

[Puppet Users] Re: Am I the only one with lots of problems with puppet?

2009-02-11 Thread Arnau Bria
On Wed, 11 Feb 2009 13:40:56 -0800 Paul Lathrop wrote: > > Arnau, Hi Paul, > Please don't be offended by my response, as you requested we not be > offended by your post. I won't, don't worry. I hope you or other developers are not angry with me... I'm just explaining my experience with this

[Puppet Users] Re: Solaris SSL error

2009-02-11 Thread Rob Chanter
On Wed, Feb 11, 2009 at 5:12 PM, chakkerz wrote: > This is after clearing /var/lib/puppet , restarting the daemon and re- > signing the cert. > > the server has: > [r...@puppetbeta /]# puppetca --list --all > + puppetsun.its.uq.edu.au > + puppetbeta.its.uq.edu.au > I had some similar trouble on

[Puppet Users] Re: selinux problem? which appeared for "no apparent reason" and which I can't kilil

2009-02-11 Thread chakkerz
Hello there So, -> what files did you change in puppet, and the OS itself, -> what's the output of sestatus? Easiest way to start is probably to do a `setenforce 0` (which will put you into permissive) and see if that fixes things. Also ensure auditd and setroubleshoot are running and check the

[Puppet Users] selinux problem? which appeared for "no apparent reason" and which I can't kilil

2009-02-11 Thread David Dyer-Bennet
Darned thing is suddenly failing. We had a reboot last night, and I changed a couple of files today too, so either one could somehow be responsible. But I can't figure out how from this crash. First I noticed that my changes weren't updating. Then I noticed that puppet wasn't running. Then I

[Puppet Users] Re: basic question about template conditionals

2009-02-11 Thread James Turnbull
Michael Conigliaro wrote: > Hello, > > Sorry if this ends up getting posted twice. I originally sent this > about 3 hours ago, and I never saw it get posted, so I'm trying again. The list is moderated to new posters to stop spam. I release emails 2-3 times a day as does Luke and Andrew. Regard

[Puppet Users] Re: basic question about template conditionals

2009-02-11 Thread Paul Lathrop
Michael, Templates are ERB, which uses pure ruby. I think what you are doing should work in concept, thought I think your syntax is a bit off. --Paul On Wed, Feb 11, 2009 at 10:36 AM, Michael Conigliaro wrote: > > Hello, > > Sorry if this ends up getting posted twice. I originally sent this >

[Puppet Users] Re: Am I the only one with lots of problems with puppet?

2009-02-11 Thread Paul Lathrop
Arnau, Please don't be offended by my response, as you requested we not be offended by your post. I've watched a lot of your posts to the list, and the behavior I'm observing is when you run into errors, you don't seem to step back and try to take the time to understand them. Instead, it appears

[Puppet Users] basic question about template conditionals

2009-02-11 Thread Michael Conigliaro
Hello, I want to use Puppet to manage /etc/access.conf on our managed Linux servers. The problem is that the servers on our network will be accessed by different groups of users, so I will need slightly different configurations for each server. My first impression is that I probably don't want

[Puppet Users] basic question about template conditionals

2009-02-11 Thread Michael Conigliaro
Hello, Sorry if this ends up getting posted twice. I originally sent this about 3 hours ago, and I never saw it get posted, so I'm trying again. I want to use Puppet to manage /etc/access.conf on our managed Linux servers. The problem is that the servers on our network will be accessed by diff

[Puppet Users] Re: Am I the only one with lots of problems with puppet?

2009-02-11 Thread Robin Lee Powell
On Wed, Feb 11, 2009 at 07:25:54PM +0100, Arnau Bria wrote: > I started with a simple scenario, a couple of nodes with a server, and > few classes, all worked fine... But one day I faced first problem: > > err: Could not retrieve catalog: Could not parse for environment > production > > after re

[Puppet Users] Am I the only one with lots of problems with puppet?

2009-02-11 Thread Arnau Bria
Hi all, I'm facing many problems for last days with my puppet server/client. Those who read mail list may know that. I'm not sure if it's just my and my poor knowledge on puppet (I must say in my defense that I have read many wiki docs and I have bough the book, ok, it's not enough, if I'm a ba

[Puppet Users] Re: Definitions, Classes, and Nodes; Oh My!

2009-02-11 Thread Paul Lathrop
Benoit, This doesn't seem like a hack to me. I think this is the correct way to approach the problem you describe. --Paul On Wed, Feb 11, 2009 at 5:05 AM, Benoit Decherf wrote: > Thanks for that very good explication ! > > I still have a doubt : How to manage property "per instance". > In a li

[Puppet Users] Re: autoloading of modules

2009-02-11 Thread Luke Kanies
On Feb 11, 2009, at 4:42 AM, Benoit Decherf wrote: > > Hi, > > I create a module call "MyModule". > > Then if I try to include a class in that module : > include MyModule::myClass > This doesn't works if I don't import the module first. > > BUT If my module is called my_module (in lower case), th

[Puppet Users] Re: autoloading of modules

2009-02-11 Thread Luke Kanies
On Feb 11, 2009, at 4:42 AM, Benoit Decherf wrote: > > Hi, > > I create a module call "MyModule". > > Then if I try to include a class in that module : > include MyModule::myClass > This doesn't works if I don't import the module first. > > BUT If my module is called my_module (in lower case), th

[Puppet Users] Re: Overriding some files in a symlinked directory

2009-02-11 Thread Luke Kanies
On Feb 6, 2009, at 4:23 AM, Mark Drayton wrote: > This is a bit nasty -- I'd need to figure out a way to make the exec > only run once or each Puppet run will clobber my overridden files and > then replace them again. If I do work out how to make it only run once > Puppet won't update the instanc

[Puppet Users] Re: Setting ownership or mode of files created by nagios types

2009-02-11 Thread Joe McDonagh
Use a default acl that gives nagios user and nagios group access to the whole nagios tree. Peter Meier wrote: > Hi > > >> I'd really appreciate some help with this, I've tried to find the >> answer in the source code but I haven't had much luck finding an >> answer. Is there really no one th

[Puppet Users] Re: Definitions, Classes, and Nodes; Oh My!

2009-02-11 Thread Benoit Decherf
Thanks for that very good explication ! I still have a doubt : How to manage property "per instance". In a little more complicated case, an instance of a webapp have to connect to a given database. node node1 { $countries=["fr", "uk"] include webserver } and my webserver class: class

[Puppet Users] autoloading of modules

2009-02-11 Thread Benoit Decherf
Hi, I create a module call "MyModule". Then if I try to include a class in that module : include MyModule::myClass This doesn't works if I don't import the module first. BUT If my module is called my_module (in lower case), that works. I don't see anywhere in the puppet documentation where the

[Puppet Users] Re: Setting ownership or mode of files created by nagios types

2009-02-11 Thread Peter Meier
Hi > I'd really appreciate some help with this, I've tried to find the > answer in the source code but I haven't had much luck finding an > answer. Is there really no one that uses the built in nagios > resources? I do and as mentioned before, use a wrapper define which takes care of the file

[Puppet Users] Could not find client certificate or request for td011.pic.es

2009-02-11 Thread Arnau Bria
Hi all, puppet server is not able to find signed certificates: ]# puppetca --clean td011.pic.es Could not find client certificate or request for td011.pic.es But the cert is installed: # locate td011.pic.es|grep pem /var/lib/puppet/ssl/ca/signed/td011.pic.es.pem And, If I go to the node, I rein

[Puppet Users] Re: filebucket retrieval

2009-02-11 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoff Crompton wrote: > Hi, > > While at LCA this year I was talking to James Turnbull, and I think he > said it was possible to > a) pull files off a puppet client to the puppet master > b) push those files out to other puppet clients > Not fi

[Puppet Users] Re: filebucket retrieval

2009-02-11 Thread Jason Rojas
On Feb 10, 2009, at 9:17 PM, Geoff Crompton wrote: > > Hi, > > While at LCA this year I was talking to James Turnbull, and I think he > said it was possible to > a) pull files off a puppet client to the puppet master > b) push those files out to other puppet clients > > I've been reading up on