Skip to content
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

Merged
merged 1 commit into from
Aug 31, 2017
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 31, 2017

No description provided.

require 'rspec-puppet-facts'
include RspecPuppetFacts
# Original fact sources:
add_custom_fact :puppetversion, Puppet.version # Facter, but excluded from rspec-puppet-facts
Copy link
Contributor

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)?

Copy link
Member

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

Copy link
Contributor

@wyardley wyardley left a 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')
Copy link
Member

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?

Copy link
Member

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

@bastelfreak bastelfreak merged commit 3a8ce9a into voxpupuli:master Aug 31, 2017
@ekohl ekohl deleted the rspec-puppet-facts branch August 31, 2017 09:17
@wyardley
Copy link
Contributor

Did introduce some rubocop warnings, which I'll fix while rebasing #580

slm0n87 pushed a commit to slm0n87/puppet-rabbitmq that referenced this pull request Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants