Pārlūkot izejas kodu

Add support for custom source.

clean-build-dependencies
Michael Kutý pirms 7 gadiem
vecāks
revīzija
c817b85234
2 mainītis faili ar 14 papildinājumiem un 1 dzēšanām
  1. +0
    -1
      home_assistant/files/requirements.txt
  2. +14
    -0
      home_assistant/server.sls

+ 0
- 1
home_assistant/files/requirements.txt Parādīt failu

@@ -1,2 +1 @@
homeassistant
netdisco

+ 14
- 0
home_assistant/server.sls Parādīt failu

@@ -13,6 +13,20 @@ home_assistant_packages:
- require:
- pkg: home_assistant_packages

home_assistant_install:
pip.installed:
{%- if server.source is defined and server.source.get("engine", "git") %}
- editable: git+{{ server.source.address }}@{{ server.source.version }}#egg=homeassistant
{%- else %}
- name: homeassistant{%- if server.source.version is defined %}=={{ server.source.version }}{%- endif %}
{%- endif %}
- pre_releases: True
- bin_env: {{ server.dir.base }}
- exists_action: w
- require:
- virtualenv: {{ server.dir.base }}
- pkg: home_assistant_packages

home_assistant_user:
user.present:
- name: home_assistant

Notiek ielāde…
Atcelt
Saglabāt