-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Modulesync, use rspec-puppet-facts and fix tests #111
Conversation
Needed when testing operating systems other then RedHat.
This fixes a strict variables error.
`role` is used in the hiera data.
@@ -0,0 +1,29 @@ | |||
--- |
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 do wonder about excluding this (and the other nodesets) from .sync.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.
I've opened #112 since the tests aren't running at all at the moment, (and I think there was enough going on already in this PR.)
operatingsystemmajrelease: releasenum | ||
} | ||
end | ||
on_supported_os(facterversion: '3.6').each do |os, 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.
There must be a better way to do this. It can be set via an env var so should we fix this in the spec helper? Can we set it via a custom fact?
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.
yeah, that'd make sense. We could set it to a different version depending on whether we're testing against puppet 4, 5 or 6? IIRC, I've been using 3.6 as that's the version that puppet Inc ships with puppet 4.10.
No description provided.