Re: [Puppet Users] alternate hostnames, keys, and certs

2010-10-14 Thread Patrick
On Oct 14, 2010, at 10:23 PM, Don Jackson wrote: > > I'd like to extend my use of puppet to manage my desktop/notebook macs. > > As others have noted, the hostname of the mobile machines tends to change > frequently, so basing the node name (in my site.pp) and the corresponding > cert and pri

Re: [Puppet Users] Puppetd fails to run, returns error: undefined method "fact_merge"

2010-10-14 Thread Mohit Chawla
Looks like there's a bug filed : http://projects.puppetlabs.com/issues/3234 On Thu, Oct 14, 2010 at 4:59 PM, Phil Plante wrote: > Hello, > > I have puppet setup on 8 nodes with 1 puppetmaster server. So far 7 > of the 8 nodes have performed flawlessly, 1 is currently failing with > the followin

[Puppet Users] alternate hostnames, keys, and certs

2010-10-14 Thread Don Jackson
I'd like to extend my use of puppet to manage my desktop/notebook macs. As others have noted, the hostname of the mobile machines tends to change frequently, so basing the node name (in my site.pp) and the corresponding cert and private key names seems to be an issue. I seem to recall somewhat

Re: [Puppet Users] puppet node names

2010-10-14 Thread Patrick
"puppet.config" should be the fqdn of the node that created that request. Does "facter fqdn" give you "puppet.config" on that node? Does "puppetd --genconfig | grep certname" give you "puppet.config" on that node? On Oct 14, 2010, at 3:13 PM, john maclean wrote: > What gives with the hostname

Re: [Puppet Users] Recursion

2010-10-14 Thread Jeff McCune
To save you some hassle in the future, I recommend not defining new fileserver mount points and instead use a module to distribute the files. Puppet master automatically exposes the files directory of a module via the fileserver. More information is available at http://docs.puppetlabs.com in the

Re: [Puppet Users] puppet node names

2010-10-14 Thread Jeff McCune
That's not puppet, it's how you've configured the hostname of the system itself. What does facter fqdn say? It will have .config as well on those nodes. On Thursday, October 14, 2010, Bruce Richardson wrote: > On Thu, Oct 14, 2010 at 11:13:00PM +0100, john maclean wrote: >> What gives with the

[Puppet Users] Re: First boot with Puppet

2010-10-14 Thread Garrett Honeycutt
On Oct 14, 3:49 pm, Michal Ludvig wrote: >   On 10/15/2010 08:36 AM, Arnau Bria wrote:> On Thu, 14 Oct 2010 23:47:16 > +1300 > > Michal Ludvig wrote > >> 1) kickstart installs the system, including puppet from our local repo > >> 2) after reboot I have to login and set the hostname and IP > > k

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Russell Jackson
On 10/14/2010 03:49 PM, Michal Ludvig wrote: On 10/15/2010 08:36 AM, Arnau Bria wrote: On Thu, 14 Oct 2010 23:47:16 +1300 Michal Ludvig wrote 1) kickstart installs the system, including puppet from our local repo 2) after reboot I have to login and set the hostname and IP kickstart is able to

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Michal Ludvig
On 10/15/2010 08:36 AM, Arnau Bria wrote: On Thu, 14 Oct 2010 23:47:16 +1300 Michal Ludvig wrote 1) kickstart installs the system, including puppet from our local repo 2) after reboot I have to login and set the hostname and IP kickstart is able to configure your network / hostname. Why don't

Re: [Puppet Users] templating woes....

2010-10-14 Thread Jacob Helwig
On Thu, 14 Oct 2010 18:37:01 -0400, Peter Berghold wrote: > > <% nagios_conf_dirs.each |dir| -%> > cfg_dir=<%= dir %> > <% end -%> > > Anybody have any idea why that would cause a syntax error in a template? > > According to debug mode on puppetmasterd it is > > err: compile error > (erb):1

[Puppet Users] templating woes....

2010-10-14 Thread Peter Berghold
<% nagios_conf_dirs.each |dir| -%> cfg_dir=<%= dir %> <% end -%> Anybody have any idea why that would cause a syntax error in a template? According to debug mode on puppetmasterd it is err: compile error (erb):18: syntax error _erbout.concat "cfg_dir"; _erbout.concat(( dir ).to_s); _erbout.c

Re: [Puppet Users] Variable of define is used more than once

2010-10-14 Thread Dennis Hoppe
Hello Nigel, Am 13.10.2010 17:35, schrieb Nigel Kersten: > ... > Have you tried running the recent packages on Debian stable? They do > work, you're more than welcome to go to a bleeding edge release if you > wish. > > This is all pretty standard practice for Debian... > > I wasn't being sarcast

Re: [Puppet Users] puppet node names

2010-10-14 Thread Bruce Richardson
On Thu, Oct 14, 2010 at 11:13:00PM +0100, john maclean wrote: > What gives with the hostname "config" extension and where is this set? > > > puppetca --list --all > + pclient1.config > + pclient2 > + puppet.config > That looks to me as if there is something odd in puppet.conf on your nodes. I

[Puppet Users] puppet node names

2010-10-14 Thread john maclean
What gives with the hostname "config" extension and where is this set? puppetca --list --all + pclient1.config + pclient2 + puppet.config puppet --version 0.25.4 -- John Maclean MSc (DIC) Enterprise Linux Systems Engineer -- You received this message because you are subscribed to the Goog

[Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread nickt
I understand what you're saying, but I'm having a hard time picturing how you actually invoke the command then. Something along the lines of "puppet agent --server myserver.dom.com"? On Oct 14, 3:40 pm, Darren Chamberlain wrote: > We run puppet as root, but we do it from cron, not puppetd. > > *

Re: [Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread Darren Chamberlain
We run puppet as root, but we do it from cron, not puppetd. * nickt [2010/10/14 13:03]: > Oh! (Thanks for the links! :) Okay, that would make sense then, it > must be trying to do the useradd as puppet user rather than as root. > Then, how do people typically deal with this sort of thing on > S

[Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread nickt
And for that matter, why does it work "right" on Linux? If I run the puppetd with sudo ( sudo puppetd --server myserver.dom.com --verbose -- no-daemonize ) it works fine on Linux (or at least an Ubuntu 10.10 box). On Oct 14, 3:03 pm, nickt wrote: > Oh!  (Thanks for the links! :)  Okay, that woul

[Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread nickt
Oh! (Thanks for the links! :) Okay, that would make sense then, it must be trying to do the useradd as puppet user rather than as root. Then, how do people typically deal with this sort of thing on Solaris? Give puppet user permissions to execute useradd via ACL/ roles or something? On Oct 14,

Re: [Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread Darren Chamberlain
According to http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/head/userdefs.h#118, an exit status of 1 means No permission. (See http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/oamuser/user/useradd.c for the source to useradd.) * nickt [2010/10/14 12:32]: > Thu Oct

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Arnau Bria
On Thu, 14 Oct 2010 23:47:16 +1300 Michal Ludvig wrote: > Hi guys, Hi Michal, > Here's my situation: > 1) kickstart installs the system, including puppet from our local repo > 2) after reboot I have to login and set the hostname and IP kickstart is able to configure your network / hostname. Wh

[Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread nickt
Exact command I ran was /usr/local/sbin/puppetd --server myserver.dom.com --debug --logdest file --no-daemonize Sorry this is so long! Thu Oct 14 14:27:00 -0500 2010 Puppet (debug): Failed to load library 'shadow' for feature 'libshadow' Thu Oct 14 14:27:00 -0500 2010 Puppet (debug): Puppet::Type

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Mohamed Lrhazi
On Thu, Oct 14, 2010 at 6:47 AM, Michal Ludvig > 1) kickstart installs the system, including puppet from our local repo In our case, kickstart sets the hostname and the ip/netmask/gateway/dns Why dont you set hostname and the ip/netmask/gateway/dns... in the kickstart file? Mohamed. -- Yo

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Mathias Gug
Excerpts from Michal Ludvig's message of Thu Oct 14 06:47:16 -0400 2010: > I'm installing Puppet on RHEL5 systems using KickStart but struggle with > the first boot. > > Here's my situation: > 1) kickstart installs the system, including puppet from our local repo > 2) after reboot I have to login

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Ohad Levy
you can always use http://theforeman.org to do the provisioning for you. Ohad On Thu, Oct 14, 2010 at 12:47 PM, Michal Ludvig wrote: > Hi guys, > > I'm installing Puppet on RHEL5 systems using KickStart but struggle with > the first boot. > > Here's my situation: > 1) kickstart installs the sys

[Puppet Users] Re: Recursion

2010-10-14 Thread Kikanny
Nvm. I fixed it. On Oct 14, 2:58 pm, Kikanny wrote: > I'm pretty sure this is simple, but I just can't get it to work. I > have a directory called test (in location /home/server/test) and it > has sub directories and other files. I want to copy this directory and > all its contents into a locatio

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Ryan Dooley
On 10/14/2010 3:47 AM, Michal Ludvig wrote: > Hi guys, > > I'm installing Puppet on RHEL5 systems using KickStart but struggle > with the first boot. > > Here's my situation: > 1) kickstart installs the system, including puppet from our local repo > 2) after reboot I have to login and set the hos

[Puppet Users] Recursion

2010-10-14 Thread Kikanny
I'm pretty sure this is simple, but I just can't get it to work. I have a directory called test (in location /home/server/test) and it has sub directories and other files. I want to copy this directory and all its contents into a location on the client machine. I'm not sure what I'm doing wrong. Th

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Matthew Macdonald-Wallace
On Thu, 2010-10-14 at 23:47 +1300, Michal Ludvig wrote: > Hi guys, > > I'm installing Puppet on RHEL5 systems using KickStart but struggle with > the first boot. As Stephen says, use cobbler (we do as well!) and put it into your kickstart. Here's ours: == sample.ks

Re: [Puppet Users] First boot with Puppet

2010-10-14 Thread Patrick
We done it 2 different ways: *) Pull and run a shellscript that sets puppet to run when the computer first boots up. Or instead of running the shell script, run something like this: get private_keys/bootstrap.pem (Pseudocode) get signed/bootstrap.pem (Pseudocode) get public_keys/ca.pem (Pseudoc

[Puppet Users] First boot with Puppet

2010-10-14 Thread Steven VanDevender
Michal Ludvig writes: > Hi guys, > > I'm installing Puppet on RHEL5 systems using KickStart but struggle with > the first boot. > > Here's my situation: > 1) kickstart installs the system, including puppet from our local repo > 2) after reboot I have to login and set the hostname and I

[Puppet Users] First boot with Puppet

2010-10-14 Thread Michal Ludvig
Hi guys, I'm installing Puppet on RHEL5 systems using KickStart but struggle with the first boot. Here's my situation: 1) kickstart installs the system, including puppet from our local repo 2) after reboot I have to login and set the hostname and IP 3) then run puppet, register it with the se

Re: [Puppet Users] Re: manipulating facter variable

2010-10-14 Thread Justin Brehm
There's a split function in Puppet's DSL as well. If you don't want to do the inline_template() route. http://docs.puppetlabs.com/references/stable/function.html#split On Thu, Oct 14, 2010 at 10:26 AM, Dennis vdM wrote: > THNX! Just what I needed ;-) > > On 14 okt, 16:18, Mohit Chawla wrote:

[Puppet Users] Puppetd fails to run, returns error: undefined method "fact_merge"

2010-10-14 Thread Phil Plante
Hello, I have puppet setup on 8 nodes with 1 puppetmaster server. So far 7 of the 8 nodes have performed flawlessly, 1 is currently failing with the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `fact_merge' for nil:NilClass warning:

Re: [Puppet Users] manipulating facter variable

2010-10-14 Thread Nigel Kersten
On Thu, Oct 14, 2010 at 9:48 AM, Mohit Chawla wrote: > > > On Thu, Oct 14, 2010 at 9:55 PM, Nigel Kersten > wrote: >> >> On Thu, Oct 14, 2010 at 7:18 AM, Mohit Chawla >> wrote: >> > Split & Join inside an inline template should work well. >> >> Wouldn't it be a bit cleaner to use the builtin reg

Re: [Puppet Users] manipulating facter variable

2010-10-14 Thread Mohit Chawla
On Thu, Oct 14, 2010 at 9:55 PM, Nigel Kersten wrote: > On Thu, Oct 14, 2010 at 7:18 AM, Mohit Chawla > wrote: > > Split & Join inside an inline template should work well. > > Wouldn't it be a bit cleaner to use the builtin regsubst function? > > http://docs.puppetlabs.com/references/latest/funct

Re: [Puppet Users] Problems with Solaris 10 & adduser

2010-10-14 Thread Jeff McCune
On Thursday, October 14, 2010, Nigel Kersten wrote: > On Thu, Oct 14, 2010 at 9:10 AM, nickt wrote: >> No problem if I do that "by hand", as root.  Just gives me the normal >> message, "64 blocks", and creates the account and directory as >> indicated. > > Are you running puppet as root? If not,

Re: [Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread Nigel Kersten
On Thu, Oct 14, 2010 at 9:10 AM, nickt wrote: > No problem if I do that "by hand", as root.  Just gives me the normal > message, "64 blocks", and creates the account and directory as > indicated. Are you running puppet as root? If not, does it work as the user puppet is running as? > > On Oct 13

Re: [Puppet Users] manipulating facter variable

2010-10-14 Thread Nigel Kersten
On Thu, Oct 14, 2010 at 7:18 AM, Mohit Chawla wrote: > Split & Join inside an inline template should work well. Wouldn't it be a bit cleaner to use the builtin regsubst function? http://docs.puppetlabs.com/references/latest/function.html#regsubst "Example: Get the third octet from the node’s I

[Puppet Users] Re: Problems with Solaris 10 & adduser

2010-10-14 Thread nickt
No problem if I do that "by hand", as root. Just gives me the normal message, "64 blocks", and creates the account and directory as indicated. On Oct 13, 2:04 pm, Bruce Richardson wrote: > On Tue, Oct 12, 2010 at 07:59:40AM -0700, nickt wrote: > > > err: /Stage[main]/User::Virtual/User[user1]/en

Re: [Puppet Users] manipulating facter variable

2010-10-14 Thread Matt Wallace
On Thursday 14 Oct 2010 14:57:08 Dennis vdM wrote: > I'm trying to manipulate the following facter variable: > > ipaddress => 10.85.207.2 > > What I need is the second group of digits. If it's 84 then location is > A, but if it's 85 then location is B. > In puppet I couldn't grab this second set

Re: [Puppet Users] Re: manipulating facter variable

2010-10-14 Thread Rob Terhaar
I think the bigger question is, what problem are you trying solve with this? On Oct 14, 2010 10:26 AM, "Dennis vdM" wrote: > THNX! Just what I needed ;-) > > On 14 okt, 16:18, Mohit Chawla wrote: >> Split & Join inside an inline template should work well. >> >> For eg., >> $nsip=inline_template('

[Puppet Users] Re: manipulating facter variable

2010-10-14 Thread Dennis vdM
THNX! Just what I needed ;-) On 14 okt, 16:18, Mohit Chawla wrote: > Split & Join inside an inline template should work well. > > For eg., > $nsip=inline_template('<%= ipaddress.split(".")[0..1].collect{|x| > x}.join(".") %>') > > This will split an ip address, say 192.168.1.3, split it at each o

Re: [Puppet Users] manipulating facter variable

2010-10-14 Thread Mohit Chawla
Split & Join inside an inline template should work well. For eg., $nsip=inline_template('<%= ipaddress.split(".")[0..1].collect{|x| x}.join(".") %>') This will split an ip address, say 192.168.1.3, split it at each occurrence of a "." and will join the first two numbers ( referenced as [0..1] ),

[Puppet Users] manipulating facter variable

2010-10-14 Thread Dennis vdM
I'm trying to manipulate the following facter variable: ipaddress => 10.85.207.2 What I need is the second group of digits. If it's 84 then location is A, but if it's 85 then location is B. In puppet I couldn't grab this second set of digits, but maybe there is a way? I've already tried to make

[Puppet Users] Re: Puppetrun reports certificates were not trusted

2010-10-14 Thread Christian
Hi Doug, What i did with my manual puppet runs was a copy of the ntp.conf files to the clients and restart the ntp service. So if you would declare that as a time change... yeah i did change it. Times on server and clients are complete identically. I checked the validity of the certificate regard