Hi all,
I have a module I'm trying to convert from params.pp to ripienaar/module_data. I've got to the point where I can run Puppet with:
puppet apply --debug --noop --hiera_config spec/fixtures/hiera/hiera.yaml --modulepath spec/fixtures/modules -e 'include ...'and can see from the hiera debug messages that module_data is active and is pulling info from the data directory based on the hierarchy specified in
data/hiera.yaml. However, in rspec-puppet parameters from module_data aren't getting passed through and I've run out of ideas as to why. Here's the setup that I had hoped would get things going:
spec/fixtures/hiera/hiera.yaml:---
:backends:
- module_dataspec/spec_helper.rb:require 'puppetlabs_spec_helper/module_spec_helper'
RSpec.configure do |c|
c.hiera_config = File.join('spec', 'fixtures', 'hiera', 'hiera.yaml')
end.fixtures.yaml:
fixtures:
symlinks:
module_name: "#{source_dir}"
forge_modules:
module_data: "ripienaar/module_data"
Does anyone have an idea as to why this isn't working? Is this even expected to work like this with rspec-puppet right now?
I'm using rspec-puppet 1.0.1, puppetlabs_spec_helper 0.8.1 and Puppet 3.6.2.
Thanks in advance for any help!