Page MenuHomePhabricator

Add support for directory environments to our puppet classes, production puppetmaster
Closed, ResolvedPublic

Description

In preparation for the transition to the future parser first, and puppet 4 later, we will be able to do things more easily if we allow ourselves to have the possibility to define separated environments.

So we need to add support for directory environments to our puppet classes as well as enabling them in production.

Instructuions for how to configure environments is here

https://docs.puppet.com/puppet/3.8/environments_configuring.html#enabling-directory-environments-in-open-source-puppet

Event Timeline

Joe moved this task from Backlog to Doing on the User-Joe board.

First hurdle: puppetlabs advises to set the variable environment_timeout to unlimited and to restart the puppetmaster at every code deploy, for performance reasons.

I'm not sure it's feasible for us - the only way to do it would be to leverage passenger's rolling restart capability within puppet-merge.

I'm opening a subtask for that.

Change 363790 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] puppetmaster: add environment for the future parser

https://gerrit.wikimedia.org/r/363790

Change 363790 merged by Giuseppe Lavagetto:
[operations/puppet@production] puppetmaster: add environment for the future parser

https://gerrit.wikimedia.org/r/363790

Change 363797 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] profile::base: allow setting a puppet environment

https://gerrit.wikimedia.org/r/363797

Change 363797 merged by Giuseppe Lavagetto:
[operations/puppet@production] profile::base: allow setting a puppet environment

https://gerrit.wikimedia.org/r/363797

Joe claimed this task.
Joe triaged this task as High priority.