[Puppet Users] Re: puppet:/// problem

2009-05-26 Thread Clarence Tso
Hi there, Thanks for the responses so far; the docs say "Instead of specifying the server name explicitly using the / tells Puppet to look for the file on the Puppet master currently managing the node.". The puppet master managing the node is specified by the "server" config in /etc/ puppet.con

[Puppet Users] Re: Using Puppet on Machines Where I Don't Have Root?

2009-05-26 Thread Christopher Webber
Run puppet --genconfig and find all the parameters that would need to be changed to make it work. Most if not all of the important stuff can be modified by either args to puppet/d or via the puppet.conf Chris On May 26, 2009, at 10:53 PM, Brian Ferris wrote: > I understand that I can only ed

[Puppet Users] Re: Using Puppet on Machines Where I Don't Have Root?

2009-05-26 Thread Brian Ferris
I understand that I can only edit files where permissions allow. But can I run puppet without a "puppet" user? Basically, after reading over the documentation, I noticed a number of references to users ("puppet") and paths (/var/...) that puppet needs to run that I won't be able to create / have

[Puppet Users] Re: Using Puppet on Machines Where I Don't Have Root?

2009-05-26 Thread RijilV
2009/5/26 Brian Ferris : > > I'd like to use puppet to manage configuration files on a couple of > machines.  The catch is that I don't have root on these machines.  Is > this possible?  What kind of issues am I going to run into? > well you can do anything with puppet the user you're runni

[Puppet Users] Using Puppet on Machines Where I Don't Have Root?

2009-05-26 Thread Brian Ferris
I'd like to use puppet to manage configuration files on a couple of machines. The catch is that I don't have root on these machines. Is this possible? What kind of issues am I going to run into? --~--~-~--~~~---~--~~ You received this message because you are sub

[Puppet Users] Re: Build an XML file using exported resources

2009-05-26 Thread Joel Heenan
Ohad, Thanks for that, that is quite interesting. Unfortunately AFAIK I can't define the hashes in puppet so this is leading to a kinda - read the YAML, parse it, output XML file kinda solution I think which is probably what I was trying to avoid if only because it doesn't seem like the "puppet wa

[Puppet Users] Re: Build an XML file using exported resources

2009-05-26 Thread Ohad Levy
You could simply dump xml output inside your template. e.g. if you have a simple ruby hash a[:b]="c" in your template do: <%=a.to_xml%> and you will get the following output: => "\n\n c\n\n" cheers, Ohad On Wed, May 27, 2009 at 8:13 AM, Joel Heenan wrote: > Greg, > > What I struggled with wi

[Puppet Users] Re: Build an XML file using exported resources

2009-05-26 Thread Joel Heenan
Greg, What I struggled with with a template is that the data is multi-dimensional. So for instance I did: $policyengines = [ "PolicyEngine01/10.4.4.1", "PolicyEngine02/10.4.4.2" ] Then in the template I could $policyengine.split("/")[0] to pull out various aspects. And this works, but its ugly a

[Puppet Users] Re: Build an XML file using exported resources

2009-05-26 Thread Greg
Joel, Would a template be more what you are looking for? I've only done a couple of very simple templates myself, but it sounds like the sort of thing that it would be suited to - provided you can get the required info to the .erb file... Greg On May 27, 9:24 am, Joel Heenan wrote: > I have an

[Puppet Users] Build an XML file using exported resources

2009-05-26 Thread Joel Heenan
I have an XML file which contains a list of services for a piece of middleware, where a service is a tuple: ServiceType, IP Address, Port number. I would like to generate this file automatically for each node whenever I add a new service into puppet. I think external resources are the way to go ab

[Puppet Users] Re: exec unless broken?

2009-05-26 Thread RijilV
2009/5/26 seph : > > I can't seem to get exec unless to work right, it ignores the unless and > always runs the exec: > >  r...@puppet-test:~# cat  /tmp/exectest.pp >  exec{"echo 1 >  /tmp/ran": >     path   => "/", >     unless => "true", >  } >  r...@puppet-test:~# Is the program 'true' in you

[Puppet Users] exec unless broken?

2009-05-26 Thread seph
I can't seem to get exec unless to work right, it ignores the unless and always runs the exec: r...@puppet-test:~# cat /tmp/exectest.pp exec{"echo 1 > /tmp/ran": path => "/", unless => "true", } r...@puppet-test:~# r...@puppet-test:~# rm /tmp/ran ; ls /tmp/ran ls: cann

[Puppet Users] Re: undefined method `+\' for false:FalseClass

2009-05-26 Thread seph
Wonderful, that patch seems to have solved this error. Thank you so much for fixing it. seph Marc Fournier writes: > Hello, > > >> The first couple lines look like: >> >> err: Could not create 01 localhost spoofing in: undefined method >> `+' for >> false:FalseClass /var/lib/puppet/lib/pupp

[Puppet Users] Re: "Could not prefetch package provider 'yum': Command rpm is missing"

2009-05-26 Thread Kyle Mallory
Puppet (and Facter) was installed by hand (I have a script to install the latest from reductivelabs.com). I wasn't aware of EPEL, or that it maintained a puppet package. I've forwarded this on to our internal repo manager to see if this is something that we can include in our local mirrors. Thi

[Puppet Users] Re: "Could not prefetch package provider 'yum': Command rpm is missing"

2009-05-26 Thread Todd Zullinger
Kyle Mallory wrote: > Digging in, trying to get versions and paths, and all that stuff to > answer your questions, I found that my problem machine didn't have > 'which' installed. Apparently puppet relies on it to resolve the > path. Once I installed it, puppet ran fine. FWIW, installing the pup

[Puppet Users] Re: "Could not prefetch package provider 'yum': Command rpm is missing"

2009-05-26 Thread Kyle Mallory
Thanks Jim, Digging in, trying to get versions and paths, and all that stuff to answer your questions, I found that my problem machine didn't have 'which' installed. Apparently puppet relies on it to resolve the path. Once I installed it, puppet ran fine. Thanks again. Kyle --~--~-~--

[Puppet Users] Re: launchd starting up puppetd too early

2009-05-26 Thread Nigel Kersten
I think the simplest answer for your case is to switch your launchd plist around to not call puppet directly, but to instead call a script that checks whether the right services are in place before actually starting the first puppet run. Alternatively, given that it sounds like this is only a pro

[Puppet Users] launchd starting up puppetd too early

2009-05-26 Thread Daniel Koblas
Hello List, I'm running puppet on OS X Tiger 10.4.11. When using the launchd plist to start up puppet, I'm frequently seeing this issue where launchd will start up puppet very early in the boot process, often before configd can set the hostname on the client. This results in cert reques

[Puppet Users] Re: using puppet with fedora

2009-05-26 Thread SteveCriscuoli
Hey Pieter, I purposely set up the VMs on the same subnet as my physical boxes. I know that VMWare Server does set up multiple networks but I did have the ability to ping each from the other. I will look into it when I get home from work though. Thanks, Steve On May 26, 11:02 am, Pieter Barrez

[Puppet Users] Re: using puppet with fedora

2009-05-26 Thread SteveCriscuoli
Hey Dave, I purposely set them up as 'bridged' so they're on the same subnet as my entire LAN. I modified the /etc/hosts table on each to have entries for both and can ping each by its name; I'm hoping that was a sufficient test. Appreciate the help, Steve On May 26, 11:09 am, Dave Cheney wro

[Puppet Users] Re: using puppet with fedora

2009-05-26 Thread paul matthews
Hi Steve, I can't think of an obvious reason for failure but to rule out network issues you can run the puppetd command below on the puppetmaster itself , effectively making it a client which is a legitimate thing to do. If that works I would start looking at your network settings between the mas

[Puppet Users] Re: puppet:/// problem

2009-05-26 Thread Nigel Kersten
On Tue, May 26, 2009 at 6:31 AM, Mike Renfro wrote: > > Peter Meier wrote: > >> imho the tripple slashes just mean: puppet://puppet/ >> >> So you might want to do: puppet://$server/ > > I know the first statement isn't correct, since I use triple slashes all > the time, and my server's name isn't

[Puppet Users] Re: using puppet with fedora

2009-05-26 Thread Dave Cheney
You mentioned that each Fedora install was running in its own VM. Is TCP functional in those VM's and are they able to communicate with each other ? Cheers Dave On 27/05/2009, at 1:02 AM, Pieter Barrezeele wrote: > > > On 26 May 2009, at 13:27, SteveCriscuoli wrote: > > >> I manually insta

[Puppet Users] Re: using puppet with fedora

2009-05-26 Thread Pieter Barrezeele
On 26 May 2009, at 13:27, SteveCriscuoli wrote: > I manually installed Ruby, Factor, and Puppet as per the instructions > in the book. All seemd to be going well. > I added a puppet user/group to both VMs. I added > puppetmaster.testing.com to the /etc/hosts of the client box. > When I started

[Puppet Users] Re: puppet:/// problem

2009-05-26 Thread Mike Renfro
Peter Meier wrote: > imho the tripple slashes just mean: puppet://puppet/ > > So you might want to do: puppet://$server/ I know the first statement isn't correct, since I use triple slashes all the time, and my server's name isn't puppet. The second statement should work regardless. I do hav

[Puppet Users] Re: exec onlyif not cooperating on RHEL4

2009-05-26 Thread Matt Adams
Chad Huneycutt wrote: > I think the problem is that you are 'exit'ing. It looks like you are > doing that to invert the return code? Try using 'unless' instead of > 'onlyif', and you can drop everything after the diff. Perfect. Thanks, Chad. I should have read a little further down the type

[Puppet Users] using puppet with fedora

2009-05-26 Thread SteveCriscuoli
Good morning all, I've a VERY new user to puppet and picked up the "Pulling Strings ..." book. I was working through the setup section and ran into a problem. Here's my environment: Windows Vista box running VMWare Server hosting 2 VMs; each is running Fedora 10. I manually installed Ruby, Fac

[Puppet Users] Re: exec onlyif not cooperating on RHEL4

2009-05-26 Thread Chad Huneycutt
I think the problem is that you are 'exit'ing. It looks like you are doing that to invert the return code? Try using 'unless' instead of 'onlyif', and you can drop everything after the diff. On 5/26/09, Matt Adams wrote: > > Hi, > > I'm using Puppet 0.24.8 and facter 1.5.4 on RHEL4 update 7. >

[Puppet Users] Re: Puppet exported resources not working

2009-05-26 Thread saurabh verma
I'm using latest version on all systems 24.8 include puppetmaster On Wed, May 20, 2009 at 8:19 PM, Brice Figureau < brice-pup...@daysofwonder.com> wrote: > > On Wed, 2009-05-20 at 12:51 +0530, saurabh verma wrote: > > Hi > > > > I have created virtual resource in my test module > [snip] > > I c

[Puppet Users] Re: undefined method `+\' for false:FalseClass

2009-05-26 Thread Marc Fournier
Hello, > The first couple lines look like: > > err: Could not create 01 localhost spoofing in: undefined method > `+' for > false:FalseClass /var/lib/puppet/lib/puppet/type/iptables.rb:451:in > `initialize' /usr/lib/ruby/1.8/puppet/type.rb:1129:in > `new' /usr/lib/ruby/1.8/puppet/type.rb:1129

[Puppet Users] Re: puppet:/// problem

2009-05-26 Thread Peter Meier
Hi > I'm using the puppet:/// protocol with the triple slash as described > in the advanced puppet recipe because I want to keep all my config > files on the puppet server that serves the puppet nodes and such: > http://reductivelabs.com/trac/puppet/wiki/AdvancedPuppetRecipe > > In terms of conn

[Puppet Users] puppet:/// problem

2009-05-26 Thread Clarence Tso
Hi there, I'm using the puppet:/// protocol with the triple slash as described in the advanced puppet recipe because I want to keep all my config files on the puppet server that serves the puppet nodes and such: http://reductivelabs.com/trac/puppet/wiki/AdvancedPuppetRecipe In terms of connectin