[Puppet Users] Re: file list

2009-03-19 Thread Rene
OK, that is what I thought. Then it would be a good practice to use the full path of the file as title, as I only see the title in yaml. On Mar 19, 10:53 pm, Luke Kanies wrote: > On Mar 12, 2009, at 12:50 PM, Rene wrote: > > > > > Hi > > > Is it possible to get a file list, that are managed / ed

[Puppet Users] Re: exec issue

2009-03-19 Thread nick . maystrenko
On Fri, 20 Mar 2009 06:18:42 +0500, jrojas wrote: Am I understand you right? I must exec this string "/usr/bin/chpass -p \$1\$HvjTWzzz\$jF.G/mEbh7IOtpCdUPUTO1 pt_" If yes, so it is not work(( PS This is my "new" config string which NOT working as I want: exec { "/usr/bin/chpass -p \$1\$HvjTW

[Puppet Users] Re: exec issue

2009-03-19 Thread jrojas
You have to escape the dollar signs or quote the text specifically. Otherwise puppet will assume that: "$1$HvjTWzzz$jF.G/mEbh7IOtpCdUPUTO1 pt_" will break up into the following variables: $1 $HvjTWzzz $jF Which is why you get the weird line. --~--~-~--~~~---~--~~ Y

[Puppet Users] Re: Possible bug in 0.24.6 -- crashing puppetmasterd.

2009-03-19 Thread Trevor Hemsley
Luke Kanies wrote: > You should be able to do this with something like: > > # puppet.conf > configfile = /etc/puppet/puppet.conf{owner = root, group = ...} > > I'm typing from not-very-good memory here; I don't remember if that's > the right param, or if you need '=' or '=>' here. The > Con

[Puppet Users] Re: definitions reuse

2009-03-19 Thread thomas
> Can you elaborate on where the reuse is necessary? In my case in the sections of httpd.conf. I'd love to find a way to have some 'abstract' modssl, modproxy,modesc sections and derive from it for inbound/outbound traffic specifc configuration snippets assembling appropriate httpd.conf at the en

[Puppet Users] Re: Possible bug in 0.24.6 -- crashing puppetmasterd.

2009-03-19 Thread Luke Kanies
On Mar 19, 2009, at 4:56 PM, Trevor Hemsley wrote: > > I tried it because I wanted to change the perms on > /etc/puppet/puppet.conf to 600. > > class puppetperms >{ >file {"/etc/puppet/puppet.conf": >owner => root, >group => root, >m

[Puppet Users] Re: imports from default node called when default node not used?

2009-03-19 Thread Luke Kanies
On Mar 19, 2009, at 3:11 PM, Rob McBroom wrote: > > On 2009-Mar-19, at 2:20 PM, Gajillion wrote: > >> My understanding was that the default node was only used when a node >> did not match any other way. This appears to be correct for anything >> included via "include", however, it appears that a

[Puppet Users] Re: defined() ambiguity?

2009-03-19 Thread Luke Kanies
On Mar 19, 2009, at 5:21 AM, Bruce Richardson wrote: > > On Thu, Mar 19, 2009 at 10:12:39AM +, Bruce Richardson wrote: >> This isn't an idle line of thought, by the way. There's obviously >> a lot >> of interest in class/module dependencies, which are not easy to >> create >> or test.

[Puppet Users] Re: Custom Types and autonotify?

2009-03-19 Thread Luke Kanies
On Mar 18, 2009, at 1:23 PM, Jim Pirzyk wrote: > I have been working on full feature syslog type and providers. I > have a few questions about how to do things. > > 1) How do I have a type 'implement' functionality from another type. > > For example, I have these 2 types: > > file {"/var/log/ipf

[Puppet Users] Re: nodes missing under ssl/ca/signed/

2009-03-19 Thread Luke Kanies
On Mar 17, 2009, at 10:05 AM, Arnau Bria wrote: > > Hi, > > I've been cleaning some nodes from my server (puppetca --clean) and I > wanted to see how many I had under /etc/puppet/ssl/ca/signed/. > I had a surprise when I noticed that I had less there than in my pbs, > so I looked for the missing

[Puppet Users] Re: problems with "generate"

2009-03-19 Thread Luke Kanies
On Mar 17, 2009, at 3:47 AM, Arnau Bria wrote: > > Hi all, > > I moved my clients' daemon to a cron using: > http://reductivelabs.com/trac/puppet/wiki/Recipes/cron > > My first attempt: > # /usr/bin/ruby /usr/sbin/puppetd --server=gridinstall.pic.es --test > err: Could not retrieve catalog: Faile

[Puppet Users] Re: definitions reuse

2009-03-19 Thread Luke Kanies
On Mar 13, 2009, at 5:11 AM, thomas wrote: > > Good morning, > > I am trying to wrap my head around following problem. It would be > wonderful to be able to reuse definitions applying either inheritance > (ideally) or mix-ins but it seems that I have hit a puppet's "by > design" limitation. > > I

[Puppet Users] Re: Puppet and Windows

2009-03-19 Thread Luke Kanies
On Mar 17, 2009, at 12:21 PM, Tom Brown wrote: > > I see this is in the FAQ's but i wonder if the answer is still the > same - > > Is it still true that puppet will not work on a windows machine? If > this > is true has there been any talk of this work happening at all? I'd still like it to

[Puppet Users] Re: file, recurse and managing subdirectories

2009-03-19 Thread Luke Kanies
On Mar 17, 2009, at 3:25 PM, Peter Meier wrote: > > Hi > > let's assume we have the following source dir: > > cd /tmp > mkdir src src/a/b -p > echo "blub1" > src/file1 > echo "blub2" > src/a/file2 > echo "blub3" > src/a/b/file3 > echo "blub4" > src/a/b/file4 > > and we have the following manifest

[Puppet Users] Re: Possible bug in 0.24.6 -- crashing puppetmasterd.

2009-03-19 Thread Trevor Hemsley
I tried it because I wanted to change the perms on /etc/puppet/puppet.conf to 600. class puppetperms { file {"/etc/puppet/puppet.conf": owner => root, group => root, mode => 600 } } I ran puppetd --test --tag

[Puppet Users] Re: file list

2009-03-19 Thread Luke Kanies
On Mar 12, 2009, at 12:50 PM, Rene wrote: > > Hi > > Is it possible to get a file list, that are managed / edited by > puppet, do I have to parse the yaml file on the client manualy and > look for file entries? You should be able to write a small chunk of ruby that loads the yaml: catalog = YA

[Puppet Users] Re: Possible bug in 0.24.6 -- crashing puppetmasterd.

2009-03-19 Thread Andrew Shafer
Can you reproduce? Were you running puppetmasterd with --debug --trace? On Thu, Mar 19, 2009 at 6:01 AM, Trevor Vaughan wrote: > > So, for whatever insane reason, I tried to have Puppet set the > permissions on some files in /etc/puppet such as autosign.conf and > fileserver.conf. > > I had pu

[Puppet Users] Re: imports from default node called when default node not used?

2009-03-19 Thread Rob McBroom
On 2009-Mar-19, at 2:20 PM, Gajillion wrote: > My understanding was that the default node was only used when a node > did not match any other way. This appears to be correct for anything > included via "include", however, it appears that anything included via > "import" is pulled in regardless o

[Puppet Users] Re: Experiences with RHN Satellite?

2009-03-19 Thread Gajillion
Gah! Just noticed you said you've got 50 servers. Don't bother. It's not worth the expense or the hassle. 500 servers? 5,000 servers? Completely different story. Gajillion wrote: > Thought I'd chime in here since most of these comments seem to be > negative. This is the second organization

[Puppet Users] Re: Experiences with RHN Satellite?

2009-03-19 Thread Gajillion
Thought I'd chime in here since most of these comments seem to be negative. This is the second organization I've worked at using Satellite. It has some issues, but it has also saved me countless hours of work. It is NOT a configuration management tool, that was never its intent. There is a cob

[Puppet Users] imports from default node called when default node not used?

2009-03-19 Thread Gajillion
All, My understanding was that the default node was only used when a node did not match any other way. This appears to be correct for anything included via "include", however, it appears that anything included via "import" is pulled in regardless of whether the default node is matched or not. An

[Puppet Users] apt-get, exec and a simple lesson

2009-03-19 Thread Bruce Richardson
Somebody had this problem back in Feb, where "apt-get update" failed and I have found the solution. So I had these two simple classes class debian::apt::sources { if $debian_apt_sources { $debian_apt_sources = $debian_apt_sources } else { $debian_a

[Puppet Users] Re: exec issue

2009-03-19 Thread nick . maystrenko
On Thu, 19 Mar 2009 18:11:25 +0500, Mike Renfro wrote: This will change root passsword))) > > nmay wrote: > >> When I adds this (exec { "/usr/bin/chpass -p $1$HvjTWzzz$jF.G/ >> mEbh7IOtpCdUPUTO1 pt_":}) in configs so that I`ll have in logs: debug: >> Executing '/usr/bin/chpass -p $1$HvjTWzzz$jF.G

[Puppet Users] Re: exec issue

2009-03-19 Thread Mike Renfro
nmay wrote: > When I adds this (exec { "/usr/bin/chpass -p $1$HvjTWzzz$jF.G/ > mEbh7IOtpCdUPUTO1 pt_":}) in configs so that I`ll have in logs: debug: > Executing '/usr/bin/chpass -p $1$HvjTWzzz$jF.G/mEbh7IOtpCdUPUTO1 pt_' > notice: //Node[hostname]/virt_users/pt_/Exec[/usr/bin/chpass -p > $1$HvjT

[Puppet Users] Re: exec issue

2009-03-19 Thread nmay
OS Freebsd 6.0 puppet 0.24.5 --~--~-~--~~~---~--~~ 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 pup

[Puppet Users] Possible bug in 0.24.6 -- crashing puppetmasterd.

2009-03-19 Thread Trevor Vaughan
So, for whatever insane reason, I tried to have Puppet set the permissions on some files in /etc/puppet such as autosign.conf and fileserver.conf. I had puppet set the perms to 640 and, when puppetmasterd looked at them again, it would set them back to 644. Eventually, the puppetmasterd crashed

[Puppet Users] exec issue

2009-03-19 Thread nmay
Hi guys! When I adds this (exec { "/usr/bin/chpass -p $1$HvjTWzzz$jF.G/ mEbh7IOtpCdUPUTO1 pt_":}) in configs so that I`ll have in logs: debug: Executing '/usr/bin/chpass -p $1$HvjTWzzz$jF.G/mEbh7IOtpCdUPUTO1 pt_' notice: //Node[hostname]/virt_users/pt_/Exec[/usr/bin/chpass -p $1$HvjTWzzz$jF.G/mEb

[Puppet Users] Re: Module dependancies.

2009-03-19 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/3/09 James Turnbull wrote: > Have a resource in one module depend on on a class in the module. > There > isn't a way of directly making on module dependent on another module. > > There was a long thread of this last week or the week before th

[Puppet Users] Re: Module dependancies.

2009-03-19 Thread Bruce Richardson
On Thu, Mar 19, 2009 at 10:13:59AM +, Craig Dunn wrote: > > Whats the best way of depending on a module - for example, I have an lvm > and a mysql module - on booting a clean machine it's important that lvm > be set up before the mysql rpm installs as I want mysql on a volume. I > can't s

[Puppet Users] Re: Module dependancies.

2009-03-19 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Craig Dunn wrote: > > Hi all > > Whats the best way of depending on a module - for example, I have an lvm > and a mysql module - on booting a clean machine it's important that lvm > be set up before the mysql rpm installs as I want mysql on a volu

[Puppet Users] Module dependancies.

2009-03-19 Thread Craig Dunn
Hi all Whats the best way of depending on a module - for example, I have an lvm and a mysql module - on booting a clean machine it's important that lvm be set up before the mysql rpm installs as I want mysql on a volume. I can't see an easy (clean) way of making sure the mysql module install

[Puppet Users] Re: defined() ambiguity?

2009-03-19 Thread Bruce Richardson
On Thu, Mar 19, 2009 at 10:12:39AM +, Bruce Richardson wrote: > This isn't an idle line of thought, by the way. There's obviously a lot > of interest in class/module dependencies, which are not easy to create > or test. Puppet would benefit from having a test for whether or not a > specific

[Puppet Users] defined() ambiguity?

2009-03-19 Thread Bruce Richardson
"defined($classname)" will return true if puppet code that describes the named class can be found, whether or not the class has been included. On the other hand, "defined(File[$filename])" will only return true if the code describing the file has been evaluated and the file "instantiated" (diffic