-
Notifications
You must be signed in to change notification settings - Fork 51
Add cm_autotls module #263
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
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.
Need to add an _info module.
plugins/modules/cm_autotls.py
Outdated
| ApiConfig, | ||
| ) | ||
|
|
||
| ANSIBLE_METADATA = { |
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.
Optional
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.
Done
plugins/modules/cm_autotls.py
Outdated
| force: | ||
| description: | ||
| - Forces enabling Auto-TLS even if it is already determined to be enabled. | ||
| - Applicable only when I(state) is C(true). |
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.
Update to the current best practices for markup: https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#semantic-markup-within-module-documentation
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.
Done
plugins/modules/cm_autotls.py
Outdated
| if self.state == "present": | ||
|
|
||
| # Enable AutoTLS if not already enabled | ||
| if existing in [None, "NONE"] or self.force: |
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 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.
Done
plugins/modules/cm_autotls.py
Outdated
| # # Initialize the return values | ||
| self.cm_config = [] | ||
| self.changed = False | ||
| self.diff = {} |
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 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.
Done
|
|
||
|
|
||
| @pytest.fixture | ||
| def conn(): |
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.
Update to use the current pytest fixtures: https://github.com/cloudera-labs/cloudera.cluster/blob/devel/tests/unit/plugins/modules/cm_service/test_cm_service.py#L41
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.
Done
d8e719f to
eb97439
Compare
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
Signed-off-by: Jim Enright <[email protected]>
771e567 to
f21b851
Compare
No description provided.