瀏覽代碼

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.
master
Simon Lloyd 9 年之前
父節點
當前提交
462455ead9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      salt/ssh.sls

+ 1
- 1
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 %}

Loading…
取消
儲存