|
|
|
|
|
|
|
|
- require: |
|
|
- require: |
|
|
- file: home_assistant_config_dir |
|
|
- file: home_assistant_config_dir |
|
|
|
|
|
|
|
|
|
|
|
{%- if server.known_device is defined %} |
|
|
|
|
|
|
|
|
|
|
|
home_assistant_know_devices: |
|
|
|
|
|
file.managed: |
|
|
|
|
|
- name: /etc/home_assistant/known_devices.yaml |
|
|
|
|
|
- source: salt://home_assistant/files/known_devices.yaml |
|
|
|
|
|
- template: jinja |
|
|
|
|
|
- user: home_assistant |
|
|
|
|
|
- mode: 600 |
|
|
|
|
|
- require: |
|
|
|
|
|
- file: home_assistant_dir |
|
|
|
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
home_assistant_service_script: |
|
|
home_assistant_service_script: |
|
|
file.managed: |
|
|
file.managed: |
|
|
- name: /etc/systemd/system/home-assistant.service |
|
|
- name: /etc/systemd/system/home-assistant.service |
|
|
|
|
|
|
|
|
module.wait: |
|
|
module.wait: |
|
|
- name: service.systemctl_reload |
|
|
- name: service.systemctl_reload |
|
|
|
|
|
|
|
|
{%- if server.known_device is defined %} |
|
|
|
|
|
|
|
|
|
|
|
home_assistant_know_devices: |
|
|
|
|
|
file.managed: |
|
|
|
|
|
- name: /etc/home_assistant/known_devices.yaml |
|
|
|
|
|
- source: salt://home_assistant/files/known_devices.yaml |
|
|
|
|
|
- template: jinja |
|
|
|
|
|
- user: home_assistant |
|
|
|
|
|
- mode: 600 |
|
|
|
|
|
- require: |
|
|
|
|
|
- file: home_assistant_dir |
|
|
|
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |