瀏覽代碼

refactor(redis): move redis_service to service.sls

tags/v1.0.0
Benjamin Neff 4 年之前
父節點
當前提交
a8d08ff1eb
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 10 行新增4 行删除
  1. +0
    -4
      diaspora/install.sls
  2. +10
    -0
      diaspora/service.sls

+ 0
- 4
diaspora/install.sls 查看文件

@@ -22,10 +22,6 @@ diaspora_database_dependency:
redis_package:
pkg.installed:
- name: {{ diaspora.redis_package }}

redis_service:
service.running:
- name: {{ diaspora.redis_service }}
{%- endif %}

{% set home = diaspora.user.get('home', '/home/' + diaspora.user.username) -%}

+ 10
- 0
diaspora/service.sls 查看文件

@@ -31,6 +31,16 @@ include:
- context:
diaspora: {{ diaspora|json }}

{%- if diaspora.install_redis %}
redis_service:
service.running:
- name: {{ diaspora.redis_service }}
- require:
- pkg: redis_package
- require_in:
- service: diaspora_service
{%- endif %}

diaspora_sidekiq_service:
service.enabled:
- name: diaspora-sidekiq

Loading…
取消
儲存