Puppet 7 support

I’ve started a PR to support Puppet 7. In particular Puppetserver 7.

The most notable breakage is that facts are no longer updated. Since the old YAML files are still present and not cleaned up, it appears to work but the data will be stale.

I haven’t been able to find out how to actually write out these facts but I thought I’d give a heads up to any users. Maybe someone here actually knows the right config options.

1 Like

Do reports work?

Reports do work.

1 Like

In my Puppet 7 development setup it was sufficient to adjust /etc/puppetlabs/puppet/routes.yaml:

  ---
    master:
      facts:
        terminus: puppetdb
        cache: json

The facts were then written out to /opt/puppetlabs/server/data/puppetserver/server_data/facts/<FQDN>.json.

1 Like

Odd. I have exactly that and now it does appear they’re written out. Either I was blind or something changed. I guess I can revisit this then:
https://github.com/theforeman/puppet-foreman/pull/925

I’ve updated the PR now. With the correct fact directory it did work straight away. Thanks!

Short update: there is just one module left. Ironically it’s in the puppetlabs namespace. I’ll work around it by using a fork so Foreman 3.0 can release with it. This is now the PR I’m working on:
https://github.com/theforeman/foreman-installer/pull/687

1 Like

Just to wrap this up: I think all of the work is in code wise. What’s now missing is changing our pipelines to default to Puppet 7 and updating documentation.

1 Like