From c7af1d12a1cc9f5b7a26da01aadd65550c14dd2b Mon Sep 17 00:00:00 2001 From: Antoine Cezar Date: Mon, 22 Jul 2013 16:56:36 +0200 Subject: [PATCH] Add minion's include configurability --- files/minion | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/files/minion b/files/minion index e0c2442..0aec40f 100644 --- a/files/minion +++ b/files/minion @@ -141,6 +141,16 @@ tcp_pull_port: {{ minion.get('tcp_pull_port', '4511') }} # include: # - /etc/salt/extra_config # - /etc/roles/webserver +{% if minion['include'] is defined -%} + {% if isinstance(minion['include'], list) -%} + include: + {% for include in minion['include'] -%} + - {{ include }} + {% endfor -%} + {% else -%} + include: minion['include'] + {% endif -%} +{% endif -%} ##### Minion module management ##### ##########################################