Ask Your Question

Relocating $confdir

asked 2013-03-09 20:31:49 -0500

New setup, Puppet 3.1.0 and Passenger on a RHEL 5 server.

I wanted to move $confdir from /etc/puppet to follow local practices about where to install stuff.

I made the necessary change in /usr/share/puppet/rack/puppetmasterd/ and set confdir in the [main] part of puppet.conf, then I ran

puppet master --no-daemonize --confdir=/new/path

to generate its SSL certificates and such.

Once I modified my Apache config to properly point at all the ssl files, apache and passenger fired right up.

Now the bugaboo: puppet agent does not run unless I include ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-03-10 03:14:17 -0500

Stefan gravatar image

updated 2013-03-10 03:15:54 -0500

If you run puppet from cron you can pass --confdir /new/path to the cron command. If you run puppet as a daemon it depends on the operatingsystem and distribution you are using.

On redhat you can put the following inside /etc/sysconfig/puppet:

PUPPET_EXTRA_OPTS="--confdir /new/path"

I checked the history of the initscript that comes with the puppet sources and it seems to have always respected this environment variable.

edit flag offensive delete link more


The "initscript" you refer to is /etc/init.d/puppet, right ? I need to wait until I am @ work tomorrow, but it seems that /etc/sysconfig/puppet is only for ...(more)

LinuxDan gravatar imageLinuxDan ( 2013-03-10 15:52:29 -0500 )edit

you're right /etc/sysconfig/puppet is not respected by puppet itself. This file does only determine how the initscript should start the puppet agent. If you start puppet mostly ...(more)

Stefan gravatar imageStefan ( 2013-03-11 03:01:59 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-03-09 20:31:49 -0500

Seen: 1,799 times

Last updated: Mar 10 '13