Project

General

Profile

Actions

Bug #17634

closed

Puppet4 vardir and Upgrading from Puppet3

Added by Martin Schurz about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

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.

1.

We discovered, that in step 2 it would be good to add an additional option to the foreman-installer.

"--reset-puppet-server-puppetserver-vardir" 

Can I update the documentation in your wiki?

2.

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.

Actions

Also available in: Atom PDF