quick update

Signed-off-by: Thomas Schmid <tom@lfence.de>
This commit is contained in:
Thomas 2023-04-10 15:10:14 +02:00
parent aa6286623d
commit d6a87fdd48
11 changed files with 113 additions and 65 deletions

4
hosts
View File

@ -1,4 +1,6 @@
noodlehub.binary.kitchen noodlehub.binary.kitchen
cannelloni.binary.kitchen
bkvoron
[3D_Printers] [3D_Printers]
spaghetti.binary.kitchen spaghetti.binary.kitchen
@ -9,5 +11,5 @@ maccaroni.binary.kitchen
[Octoprint_hosts] [Octoprint_hosts]
spaghetti.binary.kitchen spaghetti.binary.kitchen
maccaroni.binary.kitchen maccaroni.binary.kitchen
cannelloni.binary.kitchen #cannelloni.binary.kitchen

View File

@ -1,6 +1,7 @@
[server] [server]
host: {{ moonraker_host }} host: {{ moonraker_host }}
port: {{ moonraker_port }} port: {{ moonraker_port }}
klippy_uds_address: /tmp/klipper_uds
[file_manager] [file_manager]
config_path: {{ moonraker_file_manager_config_path }} config_path: {{ moonraker_file_manager_config_path }}
@ -12,13 +13,15 @@ enable_object_processing: True
trusted_clients: trusted_clients:
0.0.0.0/0 0.0.0.0/0
[secrets]
secrets_path: /etc/moonraker/passwd
[octoprint_compat] [octoprint_compat]
[history] [history]
[zeroconf] [zeroconf]
[mqtt]
address: pizza.binary.kitchen
username: 3dprinter
password: Su7nu3oof6ah
instance_name: MainC/Lab/3dPrinter/cannelloni
publish_split_status: True

View File

@ -7,6 +7,7 @@ octoprint_has_webcam: false
octoprint_default_plugins: octoprint_default_plugins:
- "https://github.com/OctoPrint/OctoPrint-MQTT/archive/master.zip" - "https://github.com/OctoPrint/OctoPrint-MQTT/archive/master.zip"
- "https://github.com/eyal0/OctoPrint-PrintTimeGenius/archive/master.zip"
octoprint_config_salt: "{{ octoprint_salt }}" octoprint_config_salt: "{{ octoprint_salt }}"
octoprint_config_api_key: "{{ octoprint_api_key}}" octoprint_config_api_key: "{{ octoprint_api_key}}"

View File

@ -5,10 +5,11 @@ appearance:
accessControl: accessControl:
salt: "{{ octoprint_config_salt }}" salt: "{{ octoprint_config_salt }}"
autologinLocal: true
autologinAs: binarykitchen autologinAs: binarykitchen
localNetworks: localNetworks:
- 127.0.0.0/8 - 127.0.0.0/8
- 172.23.0.0/16 - 172.23.3.0/24
api: api:
key: "{{ octoprint_config_api_key }}" key: "{{ octoprint_config_api_key }}"
@ -16,6 +17,10 @@ api:
plugins: plugins:
tracking: tracking:
enabled: false enabled: false
announcements:
enabled_channels:
- _important
- _releases
printerProfiles: printerProfiles:
default: {{ octoprint_config_default_profile }} default: {{ octoprint_config_default_profile }}

View File

@ -0,0 +1,2 @@
ustreamer_user: ustreamer
ustreamer_group: ustreamer

View File

@ -0,0 +1,5 @@
- name: Reload systemd
systemd: daemon_reload=yes
- name: Restart ustreamer
service: name=ustreamer state=restared

View File

@ -0,0 +1,29 @@
- name: Create group
group:
name: "{{ ustreamer_group }}"
- name: Create user
user:
name: "{{ ustreamer_user }}"
group: "{{ ustreamer_group }}"
append: yes
groups:
- video
- name: Install ustreamer dependencies
apt:
name:
- ffmpeg
- ustreamer
- name: Install systemd unit
template: src=ustreamer.service.j2 dest=/lib/systemd/system/ustreamer.service
notify:
- Reload systemd
- Restart ustreamer
- name: Enable and start ustreamer
service:
name: ustreamer
state: started
enabled: yes

View File

@ -0,0 +1,19 @@
[Unit]
Description=Ustreamer
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User={{ ustreamer_user }}
Group={{ ustreamer_user }}
{% if ustreamer_args is defined %}
ExecStart=/usr/bin/ustreamer {{ustreamer_args}}
{% else %}
ExecStart=/usr/bin/ustreamer
{% endif %}
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -4,20 +4,7 @@
- common - common
- root_keys - root_keys
- name: Setup noodlehub
hosts: noodlehub.binary.kitchen
roles:
- noodlehub
tags: noodlehub
- name: Setup klipper
hosts: cannelloni.binary.kitchen
roles:
- klipper
tags: klipper
- name: Setup octoprint - name: Setup octoprint
hosts: [Octoprint_hosts] hosts: [Octoprint_hosts]
roles: roles:
- octoprint - octoprint
tags: octoprint

View File

@ -1,10 +1,5 @@
- name: Setup common rules - name: Setup mainsail
hosts: raspberrypi hosts: cannelloni.binary.kitchen
roles: roles:
- common - moonraker
- root_keys - mainsail
- name: Setup octoprint
hosts: raspberrypi
roles:
- octoprint