Closed GeoffWilliams closed 8 years ago
Problem seems to be here:
def r10k_config_file
r10k_config_file = File.expand_path('./r10k.yaml',@spec_dir) if File.exist?(File.expand_path('./r10k.yaml',@spec_dir))
r10k_config_file = File.expand_path('./r10k.yaml',@root) if File.exist?(File.expand_path('./r10k.yaml',@root))
r10k_config_file
end
def r10k_config
YAML.load_file(r10k_config_file)
end
Can we live without an R10K config file and just process the Puppetfile?
I propose fixing this one by doing a manual copy of the all the files in the control repo to the temp dir and then processing the Puppetfile. That way we don't need r10k config file at all.
In my own repository I have a bootstrap script that I can run but not everybody is going to want to do this. It should be possible to just process the Puppetfile in the current directory, like this https://github.com/puppetlabs/r10k/blob/master/doc/puppetfile.mkd#environment-variables
So if we do that and a copy we should be golden and not need r10k.conf at all
Done
Overview
Ruby error encountered after copying in default config files from https://github.com/dylanratcliffe/puppet_controlrepo
Expected result
Tests should run or give actionable error
Actual result
trace output