]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-grafana: Set grafana uid/gid on files
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 30 Jul 2019 20:09:47 +0000 (16:09 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 7 Aug 2019 08:41:03 +0000 (10:41 +0200)
commit308e5fe9f4884e07ebf5adcc1f543d2349adbecf
treeb7ef4dff2872a3085536a6045dfa9154d1de7466
parent6a5308fa7f267de2b93efd1106ef0c965f163a2c
ceph-grafana: Set grafana uid/gid on files

We don't need to create a grafana system user (in fact we even don't
set the righ uid to this user) because we're using a container setup.
Instead we just need to be sure to set the owner/group to 472 (grafana
user/group from the container) like we do for ceph/167.
We don't need to set the user/group recursively on /etc/grafana
directory in a dedicated task.
Also on Ubuntu system, the ceph-grafana-dashboards isn't present so on
non containerized deployment we won't have the
/etc/grafana/dashboards/ceph-dashboard directory present (coming with
the package) so we need to be sure it exists.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 34036c667c244a9a36b8775fb27f5be10fe9fed1)
roles/ceph-grafana/tasks/configure_grafana.yml
roles/ceph-grafana/tasks/setup_container.yml