From 462455ead9ae9aad37d6a0d119f9a0b4d0b9a000 Mon Sep 17 00:00:00 2001 From: Simon Lloyd <simon@slloyd.net> Date: Thu, 9 Apr 2015 17:16:15 +0200 Subject: [PATCH] Exclude require statement when install_packages is False. The 'require' statement needs a list as input, but doesn't get any input when install_packages is set to False. --- salt/ssh.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/ssh.sls b/salt/ssh.sls index ad2b5be..d93e176 100644 --- a/salt/ssh.sls +++ b/salt/ssh.sls @@ -11,7 +11,7 @@ ensure roster config: - name: {{ salt_settings.config_path }}/roster - source: salt://salt/files/roster.jinja - template: jinja - - require: {% if salt_settings.install_packages %} + - require: - pkg: ensure salt-ssh is installed {% endif %}