How do you create/set the admin username/password?
Bug #1182322 reported by
Travis Reeder
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MongoDB Charm |
Fix Released
|
Medium
|
Jorge Merlino |
Bug Description
I see you can turn on auth, but don't see how to set the admin username or password.
http://
Related branches
~jorge-merlino/charm-mongodb:lp-1836271
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- James Troup (community): Needs Fixing
- BootStack Reviewers: Pending requested
-
Diff: 1157 lines (+591/-58)15 files modifiedREADME.md (+13/-0)
config.yaml (+1/-1)
hooks/hooks.py (+261/-31)
tests/functional/tests/bundles/bionic-auth.yaml (+20/-0)
tests/functional/tests/bundles/bionic-replicated-auth.yaml (+20/-0)
tests/functional/tests/bundles/bionic-replicated.yaml (+1/-0)
tests/functional/tests/bundles/bionic-shard.yaml (+1/-0)
tests/functional/tests/bundles/bionic.yaml (+1/-0)
tests/functional/tests/bundles/focal-auth.yaml (+20/-0)
tests/functional/tests/bundles/focal-replicated-auth.yaml (+20/-0)
tests/functional/tests/bundles/focal-replicated.yaml (+1/-0)
tests/functional/tests/bundles/focal.yaml (+1/-0)
tests/functional/tests/tests.yaml (+18/-0)
tests/functional/tests/tests_mongodb.py (+16/-2)
tests/unit/test_hooks.py (+197/-24)
Changed in mongodb (Juju Charms Collection): | |
importance: | Undecided → Medium |
status: | New → Triaged |
affects: | mongodb (Juju Charms Collection) → mongodb-charm |
Changed in charm-mongodb: | |
assignee: | nobody → Jorge Merlino (jorge-merlino) |
Changed in charm-mongodb: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This patch https:/ /git.launchpad. net/charm- mongodb/ commit/ ?id=7491ce62dcb 9d62923bb3e5802 bb06b92b5377f3 mongodb/ charm_pass. conf.
creates an admin user automatically when auth is enabled. The credentials are stored in /var/lib/
These credentials can be used to create other users.