Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Introducing users param in puppet-uchiwa #61

Merged
merged 2 commits into from
Dec 4, 2015

Conversation

queeno
Copy link
Contributor

@queeno queeno commented Dec 4, 2015

This PR adds support for the new users feature, introduced in uchiwa 0.10.0. This allows users to specify an array of credentials to access the uchiwa dashboard, rather than sharing the same set of keys.

This PR also fixes #46

The 'users' param in puppet-uchiwa allows to specify an array of user
credentials to access the uchiwa dashboard. This effectively enables
uchiwa to support multiple users rather than sharing the same username
and password between multiple users. This feature has been introduced in
Uchiwa 0.10.0
# Array of hashes
# An array of user credentials to access the uchiwa dashboard. If set, it takes
# precendence over 'user' and 'pass'.
# Example: [{
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you expand this example to show both a rw and ro user and use markdown to make it easier to read? Also eventually the keys will need to be quoted as strings for future-parser compat. Here I think copy/paste this:

# Example:
# ```
# [{
#   'username' => 'rouser1',
#   'password' => 'pass1',
#   'readonly'   => false,
# },
# {
#   'username' => 'rwuser1',
#   'password' => 'pass1',
#   'readonly  => false,
# }]
# ```
#

Copy link
Contributor

Choose a reason for hiding this comment

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

whoops, wrong readonly on the rw user, hopefully you get what I mean

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem @solarkennedy, hope it looks better to you now 😄

I have expanded the users parameter documentation, quoting the hash keys
for future parser compatibility and rearranging the example hash with
markdown notation.
@solarkennedy
Copy link
Contributor

Thanks!

solarkennedy added a commit that referenced this pull request Dec 4, 2015
Introducing users param in puppet-uchiwa
@solarkennedy solarkennedy merged commit 6e22ab1 into Yelp:master Dec 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the users attribute
2 participants