瀏覽代碼

Syndic service

tags/mcp0.5
Ales Komarek 7 年之前
父節點
當前提交
dec3101da7
共有 2 個檔案被更改,包括 9 行新增1 行删除
  1. +2
    -0
      salt/map.jinja
  2. +7
    -1
      salt/syndic.sls

+ 2
- 0
salt/map.jinja 查看文件



{%- load_yaml as syndic_defaults %} {%- load_yaml as syndic_defaults %}
Debian: Debian:
service: salt-syndic
pkgs: pkgs:
- salt-syndic - salt-syndic
RedHat: RedHat:
service: salt-syndic
pkgs: pkgs:
- salt-syndic - salt-syndic
{%- endload %} {%- endload %}

+ 7
- 1
salt/syndic.sls 查看文件

- template: jinja - template: jinja
- watch_in: - watch_in:
- service: salt_master_service - service: salt_master_service
- service: salt_syndic_service


{%- endif %}
salt_syndic_service:
service.running:
- name: {{ syndic.service }}
- enable: true

{%- endif %}

Loading…
取消
儲存