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:
parent
fef63c592e
commit
85783bfe45
5 changed files with 58 additions and 1 deletions
|
@ -7,6 +7,19 @@ grafana_kiosk:
|
||||||
required_packages: []
|
required_packages: []
|
||||||
install_state: 'present'
|
install_state: 'present'
|
||||||
architecture: 'autodetect'
|
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?
|
# perform basic versionscheck?
|
||||||
submodules_versioncheck: false
|
submodules_versioncheck: false
|
||||||
|
|
14
tasks/config.yml
Normal file
14
tasks/config.yml
Normal 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
|
|
@ -10,3 +10,5 @@
|
||||||
when: grafana_kiosk.install_requirements | bool
|
when: grafana_kiosk.install_requirements | bool
|
||||||
|
|
||||||
- include_tasks: install.yml
|
- include_tasks: install.yml
|
||||||
|
|
||||||
|
- include_tasks: config.yml
|
||||||
|
|
13
templates/config.yml
Normal file
13
templates/config.yml
Normal 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 }}
|
|
@ -1,8 +1,23 @@
|
||||||
---
|
---
|
||||||
_grafana_kiosk:
|
_grafana_kiosk:
|
||||||
|
git_release: 'v1.0.2'
|
||||||
|
git_url: 'https://github.com/grafana/grafana-kiosk'
|
||||||
install_requirements: true
|
install_requirements: true
|
||||||
required_packages: []
|
required_packages: []
|
||||||
install_state: 'present'
|
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:
|
_dl_matrix:
|
||||||
'x86_64': "grafana-kiosk.linux.amd64"
|
'x86_64': "grafana-kiosk.linux.amd64"
|
||||||
|
@ -11,5 +26,5 @@ _dl_matrix:
|
||||||
'armv6l': "grafana-kiosk.linux.armv6"
|
'armv6l': "grafana-kiosk.linux.armv6"
|
||||||
'armv5l': "grafana-kiosk.linux.armv5"
|
'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
|
playbook_version_path: 'role-grafana-kiosk_roles-ansible_github.com.version' # unique string
|
||||||
|
|
Loading…
Reference in a new issue