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

Support all option with rabbitmq_feature_flag #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jovial
Copy link

@jovial jovial commented Apr 2, 2024

SUMMARY

This is useful to enable all feature flags before an upgrade, see:

I switched to using the json output instead of attempting to parse the tabbed output for simplicity. I also
needed to include the stability field as 'all' only enables stable features. This was needed to correctly
set the changed field.

Fixes: #169

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

rabbitmq_feature_flag

ADDITIONAL INFORMATION

@mnasiadka
Copy link

/rebuild

@mnasiadka
Copy link

@cognifloyd @odyssey4me @jgkirschbaum @Im0
Can you help in getting this reviewed? It would be very helpful for Kolla-Ansible OpenStack project (instead of running this using command)

@@ -49,20 +51,29 @@ def __init__(self, module, name, node):

def _exec(self, args, force_exec_in_check_mode=False):
if not self.module.check_mode or (self.module.check_mode and force_exec_in_check_mode):
cmd = [self._rabbitmqctl, '-q', '-n', self.node]
cmd = [self._rabbitmqctl, '--formatter', 'json', '-q', '-n', self.node]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does using this restrict which versions of rabbitmq we support?

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.

Support all option in rabbitmq_feature_flag module
3 participants