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 structured facts for os* and rabbitmq_version #579

Merged
merged 1 commit into from
Sep 2, 2017

Conversation

wyardley
Copy link
Contributor

This is failing one test currently

@wyardley
Copy link
Contributor Author

May have to rebase this anyway after #581

@wyardley wyardley force-pushed the update_facts branch 3 times, most recently from f691e76 to dba010d Compare September 1, 2017 16:46
@wyardley
Copy link
Contributor Author

wyardley commented Sep 1, 2017

@alexjfisher rebased, also updated stuff for @ekohl's recent changes and acceptance tests to use structured facts.

'Debian': {
if versioncmp($::operatingsystemmajrelease, '16.04') >= 0 {
if versioncmp($facts['os']['release']['major'], '16.04') >= 0 {
Copy link
Member

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.

Copy link
Contributor Author

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)

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in new version

@alexjfisher alexjfisher merged commit 5cd873e into voxpupuli:master Sep 2, 2017
@wyardley wyardley deleted the update_facts branch September 6, 2017 04:22
Slm0n87 pushed a commit to Slm0n87/puppet-rabbitmq that referenced this pull request Mar 7, 2019
switch to structured facts for os* and rabbitmq_version
cegeka-jenkins pushed a commit to cegeka/puppet-rabbitmq that referenced this pull request Mar 26, 2021
switch to structured facts for os* and rabbitmq_version
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