Add seconf foobazdmx for workshop

This commit is contained in:
Stefan Bethke 2024-02-26 23:07:36 +01:00
parent 0f732833de
commit e96f25cc4d
3 changed files with 23 additions and 1 deletions

View file

@ -1,6 +1,6 @@
foobazdmx__art_net_host: localhost
foobazdmx_version: main
foobazdmx_repo_url: "https://ccchh-ansible:glpat-istRKj5ivdBs_u9Tsdbp@gitlab.hamburg.ccc.de/ccchh/foobazdmx.git"
foobazdmx_repo_url: "https://git.hamburg.ccc.de/CCCHH/foobazdmx.git"
ola__configs:
- name: ola-artnet
content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-artnet.conf') }}"

View file

@ -46,3 +46,15 @@
service: foobazdmx.service
state: started
enabled: true
- name: Generate foobazdmx-shop service file
become: true
ansible.builtin.template:
src: foobazdmx-shop.service.j2
dest: /etc/systemd/system/foobazdmx-shop.service
mode: "0755"
- name: Enable and start foobazdmx-shop service
become: true
ansible.builtin.systemd:
service: foobazdmx-shop.service
state: started
enabled: true

View file

@ -0,0 +1,10 @@
[Unit]
Description=Foobaz-Shop DMX
[Service]
ExecStart=poetry run python foobaz.py -a {{ foobazdmx__art_net_host }} -l 8081 -r shop -u 2
WorkingDirectory=/opt/foobazdmx
User=foobazdmx
[Install]
WantedBy=multi-user.target