Page MenuHomePhabricator

Allow per-host hiera overrides via wikitech
Closed, ResolvedPublic

Description

Currently we only have per project overrides - also need per host ones!

Event Timeline

yuvipanda raised the priority of this task from to Needs Triage.
yuvipanda updated the task description. (Show Details)
yuvipanda added projects: Cloud-Services, Puppet.
yuvipanda subscribed.

A couple of methods:

  1. Pages named Hiera:<Project>/host/hostname
  2. a 'host' key in the Hiera:<Project> page itself.

I prefer 1. so that it is possible to just copy the project Hiera page to a host's Hiera page to start customizing that.

Yeah, I prefer $1 too, since that mirrors closely what we have in the operations/puppet git repository

Change 233184 had a related patch set uploaded (by Tim Landscheidt):
Labs: Allow per-host Hiera overrides via wikitech

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

Change 233184 merged by Yuvipanda:
Labs: Allow per-host Hiera overrides via wikitech

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

Verified by temporarily setting "ssh::server::explicit_macs": true at https://wikitech.wikimedia.org/wiki/Hiera:Tools/host/tools-services-01 and running Puppet.