]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: Add GrafanaSpec.initial_admin_password
authorSebastian Wagner <sewagner@redhat.com>
Fri, 16 Jul 2021 14:20:32 +0000 (16:20 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Fri, 26 Nov 2021 10:20:11 +0000 (11:20 +0100)
commitfdae665a2fe645d3f76b212f440ffe2c96281bc0
tree5829367fc4502de66f45f12d8f6765b5112fd645
parentf2b0b451766c94505674cc1e315989c52b6bcaf5
mgr/cephadm: Add GrafanaSpec.initial_admin_password

By default, we're not creating any admin accout for Grafana now,
but we're adding an option to set the grafana password manually using:

```yaml
service_type: grafana
spec:
  initial_admin_password: mypassword
```

Users can then easily log into Grafana with the given password.

Fixes: https://tracker.ceph.com/issues/48291
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
doc/cephadm/services/monitoring.rst
src/pybind/mgr/cephadm/services/monitoring.py
src/pybind/mgr/cephadm/templates/services/grafana/grafana.ini.j2
src/pybind/mgr/cephadm/tests/test_services.py
src/python-common/ceph/deployment/service_spec.py
src/python-common/ceph/tests/test_service_spec.py