The puppet-yum documentation is very straightforward, and explains how to add your own managed repo via hiera data. However, in addition to our 'release' repo, I want to conditionally add our 'build' repo to servers in our 'test' environment.
In a puppet class (init, probably), how can I (conditionally) toggle 'enable' on a nested value in common.yaml?
yum::managed_repos:
- 'project_build'
yum::repos:
project_build:
descr: 'project build repo'
ensure: 'absent' <----this needs to be 'present' in the test env
enabled: true
baseurl: 'https://repo.example.corp/project/el/$releasever/build/$basearch/'
gpgcheck: false