Parcourir la source

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 il y a 9 ans
Parent
révision
462455ead9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      salt/ssh.sls

+ 1
- 1
salt/ssh.sls Voir le fichier

@@ -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 %}

Chargement…
Annuler
Enregistrer