[Pkg-puppet-devel] Bug#1070744: Bug#1070744: /usr/bin/puppet: puts non-regeneratable data in /var/cache

Jérôme Charaoui jerome at riseup.net
Wed Sep 4 15:54:45 BST 2024


Le 2024-09-04 à 10 h 45, Antoine Beaupré a écrit :
> On 2024-09-04 10:35:57, Jérôme Charaoui wrote:
>> I agree perhaps the default of "/var/cache/puppet/reports" isn't ideal.
>> But instead of changing only "reportdir", we might want to instead
>> change "vardir" from "/var/cache/puppet" to something like
>> "/var/puppet". I'm not sure that anything puppet puts inside "vardir"
>> can really be qualified as "cache"?
> 
> That would break the FHS too, no? perhaps /var/spool/puppet or
> /var/lib/puppet instead?

The $libdir variable in puppet.conf is already set to /var/lib/puppet, 
I'm not sure if it would be wise to use the same path for both settings...

The upstream docs describe both parameters as such:

vardir: Where Puppet stores dynamic and growing data.

libdir: An extra search path for Puppet. This is only useful for those 
files that Puppet will load on demand, and is only guaranteed to work 
for those cases. In fact, the autoload mechanism is responsible for 
making sure this directory is in Ruby's search path

So maybe vardir could be /var/lib/puppet and libdir: $vardir/ruby ?

-- Jérôme



More information about the Pkg-puppet-devel mailing list