Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

init.sls 506B

11 vuotta sitten
11 vuotta sitten
11 vuotta sitten
1234567891011121314151617181920
  1. {% from "openssh/map.jinja" import openssh with context %}
  2. openssh:
  3. {% if openssh.server is defined %}
  4. pkg.installed:
  5. - name: {{ openssh.server }}
  6. {% endif %}
  7. {% if openssh.sshd_enable is sameas true %}
  8. service.running:
  9. - enable: {{ openssh.sshd_enable }}
  10. - name: {{ openssh.service }}
  11. {% if openssh.server is defined %}
  12. - require:
  13. - pkg: {{ openssh.server }}
  14. {% endif %}
  15. {% else %}
  16. service.dead:
  17. - enable: False
  18. - name: {{ openssh.service }}
  19. {% endif %}