Skip to content

Commit

Permalink
Merge pull request #589 from alexjfisher/facterversion
Browse files Browse the repository at this point in the history
Use 3.9 as default facterlib facts version
  • Loading branch information
alexjfisher authored Sep 24, 2019
2 parents f5a2e25 + d50f6b3 commit 17f763d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Gemfile:
- gem: puppetlabs_spec_helper
version: '>= 2.14.0'
- gem: rspec-puppet-facts
version: '>= 1.8.0'
version: '>= 1.9.5'
- gem: rspec-puppet-utils
- gem: puppet-lint-leading_zero-check
- gem: puppet-lint-trailing_comma-check
Expand Down Expand Up @@ -130,5 +130,6 @@ spec/acceptance/nodesets/ubuntu-server-1604-x64.yml:
delete: true
spec/spec_helper.rb:
mock_with: ':rspec'
facterdb_facts_version: '3.9'
...
# vim: syntax=yaml
3 changes: 2 additions & 1 deletion moduleroot/spec/spec_helper.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ end
RSpec.configure do |c|
<%- if @configs['hiera_config'] -%>
c.hiera_config = <%= @configs['hiera_config'] %>

<%- end -%>
c.default_facter_version = ENV['FACTERDB_FACTS_VERSION'] || '<%= @configs['facterdb_facts_version'] %>'

# Coverage generation
c.after(:suite) do
RSpec::Puppet::Coverage.report!
Expand Down

0 comments on commit 17f763d

Please sign in to comment.