Upgrade Grafana deployment to Grafana collection
Change-Id: Id1a49547fecb886263d80a7137dd4dfb1f6c8ea1
This commit is contained in:
parent
7a9df911ba
commit
322d014d04
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: grafana
|
|
||||||
scm: git
|
|
||||||
src: https://github.com/cloudalchemy/ansible-grafana
|
|
||||||
version: master
|
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
@ -58,8 +58,6 @@ Copy the conf.d file into place
|
|||||||
|
|
||||||
Create the containers
|
Create the containers
|
||||||
|
|
||||||
Create the containers
|
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
cd /opt/openstack-ansible/playbooks
|
cd /opt/openstack-ansible/playbooks
|
||||||
|
6
grafana/requirements.yml
Normal file
6
grafana/requirements.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
collections:
|
||||||
|
- name: grafana.grafana
|
||||||
|
version: 2.2.3
|
||||||
|
type: galaxy
|
Loading…
Reference in New Issue
Block a user