From ac4ed62c032fd1468c5346053a622e7de322708f Mon Sep 17 00:00:00 2001 From: Christian McHugh Date: Fri, 27 May 2016 22:35:15 -0500 Subject: [PATCH] Support engine configuration --- pillar.example | 16 ++++++++++++++++ salt/files/master.d/engine.conf | 8 ++++++++ 2 files changed, 24 insertions(+) create mode 100644 salt/files/master.d/engine.conf diff --git a/pillar.example b/pillar.example index 4414ed5..4b16756 100644 --- a/pillar.example +++ b/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: diff --git a/salt/files/master.d/engine.conf b/salt/files/master.d/engine.conf new file mode 100644 index 0000000..d2ecec6 --- /dev/null +++ b/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 -%}