Installing on OS X server 10.4.11

59 views
Skip to first unread message

Daniel Koblas

unread,
Feb 6, 2009, 3:58:26 PM2/6/09
to puppet...@googlegroups.com
Hello group,

I am new to puppet and trying to get it running on a 10.4.11 server.  I've tried installing puppet using every method I can find (os x pkg files, ruby gems, compiling from source), to no avail.  I have followed the documentation on the reductivelabs site as carefully as possible, as well as doing a bit of experimenting on my own, and have not been able to get it to run.

When I run 

# /usr/bin/puppetmasterd --mkusers

I get this in the system.log:


Feb  6 12:53:57 server puppetmasterd[11917]: (/Settings[top]/Settings[main]/Group[puppet]/ensure) created
Feb  6 12:54:01 server puppetmasterd[11917]: (/Settings[top]/Settings[main]/User[puppet]/ensure) created
Feb  6 12:54:01 server puppetmasterd[11917]: (/Settings[top]/Settings[metrics]/File[/var/puppet/rrd]) Failed to retrieve current state of resource: Could not find user puppet
Feb  6 12:54:01 server puppetmasterd[11917]: (/Settings[top]/Settings[main]/File[/var/puppet/log]) Failed to retrieve current state of resource: Could not find user puppet
Feb  6 12:54:01 server puppetmasterd[11917]: (/Settings[top]/Settings[reporting]/File[/var/puppet/reports]) Failed to retrieve current state of resource: Could not find user puppet

It looks like it creates the users, but it doesn't - I can see no evidence of it doing so.  The puppetmasterd quits on failure, returning the 3 errors here to stdout as well as the system.log file.  I have not been able to find any detailed information about how to set this up on OS X or what I might be doing wrong nor have I had any success in getting the daemon to run.  Any help would be greatly appreciated.
Thanks in advance.
-Dan

Nigel Kersten

unread,
Feb 6, 2009, 7:14:41 PM2/6/09
to puppet...@googlegroups.com
As a note, I haven't had time to look at this yet, but this is the
second person who has pinged me off list about this issue, so it's not
just Daniel.
--
Nigel Kersten
Systems Administrator
Tech Lead - MacOps

Marcus Rowell

unread,
Feb 6, 2009, 6:19:39 PM2/6/09
to puppet...@googlegroups.com
Hi Dan,

I am an absolute beginner at Puppet, but I do have it running under
10.5 and am using it for package management of our Mac laptops and
desktops. I haven't used puppet on 10.4 though.

I use Nigel Kerstens packages from
https://sites.google.com/a/explanatorygap.net/puppet/ and have had no
trouble with them.

You don't have to make users on the mac because puppet only runs as
root, I believe due to a limitation in how macosx works.

My rough notes on getting started are:

1) Install Puppet and Factor packages from Nigel's site

2) create /etc/puppet/puppet.conf with the following content

[main]
user = 0
group = 0
server = puppet.example.com
certname = puppet. example.com
autosign = false

[puppetd]
evaltrace = true
factsync = true


3) create /etc/puppet/fileserver.conf

[facts]
path /etc/puppet/dist/facts
allow *

[files]
path /etc/puppet/dist/files
allow *


4) mkdir /etc/puppet/dist/facts

5) mkdir /etc/puppet/dist/files

6) create /etc/puppet/manifests/site.pp (can be empty to start with)

7) sudo puppetmasterd --no-daemonize --verbose

That should get your puppetmasterd running.

I use the Launchd script from
https://reductivelabs.com/trac/puppet/wiki/PuppetWithLaunchd to keep
it running.

I hope that helps,

Marcus.

Daniel Koblas

unread,
Feb 11, 2009, 7:32:03 PM2/11/09
to puppet...@googlegroups.com
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 of my test client - woohoo!
I really appreciate all of you guys' help.

-Dan
Reply all
Reply to author
Forward
0 new messages