1
0
Fork 0
mirror of https://github.com/roles-ansible/role-grafana-kiosk.git synced 2024-08-16 10:09:49 +02:00

deploy default config

This commit is contained in:
L3D 2020-06-30 17:30:36 +02:00 committed by L3D
parent fef63c592e
commit 85783bfe45
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
5 changed files with 58 additions and 1 deletions

View file

@ -7,6 +7,19 @@ grafana_kiosk:
required_packages: []
install_state: 'present'
architecture: 'autodetect'
general:
kiosk_mode: full
autofit: true
lxde: true
lxde_home: /home/pi
target:
login_method: anon
username: user
password: changeme
playlist: false
URL: https://play.grafana.org
ignore_certificate_errors: false
# perform basic versionscheck?
submodules_versioncheck: false

14
tasks/config.yml Normal file
View file

@ -0,0 +1,14 @@
---
- name: mkdir /etc/grafana-kiosk
become: true
file:
path: /etc/grafana-kiosk
state: directory
- name: deploy grafana-kiosk config
become: true
template:
src: templates/config.yml
dest: /etc/grafana-kiosk/config.yml
mode: 0644
backup: true

View file

@ -10,3 +10,5 @@
when: grafana_kiosk.install_requirements | bool
- include_tasks: install.yml
- include_tasks: config.yml

13
templates/config.yml Normal file
View file

@ -0,0 +1,13 @@
general:
kiosk-mode: {{ grafana_kiosk.general.kiosk_mode }}
autofit: {{ grafana_kiosk.general.autofit }}
lxde: {{ grafana_kiosk.general.lxde }}
lxde-home: {{ grafana_kiosk.general.lxde_home }}
target:
login-method: {{ grafana_kiosk.target.login_method }}
username: {{ grafana_kiosk.target.username }}
password: {{ grafana_kiosk.target.password }}
playlist: {{ grafana_kiosk.target.playlist }}
URL: {{ grafana_kiosk.target.URL }}
ignore-certificate-errors: {{ grafana_kiosk.target.ignore_certificate_errors }}

View file

@ -1,8 +1,23 @@
---
_grafana_kiosk:
git_release: 'v1.0.2'
git_url: 'https://github.com/grafana/grafana-kiosk'
install_requirements: true
required_packages: []
install_state: 'present'
architecture: 'autodetect'
general:
kiosk_mode: full
autofit: true
lxde: true
lxde_home: /home/pi
target:
login_method: anon
username: user
password: changeme
playlist: false
URL: https://play.grafana.org
ignore_certificate_errors: false
_dl_matrix:
'x86_64': "grafana-kiosk.linux.amd64"
@ -11,5 +26,5 @@ _dl_matrix:
'armv6l': "grafana-kiosk.linux.armv6"
'armv5l': "grafana-kiosk.linux.armv5"
playbook_version_number: 2 # should be an integer
playbook_version_number: 4 # should be an integer
playbook_version_path: 'role-grafana-kiosk_roles-ansible_github.com.version' # unique string