浏览代码

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

正在加载...
取消
保存