-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to rspec-puppet-facts #581
Conversation
require 'rspec-puppet-facts' | ||
include RspecPuppetFacts | ||
# Original fact sources: | ||
add_custom_fact :puppetversion, Puppet.version # Facter, but excluded from rspec-puppet-facts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a more up to date way to include these (maybe in spec/default_module_facts.yaml
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after a modulesync, puppetversion will be set. staging:http_get can be set via spec/default_module_facts.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 👍 Thanks for the contribution.
Hoping @bastelfreak or @alexjfisher can also review.
let(:params) { { repos_ensure: true } } | ||
has_systemd = ( | ||
(facts[:osfamily] == 'RedHat' && facts[:os]["release"]["major"].to_i >= 7) || | ||
(facts[:osfamily] == 'Debian' && facts[:os]["release"]["full"] == '16.04') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add archlinux here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add arch suport in a separate PR
Did introduce some rubocop warnings, which I'll fix while rebasing #580 |
Switch to rspec-puppet-facts
No description provided.