Page MenuHomePhabricator

Hiera hierarchy hieradata/role/* is not applied on labs (eg deployment-prep)
Closed, DuplicatePublic

Description

Production has a lot of settings under hiera /hieradata/role/* which are not looked up on labs project. Found that while looking at:

Examples:

hieradata/role/common/mediawiki/appserver.yaml:17:nutcracker::verbosity: "4"
hieradata/role/common/cache/text.yaml:2:cache::cluster: text

The reason are the production vs labs hierarchy being different, the labs one does not have a role_hierarchy:

production

./modules/puppetmaster/files/production.hiera.yaml

:hierarchy:
  - "hosts/%{::hostname}"
  - "regex/%{::fqdn}"
  - "%{::site}/%{::realm}"
  - "%{::site}"
  - "private/%{::site}/%{::realm}"
  - "private/%{::site}"
  - "common"
  - "private/common"

:role_hierarchy:
  - "%{::site}"
  - "common"
  - "private/%{::site}"
  - "private/common"

labs

./modules/puppetmaster/files/labs.hiera.yaml

:hierarchy:
  - "labs/hosts/%{::hostname}"
  - "labs/%{::labsproject}/host/%{::hostname}"
  - "labs/%{::labsproject}/common"
  - "labs"
  - "secret/%{::labsproject}"
  - "private/%{::labsproject}"
  - common
  - "secret/common"
  - "private/common"

That apparently got introduced in May 2015 with 196fd9dbbaa7fb26305b94b53caa3dc6990efad0

Event Timeline

hashar created this task.May 24 2016, 10:55 AM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptMay 24 2016, 10:55 AM
Dzahn added a subscriber: Dzahn.May 26 2016, 12:37 AM

yes, i think that's a duplicate. a real "merge" of the content is still being missed for these cases

Thanks @scfc marked this as a duplicate of T120165. I have copy pasted my extended task description there.