瀏覽代碼

Support engine configuration

tags/v0.57.0
Christian McHugh 8 年之前
父節點
當前提交
ac4ed62c03
共有 2 個檔案被更改,包括 24 行新增0 行删除
  1. +16
    -0
      pillar.example
  2. +8
    -0
      salt/files/master.d/engine.conf

+ 16
- 0
pillar.example 查看文件

@@ -43,6 +43,22 @@ salt:
# filter to use for Most other LDAP servers
auth.ldap.filter: {% raw %}'uid={{ username }}'{% endraw %}

# optional engine configuration
engines:
slack:
token: xoxp-XXXXX-XXXXXXX
control: True
valid_users:
- someuser
- otheruser
valid_commands:
- test.ping
- list_jobs
aliases:
list_jobs:
type: runner
cmd: jobs.list_jobs

# salt minion config:
minion:


+ 8
- 0
salt/files/master.d/engine.conf 查看文件

@@ -0,0 +1,8 @@
#
# This file is managed by Salt! Do not edit by hand!
#
{%- set engines = salt['pillar.get']('salt:engines') -%}
{%- if engines %}
engines:
{{ engines | yaml(False) | indent(2) }}
{%- endif -%}

Loading…
取消
儲存