Has anyone thought about or tried to have r10k run against a mysql backend to populate at least the information the puppetfile gives?
Updating each puppetfile for a large number of “Environments” can be burdonsome when we have to update the version on a number of modules. We already have all of our hiera data in a mysql backend and would like to try to simplify some processes.
# This loads the YAML file that Jenkins maintains of the latest commits
# approved through Gerrit.
PUPPET_DIR = ENV['PUPPET_DIR'] || '/etc/puppet'
PUPPETFILE_YAML = File.join(PUPPET_DIR, 'Puppetfile.yaml')
if File.readable?(PUPPETFILE_YAML)
require 'yaml'
data = YAML.load_file(PUPPETFILE_YAML)
data['modules'].each_pair do |modulename, moduledata|
mod modulename, :git => moduledata['git'], :commit => moduledata['ref']
end
end