-
Notifications
You must be signed in to change notification settings - Fork 4
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
New beaker helper bolt_supported?
to show bolt availability
#42
Conversation
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.
It didn't occur to me to implement this in the support library but I think it makes sense. One question: it doesn't take the Puppet version into account. We have that mostly encoded in puppet_metadata. What do you think about that relationship?
There must be a fairly circular dependency between Puppet, Bolt and puppetlab- modules that means bolt and puppet existence must be in close lock. Think I'd worry about it if it happens.... or we know it does happen. |
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 suppose it's safe to assume they publish Bolt for Puppet 7 & 8 on a given platform. If they don't, then we'll cross that bridge once we get there.
Can be used in `spec/spec_helper_acceptance.rb` as: ```ruby if bolt_supported(host) host.install_package('puppet-bolt') end ``` bolt_supported returns `true` or `false` depending on if a bolt package is available for a particular platform.
e841ba2
to
52cd06d
Compare
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.
CI is still running, but looks good
bolt_supported
to show bolt availabilitybolt_supported?
to show bolt availability
Can be used in
spec/spec_helper_acceptance.rb
as:bolt_supported returns
true
orfalse
depending on if a bolt package is available for a particular platform.