-
-
Notifications
You must be signed in to change notification settings - Fork 503
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 structured facts for os* and rabbitmq_version #579
Conversation
May have to rebase this anyway after #581 |
f691e76
to
dba010d
Compare
@alexjfisher rebased, also updated stuff for @ekohl's recent changes and acceptance tests to use structured facts. |
manifests/config.pp
Outdated
'Debian': { | ||
if versioncmp($::operatingsystemmajrelease, '16.04') >= 0 { | ||
if versioncmp($facts['os']['release']['major'], '16.04') >= 0 { |
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 know this is a 1-to-1 conversion but the major is 16
so does that mean it'll only be true for 17.04
? Maybe the ['full']
fact would be better.
Things might also need explicit Debian/Ubuntu checks if you add Debian 9 to the mix but that's for later.
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.
maybe we should just do major => 16?
I don't think the module supports 16 yet, though we should add support for it (someone was asking for it this morning)
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.
Though I guess it should eval true anyway because it's versioncmp()
? I'll just switch to full assuming tests pass.
Would be great if someone could update the acceptance tests for 16.x
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.
Updated in new version
dba010d
to
1c42f42
Compare
switch to structured facts for os* and rabbitmq_version
switch to structured facts for os* and rabbitmq_version
This is failing one test currently