Automate light server
Co-authored-by: J <j@jsts.xyz>
This commit is contained in:
parent
aefdd123a4
commit
e74a50e873
40 changed files with 401 additions and 10 deletions
|
|
@ -1,2 +1,2 @@
|
|||
[defaults]
|
||||
inventory = ./inventories/thinkcccentre
|
||||
inventory = ./inventories/thinkcccentre/hosts.yml
|
||||
|
|
|
|||
52
inventories/thinkcccentre/host_vars/light.yml
Normal file
52
inventories/thinkcccentre/host_vars/light.yml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
ola__configs:
|
||||
- name: ola-artnet
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-artnet.conf') }}"
|
||||
- name: ola-dummy
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-dummy.conf') }}"
|
||||
- name: ola-e131
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-e131.conf') }}"
|
||||
- name: ola-espnet
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-espnet.conf') }}"
|
||||
- name: ola-ftdidmx
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-ftdidmx.conf') }}"
|
||||
- name: ola-gpio
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-gpio.conf') }}"
|
||||
- name: ola-karate
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-karate.conf') }}"
|
||||
- name: ola-kinet
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-kinet.conf') }}"
|
||||
- name: ola-milinst
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-milinst.conf') }}"
|
||||
- name: ola-opendmx
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-opendmx.conf') }}"
|
||||
- name: ola-openpixelcontrol
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-openpixelcontrol.conf') }}"
|
||||
- name: ola-osc
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-osc.conf') }}"
|
||||
- name: ola-pathport
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-pathport.conf') }}"
|
||||
- name: ola-port
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-port.conf') }}"
|
||||
- name: ola-renard
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-renard.conf') }}"
|
||||
- name: ola-sandnet
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-sandnet.conf') }}"
|
||||
- name: ola-server
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-server.conf') }}"
|
||||
- name: ola-shownet
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-shownet.conf') }}"
|
||||
- name: ola-spi
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-spi.conf') }}"
|
||||
- name: ola-stageprofi
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-stageprofi.conf') }}"
|
||||
- name: ola-uartdmx
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-uartdmx.conf') }}"
|
||||
- name: ola-universe
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-universe.conf') }}"
|
||||
- name: ola-usbdmx
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-usbdmx.conf') }}"
|
||||
- name: ola-usbserial
|
||||
content: "{{ lookup('file', 'configs/light/ola/ola-usbserial.conf') }}"
|
||||
nginx__configs:
|
||||
- name: foobazdmx
|
||||
content: "{{ lookup('file', 'configs/light/nginx/foobazdmx.conf') }}"
|
||||
8
inventories/thinkcccentre/hosts.yml
Normal file
8
inventories/thinkcccentre/hosts.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
all:
|
||||
children:
|
||||
debian_11:
|
||||
hosts:
|
||||
light:
|
||||
ansible_host: light.z9
|
||||
automation:
|
||||
ansible_host: automation.z9
|
||||
|
|
@ -5,6 +5,6 @@
|
|||
roles:
|
||||
- ola
|
||||
- foobazdmx
|
||||
- nginx
|
||||
vars:
|
||||
ola__enable_ftdi: true
|
||||
foobazdmx__art_net_host: localhost
|
||||
|
|
|
|||
8
playbooks/files/configs/light/nginx/foobazdmx.conf
Normal file
8
playbooks/files/configs/light/nginx/foobazdmx.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name light.z9;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:8080;
|
||||
}
|
||||
}
|
||||
10
playbooks/files/configs/light/ola/ola-artnet.conf
Normal file
10
playbooks/files/configs/light/ola/ola-artnet.conf
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
always_broadcast = false
|
||||
enabled = true
|
||||
ip =
|
||||
long_name = OLA - ArtNet node
|
||||
net = 0
|
||||
output_ports = 4
|
||||
short_name = OLA - ArtNet node
|
||||
subnet = 0
|
||||
use_limited_broadcast = false
|
||||
use_loopback = false
|
||||
9
playbooks/files/configs/light/ola/ola-dummy.conf
Normal file
9
playbooks/files/configs/light/ola/ola-dummy.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
ack_timer_count = 0
|
||||
advanced_dimmer_count = 1
|
||||
dimmer_count = 1
|
||||
dimmer_subdevice_count = 4
|
||||
dummy_device_count = 1
|
||||
enabled = false
|
||||
moving_light_count = 1
|
||||
network_device_count = 1
|
||||
sensor_device_count = 1
|
||||
10
playbooks/files/configs/light/ola/ola-e131.conf
Normal file
10
playbooks/files/configs/light/ola/ola-e131.conf
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
cid = 4ff3f64a-e2de-43e5-847f-d4daad6cb63b
|
||||
draft_discovery = false
|
||||
dscp = 0
|
||||
enabled = false
|
||||
ignore_preview = true
|
||||
input_ports = 5
|
||||
ip =
|
||||
output_ports = 5
|
||||
prepend_hostname = true
|
||||
revision = 0.46
|
||||
3
playbooks/files/configs/light/ola/ola-espnet.conf
Normal file
3
playbooks/files/configs/light/ola/ola-espnet.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
enabled = false
|
||||
ip =
|
||||
name = ola-EspNet
|
||||
2
playbooks/files/configs/light/ola/ola-ftdidmx.conf
Normal file
2
playbooks/files/configs/light/ola/ola-ftdidmx.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
enabled = true
|
||||
frequency = 30
|
||||
5
playbooks/files/configs/light/ola/ola-gpio.conf
Normal file
5
playbooks/files/configs/light/ola/ola-gpio.conf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
enabled = false
|
||||
gpio_pins =
|
||||
gpio_slot_offset = 1
|
||||
gpio_turn_off = 127
|
||||
gpio_turn_on = 128
|
||||
2
playbooks/files/configs/light/ola/ola-karate.conf
Normal file
2
playbooks/files/configs/light/ola/ola-karate.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
device = /dev/kldmx0
|
||||
enabled = false
|
||||
2
playbooks/files/configs/light/ola/ola-kinet.conf
Normal file
2
playbooks/files/configs/light/ola/ola-kinet.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
enabled = false
|
||||
power_supply =
|
||||
2
playbooks/files/configs/light/ola/ola-milinst.conf
Normal file
2
playbooks/files/configs/light/ola/ola-milinst.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
device =
|
||||
enabled = false
|
||||
2
playbooks/files/configs/light/ola/ola-opendmx.conf
Normal file
2
playbooks/files/configs/light/ola/ola-opendmx.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
device = /dev/dmx0
|
||||
enabled = false
|
||||
|
|
@ -0,0 +1 @@
|
|||
enabled = false
|
||||
19
playbooks/files/configs/light/ola/ola-osc.conf
Normal file
19
playbooks/files/configs/light/ola/ola-osc.conf
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
enabled = false
|
||||
input_ports = 5
|
||||
output_ports = 5
|
||||
port_0_address = /dmx/universe/%d
|
||||
port_0_output_format = blob
|
||||
port_0_targets =
|
||||
port_1_address = /dmx/universe/%d
|
||||
port_1_output_format = blob
|
||||
port_1_targets =
|
||||
port_2_address = /dmx/universe/%d
|
||||
port_2_output_format = blob
|
||||
port_2_targets =
|
||||
port_3_address = /dmx/universe/%d
|
||||
port_3_output_format = blob
|
||||
port_3_targets =
|
||||
port_4_address = /dmx/universe/%d
|
||||
port_4_output_format = blob
|
||||
port_4_targets =
|
||||
udp_listen_port = 7770
|
||||
5
playbooks/files/configs/light/ola/ola-pathport.conf
Normal file
5
playbooks/files/configs/light/ola/ola-pathport.conf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
dscp = 0
|
||||
enabled = false
|
||||
ip =
|
||||
name = ola-Pathport
|
||||
node-id = 672065429
|
||||
60
playbooks/files/configs/light/ola/ola-port.conf
Normal file
60
playbooks/files/configs/light/ola/ola-port.conf
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
11-1-I-0_priority_mode = 0
|
||||
11-1-I-0_priority_value = 100
|
||||
11-1-I-1_priority_mode = 0
|
||||
11-1-I-1_priority_value = 100
|
||||
11-1-I-2_priority_mode = 0
|
||||
11-1-I-2_priority_value = 100
|
||||
11-1-I-3_priority_mode = 0
|
||||
11-1-I-3_priority_value = 100
|
||||
11-1-I-4_priority_mode = 0
|
||||
11-1-I-4_priority_value = 100
|
||||
11-1-O-0_priority_mode = 0
|
||||
11-1-O-0_priority_value = 100
|
||||
11-1-O-1_priority_mode = 0
|
||||
11-1-O-1_priority_value = 100
|
||||
11-1-O-2_priority_mode = 0
|
||||
11-1-O-2_priority_value = 100
|
||||
11-1-O-3_priority_mode = 0
|
||||
11-1-O-3_priority_value = 100
|
||||
11-1-O-4_priority_mode = 0
|
||||
11-1-O-4_priority_value = 100
|
||||
13-A60300JF-O-1 = 1
|
||||
14-1-I-0_priority_value = 100
|
||||
14-1-I-1_priority_value = 100
|
||||
14-1-I-2_priority_value = 100
|
||||
14-1-I-3_priority_value = 100
|
||||
14-1-I-4_priority_value = 100
|
||||
2-1-I-0 = 1
|
||||
2-1-I-0_priority_value = 100
|
||||
2-1-I-1_priority_value = 100
|
||||
2-1-I-2_priority_value = 100
|
||||
2-1-I-3_priority_value = 100
|
||||
3-1-I-0_priority_value = 100
|
||||
3-1-I-1_priority_value = 100
|
||||
3-1-I-2_priority_value = 100
|
||||
3-1-I-3_priority_value = 100
|
||||
3-1-I-4_priority_value = 100
|
||||
3-1-I-5_priority_value = 100
|
||||
3-1-I-6_priority_value = 100
|
||||
3-1-I-7_priority_value = 100
|
||||
4-1-I-0_priority_value = 100
|
||||
4-1-I-1_priority_value = 100
|
||||
4-1-I-2_priority_value = 100
|
||||
4-1-I-3_priority_value = 100
|
||||
4-1-I-4_priority_value = 100
|
||||
7-1-I-0_priority_value = 100
|
||||
7-1-I-1_priority_value = 100
|
||||
7-1-I-2_priority_value = 100
|
||||
7-1-I-3_priority_value = 100
|
||||
7-1-I-4_priority_value = 100
|
||||
7-1-I-5_priority_value = 100
|
||||
7-1-I-6_priority_value = 100
|
||||
7-1-I-7_priority_value = 100
|
||||
9-1-I-0_priority_value = 100
|
||||
9-1-I-1_priority_value = 100
|
||||
9-1-I-2_priority_value = 100
|
||||
9-1-I-3_priority_value = 100
|
||||
9-1-I-4_priority_value = 100
|
||||
9-1-I-5_priority_value = 100
|
||||
9-1-I-6_priority_value = 100
|
||||
9-1-I-7_priority_value = 100
|
||||
2
playbooks/files/configs/light/ola/ola-renard.conf
Normal file
2
playbooks/files/configs/light/ola/ola-renard.conf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
device =
|
||||
enabled = false
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue