瀏覽代碼

Merge pull request #1 from Craftama/custom-source

Add support for custom source and version.
clean-build-dependencies
Filip Pytloun 7 年之前
父節點
當前提交
d08789890b
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 14 行新增1 行删除
  1. +0
    -1
      home_assistant/files/requirements.txt
  2. +14
    -0
      home_assistant/server.sls

+ 0
- 1
home_assistant/files/requirements.txt 查看文件

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

+ 14
- 0
home_assistant/server.sls 查看文件

@@ -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

Loading…
取消
儲存