ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 8415a47b0b51ee1454686a31a8c5d19374e7e343
parent 6329666348e14aae1f3c1da05a044610e4704fd7
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Sat, 25 Jan 2020 14:54:38 +0200

ansible: Remove deprecated Prometheus Docker setup

Diffstat:
ansible/inventory/group_vars/grafana/all.yml | 7-------
ansible/playbooks/grafana.private.erethon.com | 8--------
ansible/roles/prometheus/tasks/main.yml | 40----------------------------------------
3 files changed, 0 insertions(+), 55 deletions(-)

diff --git a/ansible/inventory/group_vars/grafana/all.yml b/ansible/inventory/group_vars/grafana/all.yml @@ -1,7 +0,0 @@ ---- - -grafana__admin_user: '{{ lookup("password", secret + "/credentials/grafana/admin_user") }}' -grafana__admin_password: '{{ lookup("password", secret + "/credentials/grafana/admin_password") }}' -grafana__private_ip: '192.168.122.5' -grafana__port: '80' -grafana__name: 'grafana' diff --git a/ansible/playbooks/grafana.private.erethon.com b/ansible/playbooks/grafana.private.erethon.com @@ -1,8 +0,0 @@ ---- - -- hosts: spinny - become: True - - roles: - - role: debops.secret - - role: influxdb diff --git a/ansible/roles/prometheus/tasks/main.yml b/ansible/roles/prometheus/tasks/main.yml @@ -1,40 +0,0 @@ ---- - -- file: - name: "{{docker__volumes_location }}/prometheus" - state: "directory" - owner: "nobody" - group: "nogroup" - -- file: - name: "{{docker__volumes_location }}/grafana" - state: "directory" - owner: 472 - group: 472 - -- name: Prometheus container - docker_container: - name: "{{ prometheus__name }}" - image: prom/prometheus - state: started - restart_policy: always - pull: true - volumes: - - "{{ docker__volumes_location }}/prometheus:/prometheus" - -- name: Grafana container - docker_container: - name: "{{ grafana__name }}" - image: grafana/grafana - state: started - restart_policy: always - pull: true - volumes: - - "{{ docker__volumes_location }}/grafana:/var/lib/grafana" - ports: - - "{{ grafana__private_ip }}:{{ grafana__port }}:3000" - links: - - "prometheus:{{ prometheus__name }}" - env: - GF_SECURITY_ADMIN_USER="{{ grafana__admin_user }}" - GF_SECURITY_ADMIN_PASSWORD="{{ grafana__admin_password }}"