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? Thanks, NP -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Darren Chamberlain
2010-Jul-02 16:22 UTC
Re: [Puppet Users] vardir variable not coming through
* 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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> 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?afair config variables are not yet present in the manifests. I''m not sure if there is bug report for that. But remember: catalogs are compiled on the master, so which $vardir should be used? the one from the master or the client one? There might be use for both cases. cheers pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwuEpcACgkQbwltcAfKi39zlwCfYh5iY4+8Jh41JYtE28TW/5NQ VMoAn2e+RuOF5UQ7NtKQOyHOIYtkKgYP =Tvv8 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
James Turnbull
2010-Jul-02 22:24 UTC
Re: [Puppet Users] vardir variable not coming through
Peter Meier wrote:>> 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? > > afair config variables are not yet present in the manifests. I''m not > sure if there is bug report for that. But remember: catalogs are > compiled on the master, so which $vardir should be used? the one from > the master or the client one? There might be use for both cases. > > cheers peteThese settings will be available in your manifests in version 2.6 and later. Regards James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.