mirror of
https://github.com/GeekOops/geekoops-grafana.git
synced 2024-05-19 20:12:23 +00:00
Revive role
Update role to Leap 15.4 and switch molecule tests to internal Dockerfiles instead of external test images.
This commit is contained in:
parent
c9657a7a3c
commit
311ef3bf16
|
@ -5,6 +5,7 @@
|
||||||
Easy ansible role for setup of `grafana` with a custom backend. Currently only `influxdb` is supported. This ansible role works with
|
Easy ansible role for setup of `grafana` with a custom backend. Currently only `influxdb` is supported. This ansible role works with
|
||||||
|
|
||||||
- openSUSE Leap 15.3
|
- openSUSE Leap 15.3
|
||||||
|
- openSUSE Leap 15.4
|
||||||
|
|
||||||
|
|
||||||
## Role Variables
|
## Role Variables
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
---
|
---
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: Felix Niederwanger
|
author: Felix Niederwanger
|
||||||
|
role_name: nginx
|
||||||
|
namespace: grafana
|
||||||
description: Configurable grafana installation role
|
description: Configurable grafana installation role
|
||||||
company: SUSE
|
company: SUSE
|
||||||
issue_tracker_url: https://github.com/GeekOops/geekoops-grafana/issues
|
issue_tracker_url: https://github.com/GeekOops/geekoops-grafana/issues
|
||||||
|
|
7
molecule/default/Dockerfile.leap15_3
Normal file
7
molecule/default/Dockerfile.leap15_3
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM registry.opensuse.org/opensuse/leap:15.3
|
||||||
|
|
||||||
|
# Install systemd and development tools, clear cache
|
||||||
|
RUN zypper in -y systemd systemd-sysvinit firewalld python3 python3-firewall curl && rm -rf /var/cache/* && rm -f /etc/machine-id /var/lib/dbus/machine-id
|
||||||
|
|
||||||
|
# Start container with systemd
|
||||||
|
ENTRYPOINT ["/usr/sbin/init"]
|
7
molecule/default/Dockerfile.leap15_4
Normal file
7
molecule/default/Dockerfile.leap15_4
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM registry.opensuse.org/opensuse/leap:15.4
|
||||||
|
|
||||||
|
# Install systemd and development tools, clear cache
|
||||||
|
RUN zypper in -y systemd systemd-sysvinit firewalld python3 python3-firewall curl && rm -rf /var/cache/* && rm -f /etc/machine-id /var/lib/dbus/machine-id
|
||||||
|
|
||||||
|
# Start container with systemd
|
||||||
|
ENTRYPOINT ["/usr/sbin/init"]
|
|
@ -4,14 +4,23 @@ dependency:
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: docker
|
||||||
platforms:
|
platforms:
|
||||||
- name: leap15_2
|
- name: leap15_3
|
||||||
image: grisu48/leap-ansible
|
image: registry.opensuse.org/opensuse/leap:15.3
|
||||||
pre_build_image: true
|
dockerfile: Dockerfile.leap15_3
|
||||||
|
command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"}
|
||||||
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
capabilities:
|
tmpfs:
|
||||||
- SYS_ADMIN
|
- /run
|
||||||
|
- /tmp
|
||||||
|
- name: leap15_4
|
||||||
|
image: registry.opensuse.org/opensuse/leap:15.4
|
||||||
|
dockerfile: Dockerfile.leap15_4
|
||||||
|
command: ${MOLECULE_DOCKER_COMMAND:-"/usr/sbin/init"}
|
||||||
privileged: true
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /run
|
- /run
|
||||||
- /tmp
|
- /tmp
|
||||||
|
@ -19,8 +28,9 @@ provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
inventory:
|
inventory:
|
||||||
host_vars:
|
host_vars:
|
||||||
leap15_2:
|
leap15_3:
|
||||||
ansible_python_interpreter: /usr/bin/python3
|
influxdb: true
|
||||||
|
leap15_4:
|
||||||
influxdb: true
|
influxdb: true
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
---
|
---
|
||||||
|
# openSUSE Leap 15.3 specific variables
|
||||||
|
|
||||||
packages_grafana: ['grafana', 'grafana-piechart-panel', 'grafana-status-panel']
|
packages_grafana: ['grafana', 'grafana-piechart-panel', 'grafana-status-panel']
|
||||||
packages_influxdb: ['influxdb']
|
packages_influxdb: ['influxdb']
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
---
|
---
|
||||||
|
# openSUSE Leap 15.3 specific variables
|
||||||
|
|
||||||
packages_grafana: ['grafana', 'grafana-piechart-panel', 'grafana-status-panel']
|
packages_grafana: ['grafana', 'grafana-piechart-panel', 'grafana-status-panel']
|
||||||
packages_influxdb: ['influxdb']
|
packages_influxdb: ['influxdb']
|
Loading…
Reference in a new issue