Upgrade Grafana deployment to Grafana collection

Change-Id: Id1a49547fecb886263d80a7137dd4dfb1f6c8ea1
This commit is contained in:
Marcus Klein 2023-11-10 15:36:23 +01:00
parent 7a9df911ba
commit 322d014d04
4 changed files with 12 additions and 11 deletions

View File

@ -1,5 +0,0 @@
---
- name: grafana
scm: git
src: https://github.com/cloudalchemy/ansible-grafana
version: master

View File

@ -28,6 +28,8 @@
delegate_to: "{{ traefik_staging_node }}" delegate_to: "{{ traefik_staging_node }}"
become: false become: false
tasks: tasks:
- name: Refresh local facts
setup:
- name: Built traefik installation - name: Built traefik installation
block: block:
- name: Find traefik binaries - name: Find traefik binaries
@ -94,7 +96,7 @@
- name: Install PyMySQL - name: Install PyMySQL
package: package:
name: python-pymysql name: python3-pymysql
- name: Create DB for service - name: Create DB for service
mysql_db: mysql_db:
@ -157,4 +159,4 @@
{% set _ = nodes.append(node) %} {% set _ = nodes.append(node) %}
{% endfor %} {% endfor %}
{{ nodes }} {{ nodes }}
- role: grafana - role: grafana.grafana.grafana

View File

@ -40,8 +40,8 @@ Clone the grafana role
.. code-block:: bash .. code-block:: bash
cd /opt cd /opt/openstack-ansible-ops/grafana
git clone https://github.com/cloudalchemy/ansible-grafana /etc/ansible/roles/grafana ansible-galaxy install -r requirements.yml
Copy the env.d file into place Copy the env.d file into place
@ -56,8 +56,6 @@ Copy the conf.d file into place
cp conf.d/grafana.yml /etc/openstack_deploy/conf.d/ cp conf.d/grafana.yml /etc/openstack_deploy/conf.d/
Create the containers
Create the containers Create the containers
.. code-block:: bash .. code-block:: bash

6
grafana/requirements.yml Normal file
View File

@ -0,0 +1,6 @@
---
collections:
- name: grafana.grafana
version: 2.2.3
type: galaxy