Skip to content

Conversation

@slivik
Copy link
Contributor

@slivik slivik commented Jun 5, 2018

What does this PR do?

There was no way to change Zabbix default password statefully. This state provides it. Detailed description in docstring.

Tests written?

No

Commits signed with GPG?

Yes

Copy link
Contributor

@rallytime rallytime left a comment

Choose a reason for hiding this comment

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

Hi @slivik - I just have a couple of minor fixes. Otherwise, this looks good. Thanks for adding this.

:param passwd: user's password
:param usrgrps: user groups to add the user to
:param medias: user's medias to create
:param medias: OPtional - user's medias to create
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: Optional

.. code-block:: yaml
# password taken from pillar or _connection_password
Copy link
Contributor

Choose a reason for hiding this comment

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

This whole block to the end of the example needs to be indented for the code-block to render correctly.

1) Tries to log in as Admin with password found in state password parameter or _connection_password
or pillar or default zabbix password in this precise order order, if any of them is present.
2) If one of above passwords found is successful it tries to update the most prioritized password.
Copy link
Contributor

Choose a reason for hiding this comment

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

If one of the above passwords is found, it I think the is successful part here is redundant.

@rallytime rallytime merged commit 3858e30 into saltstack:develop Jul 11, 2018
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.

2 participants