fix liquidctl
This commit is contained in:
@@ -4,8 +4,8 @@ Description=AIO startup service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/root/liquidctl/bin/liquidctl --match {{ salt.grains.get('corsair_aio') }} initialize --pump-mode=extreme
|
||||
ExecStart=/root/liquidctl/bin/liquidctl --match {{ salt.grains.get('corsair_aio') }} set fan speed 90
|
||||
ExecStart=/usr/local/lib/liquidctl/bin/liquidctl --match {{ salt.grains.get('corsair_aio') }} initialize --pump-mode=extreme
|
||||
ExecStart=/usr/local/lib/liquidctl/bin/liquidctl --match {{ salt.grains.get('corsair_aio') }} set fan speed 90
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
@@ -2,10 +2,22 @@
|
||||
|
||||
{% set venv = '/usr/local/lib/liquidctl' %}
|
||||
|
||||
python3-venv:
|
||||
pkg.installed: []
|
||||
|
||||
setup liquidctl venv:
|
||||
cmd.run:
|
||||
- name: python3 -m venv {{ venv }}
|
||||
- creates: {{ venv }}
|
||||
- require:
|
||||
- pkg: python3-venv
|
||||
|
||||
liquidctl-deps:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- make
|
||||
- gcc
|
||||
- python3-dev
|
||||
|
||||
install liquidctl:
|
||||
cmd.run:
|
||||
@@ -13,6 +25,7 @@ install liquidctl:
|
||||
- unless: /usr/local/lib/liquidctl/bin/pip3 freeze | grep -q ^liquidctl==
|
||||
- require:
|
||||
- cmd: setup liquidctl venv
|
||||
- pkg: liquidctl-deps
|
||||
|
||||
/etc/systemd/system/liquidcfg.service:
|
||||
file.managed:
|
||||
|
||||
Reference in New Issue
Block a user