hi, i''m playing with puppet on a few machines, and i''d like to have my puppet vardir on a volume other than the one on which my /var resides. i tried creating a symlink, but puppet seems to blow that away and recreate /var/puppet (!!). i''ve looked around in the source but don''t see anything obvious. am i doing something wrong? thanks, scott
On Sat, Aug 25, 2007 at 04:29:12PM -0700, Scott Smith wrote:> hi, > > i''m playing with puppet on a few machines, and i''d like to have my > puppet vardir on a volume other than the one on which my /var resides. i > tried creating a symlink, but puppet seems to blow that away and > recreate /var/puppet (!!). i''ve looked around in the source but don''t > see anything obvious. > > am i doing something wrong?Sorta. If you want $vardir somewhere else, set it in your puppet.conf. Much cleaner. - Matt -- Just because we work at a University doesn''t mean we''re surrounded by smart people. -- Brian Kantor, in the monastery
Matthew Palmer wrote:> Sorta. If you want $vardir somewhere else, set it in your puppet.conf. > Much cleaner. > > - Matt >hmmm... << cfg-mast1# rm -rf /var/puppet /k/vol01/puppet cfg-mast1# grep vardir puppet.conf vardir = /k/vol01/puppet ssldir = $vardir/ssl cfg-mast1# puppetmasterd cfg-mast1# ls -l /var/puppet /k/vol01/puppet ls: /k/vol01/puppet: No such file or directory /var/puppet: total 16 drwxr-x--- 2 root wheel 512 Aug 25 17:03 clientbucket/ drwxr-xr-x 2 root wheel 512 Aug 25 17:03 lib/ drwxr-x--- 2 puppet puppet 512 Aug 25 17:03 log/ drwxr-x--- 2 puppet puppet 512 Aug 25 17:03 reports/ drwxr-xr-x 2 puppet puppet 512 Aug 25 17:03 rrd/ drwxrwxrwt 2 root wheel 512 Aug 25 17:03 run/ drwxrwxrwt 3 root wheel 512 Aug 25 17:03 state/ drwxr-xr-x 2 root wheel 512 Aug 25 17:03 templates/ >> the missing ssl dir leads me to believe that puppetmasterd isn''t even processing puppet.conf. i understand that the config files have changed from one primary file, but my puppetmasterd still complains about a missing puppetmasterd.conf. i''m running 0.22.4. -scott
Scott Smith wrote:> Matthew Palmer wrote: >> Sorta. If you want $vardir somewhere else, set it in your puppet.conf. >> Much cleaner. >> >> - Matt >> > > hmmm...OK, i upgraded to 0.23.2 and after poking around, saw the note about the config changes. didn''t see anything on the site''s wiki.. -scott
On Sat, Aug 25, 2007 at 05:39:09PM -0700, Scott Smith wrote:> Scott Smith wrote: > > Matthew Palmer wrote: > >> Sorta. If you want $vardir somewhere else, set it in your puppet.conf. > >> Much cleaner. > >> > >> - Matt > >> > > > > hmmm... > > OK, i upgraded to 0.23.2 and after poking around, saw the note about the > config changes. didn''t see anything on the site''s wiki..http://reductivelabs.com/trac/puppet/ticket/776 - Matt
Matthew Palmer wrote:> http://reductivelabs.com/trac/puppet/ticket/776nah, it was creating everything that should be in the vardir. the config file change wasn''t clear to me, that''s all. once i upgraded to 0.23.2, everything was fine. not sure if it still blows away a symlink, though. that bug doesn''t occur on my machine (freebsd). /var/puppet doesn''t get created at all now if i change vardir. -scott