Add basic rttys role
This commit is contained in:
parent
fa9c652f4b
commit
d0b6cb23f5
|
@ -15,6 +15,5 @@ monit_filesystems:
|
|||
- { name: "picturesfs", path: "/opt/pictures", alert: "80%" }
|
||||
monit_web_user: "admin"
|
||||
monit_web_pasword: "password"
|
||||
rtty_server: true
|
||||
rtty_user: "admin"
|
||||
rtty_password: "password"
|
||||
rttys_http_username: "admin"
|
||||
rttys_http_pass: "password"
|
||||
|
|
4
roles/rttys/defaults/main.yml
Normal file
4
roles/rttys/defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
rttys_http_username: "admin"
|
||||
rttys_http_pass: "password"
|
3
roles/rttys/handlers/main.yml
Normal file
3
roles/rttys/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: restart rttys
|
||||
command: /usr/bin/s6-svc -r /var/run/s6/services/rttys
|
15
roles/rttys/tasks/main.yml
Normal file
15
roles/rttys/tasks/main.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: Gather instance facts
|
||||
setup:
|
||||
- block:
|
||||
- name: Setup rttys
|
||||
template:
|
||||
src: rttys.json
|
||||
dest: "/opt/rtty/rttys.json"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
notify:
|
||||
- restart rttys
|
||||
tags:
|
||||
- rttys-config
|
22
roles/rttys/templates/rttys.conf
Normal file
22
roles/rttys/templates/rttys.conf
Normal file
|
@ -0,0 +1,22 @@
|
|||
#addr-dev: :5912
|
||||
#addr-user: :5913
|
||||
|
||||
# Auth for http
|
||||
http-username: {{ rttys_http_username }}
|
||||
http-password: {{ rttys_http_pass }}
|
||||
|
||||
#ssl-cert: /etc/rttys/rttys.crt
|
||||
#ssl-key: /etc/rttys/rttys.key
|
||||
|
||||
#base-url: /
|
||||
|
||||
#token: a1d4cdb1a3cd6a0e94aa3599afcddcf5
|
||||
|
||||
# font-size: 16
|
||||
|
||||
# No login required to connect device.
|
||||
# Values can be device IDs separated by spaces,
|
||||
# or a "*" indicates that all devices do not require login
|
||||
# http://localhost:5913/connect/rtty1
|
||||
#white-list: "*"
|
||||
#white-list: rtty1 rtty2
|
Loading…
Reference in a new issue