Re: [Puppet Users] vardir variable not coming through

Darren Chamberlain
Fri, 02 Jul 2010 16:22:45 -0000

* noob-puppeteer <rahul.pilani at gmail.com> [2010/07/01
18:00]:
> I must be missing something with how puppet.conf works.
>
> I have configured puppet.conf like so:
> [main]
> vardir = /var/xyz/puppet
>
> I have a very simple site.pp
>
> file { "$vardir/touch":
>          ensure => present,
> }
>
> I am running puppet 0.25.5, and have the puppetmasterd and puppetd on
> the same server. When I start the puppetd client, it gets an empty
> $vardir, and tries to create /touch instead of /var/xyz/puppet/touch.
>
> What am I missing?

Facter doesn''t make puppet configuration variables available in your
manifests, so you can''t reference $vardir, $confdir, and so on
unless you write custom facts to make them available.

--
Make something future-proof and the universe will invent a worse future.
    -- David Cantrell