Page MenuHomeMiraheze

Convert Puppetmaster to use PuppetDB
Closed, ResolvedPublic

Description

With the upgrade to Debian 9 issue, puppet and the master moves to version 4. Included in this change is the removal of ActiveRecords and child-like inventory services. (1)

This now means the only form of inventory management is PuppetDB which is needed otherwise the only other option is to go back to per-server apply services.

Event Timeline

Realistic goal, we need this for PHP7 and the new MediaWiki upgrade, so this should be done before June.

Just to have an update on this task:

I've attempted to temporarily make test1 a puppetmaster to test the changes, only there are issues with signing the cert for the node

Error: Could not find CSR for: "test1.miraheze.org".

so this is blocking the process of making test1 a puppetmaster, and therefore testing the changes.

Another update: The certificate issue has been resolved, only now puppet does not seem to be reading /etc/puppet properly, therefore it isn't pulling any changes.

Another update: The certificate issue has been resolved, only now puppet does not seem to be reading /etc/puppet properly, therefore it isn't pulling any changes.

You mean applying changes not pulling them?

In T1997#49053, @John wrote:

Another update: The certificate issue has been resolved, only now puppet does not seem to be reading /etc/puppet properly, therefore it isn't pulling any changes.

You mean applying changes not pulling them?

Yes, my mistake. Applying.

Update, we have started testing this module now :).

So, it looks like PuppetDB and exported resources are working on test1. Therefore, it is now time to upgrade puppet1 to Debian 9 and Puppet4. But before, @Paladox says that PuppetDB needs more RAM, so we should probably upgrade puppet1. What do you think @Southparkfan ?

Assigned to @Southparkfan for 1) approval/review of an upgrade 2) to be around when the upgrade would happen

Remind me again why needing 2x more RAM counts as a software upgrade.

@labster puppet will likly to fail if there is not enough heap for puppetdb (which puppetdb could be restarted)

But maybe 1gb is enough for now?

Reception123 reassigned this task from Southparkfan to Paladox.

This is finally done! :)

Thank you @Paladox for doing most of the work and helping out to get PuppetDB working. Thanks @John for also helping with debug, and for being there in case damage control was needed :P