Saltstack Official Home Assistant Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
689B

  1. {%- set source_engine = salt['pillar.get']('home_assistant:server:source:engine') %}
  2. {%- load_yaml as base_defaults %}
  3. {%- if source_engine == 'git' %}
  4. Debian:
  5. pkgs:
  6. - python-psycopg2
  7. dir:
  8. base: /srv/home_assistant/venv
  9. home: /var/lib/home_assistant
  10. workspace: /srv/home_assistant/workspace
  11. RedHat:
  12. pkgs:
  13. - python-psycopg2
  14. dir:
  15. base: /srv/home_assistant/venv
  16. home: /var/lib/home_assistant
  17. workspace: /srv/home_assistant/workspace
  18. {%- else %}
  19. Debian:
  20. pkgs:
  21. - helpdesk
  22. dir:
  23. base: /usr/lib/home_assistant
  24. {%- endif %}
  25. {%- endload %}
  26. {%- set server = salt['grains.filter_by'](base_defaults, merge=salt['pillar.get']('home_assistant:server')) %}