Page MenuHomePhabricator

Refactor puppet:base module to reduce unneeded shared code paths
Closed, ResolvedPublic

Description

We currently have a few modules shared between cloud services VPS environment and the production environment which don't necessarily need to be shared. the biggest example of this is profile::base. We should split this profile up so that we have a separate profile::base::production ensuring all production specific code is only added there. Further we should make better use of heira. many classes and profiles have a large if/else block based on the realm variable however in most cases we should be able to refactor the code to control difference between the cloud and production environments by passing different hiera values.

Details

Other Assignee
jbond
Related Changes in Gerrit:

Event Timeline

jbond triaged this task as Medium priority.Aug 25 2021, 9:15 AM
jbond added a subscriber: dcaro.

Change 714980 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] debdeploy: move debdeploy to its own class

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

Change 714980 merged by Jbond:

[operations/puppet@production] debdeploy: move debdeploy to its own class

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

Change 714991 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:debdeploy::client: Add debdeploy profile

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

Change 714991 merged by Jbond:

[operations/puppet@production] P:debdeploy::client: Add debdeploy profile

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

Change 715003 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:standard: move admin to its own profile

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

Change 714975 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:base: move production specific code to there own profile

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

Change 715010 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:base: Create profile::apt

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

Change 715010 merged by Jbond:

[operations/puppet@production] P:base: Create profile::apt

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

Change 715003 merged by David Caro:

[operations/puppet@production] P:standard: move admin to its own profile

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

Change 717241 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] base::resolving: convert base::resolving to a profile

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

Change 717241 merged by Jbond:

[operations/puppet@production] base::resolving: convert base::resolving to a profile

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

Change 723509 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:base: make notifications_enabled a boolean

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

Change 723509 merged by David Caro:

[operations/puppet@production] P:base: make notifications_enabled a boolean

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

Change 725311 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:rsyslog::kafka_shipper: set hiera config directly in this profile

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

Change 725311 merged by Jbond:

[operations/puppet@production] P:rsyslog::kafka_shipper: set hiera config directly in this profile

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

Change 725317 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] debdeploy: move base::autorestart into debdeploy module

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

jbond renamed this task from Audit usages or the realm variable with a view to drop it to Refactor puppet:base module to reducs unneeded shared code paths.Oct 5 2021, 10:27 AM
jbond updated the task description. (Show Details)
jbond updated the task description. (Show Details)
jbond edited subscribers, added: joanna_borun; removed: MoritzMuehlenhoff, taavi, Aklapper and 6 others.

Change 727235 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] base::auto_restarts: move to profile and make debdeploy support optional

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

Change 725317 abandoned by Jbond:

[operations/puppet@production] debdeploy: move base::autorestart into debdeploy module

Reason:

superseded by https://gerrit.wikimedia.org/r/c/operations/puppet/+/727235

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

Change 727242 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P::base: create standard directories in base::standard_packages

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

Change 727242 merged by Jbond:

[operations/puppet@production] P::base: create standard directories in base::standard_packages

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

Change 727235 merged by Jbond:

[operations/puppet@production] base::auto_restarts: move to profile and make debdeploy support optional

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

Change 731012 had a related patch set uploaded (by David Caro; author: David Caro):

[operations/puppet@production] p:environment: Move wmcs specific etc files to p:wmcs::instance

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

Change 731012 merged by David Caro:

[operations/puppet@production] p:environment: Move wmcs specific etc files to p:wmcs::instance

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

dcaro renamed this task from Refactor puppet:base module to reducs unneeded shared code paths to Refactor puppet:base module to reduce unneeded shared code paths.Oct 15 2021, 1:58 PM

Change 714975 merged by Jbond:

[operations/puppet@production] P:base: move production specific code to their own profile

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

Change 732638 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:base::production: update production roles to use P::base::production

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

Change 732639 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:base::labs: update labs base profile to include profile::base

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

Change 732670 had a related patch set uploaded (by Jbond; author: John Bond):

[operations/puppet@production] P:base::production: add parameters to disable this profile

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

Change 732670 merged by Jbond:

[operations/puppet@production] P:base::production: add parameters to disable this profile

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

Change 732638 merged by Jbond:

[operations/puppet@production] P:base::production: update production roles to use P::base::production

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

Change 732639 merged by Jbond:

[operations/puppet@production] P:base::labs: update labs base profile to include profile::base

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

Change 737005 had a related patch set uploaded (by Vgutierrez; author: Vgutierrez):

[operations/puppet@production] upload_haproxy: Adopt ::profile::base::production

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

Change 737005 merged by Vgutierrez:

[operations/puppet@production] upload_haproxy: Adopt ::profile::base::production

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

jbond updated Other Assignee, added: jbond.

this is complete