Puppet4 vardir and Upgrading from Puppet3
|Assigned To:||Martin Schurz|
|Found in release:||1.13.2||Pull request:||https://github.com/theforeman/puppet-puppet/pull/468|
|Velocity based estimate||-|
Last Week we did an update from Puppet3 to Puppet4 in one of our environments. We used you documentation: http://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_3_to_4
We had two possible issues after the update.
We discovered, that in step 2 it would be good to add an additional option to the foreman-installer.
Can I update the documentation in your wiki?
This is related to (1). We are using "puppet master --compile ..." to generate some reports on the puppet master. Since Puppet 4 the master and agent use a different vardir. In the default installation it is no longer possible to execute this command, because the puppet process is trying to geht cached facts etc. from the agent vardir. We had to add this to our puppet.conf:
[master] ... vardir = /opt/puppetlabs/server/data/puppetserver
This should be done by the foreman-installer itself when installing Puppet 4.
set vardir, rundir and logdir explicitly in puppet.conf
#2 Updated by Martin Schurz over 1 year ago
Dominic Cleal wrote:
1. Please feel free to edit the wiki.
2. This is entirely separate from the documentation, it should be filed as an issue in the installer project, not a support ticket. Do you want me to change this ticket, or do you intend to file a specific bug report?
Ok I will update the wiki. Can you change the ticket? I will try to provide a patch. From what I've seen this sould be trivial.
#6 Updated by Michael Moll over 1 year ago
It'll be part of Foreman 1.15 per default and I'll leave the decision to Dominic if it's going to be part of the branched releases.
Personally I'm not 100% sure, but think the whole "puppet master" thing is marked deprecated in Puppet 4.x and will be gone in 5.x (or maybe even sooner), so it's probably a good idea to move away from using that. But ask Puppetlabs about the things you're specifically using, if you need 100% confidence.