Support package versions (#134)

added possibility to configure server version and client version
with pillar example
This commit is contained in:
reschl
2018-09-03 16:42:39 +02:00
committed by Niels Abspoel
parent 7cfc9f5a04
commit ffafd2a2f5
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -3,3 +3,6 @@
openssh_client:
pkg.installed:
- name: {{ openssh.client }}
{% if openssh.client_version is defined %}
- version: {{ openssh.client_version }}
{% endif %}
+3
View File
@@ -4,6 +4,9 @@ openssh:
{% if openssh.server is defined %}
pkg.installed:
- name: {{ openssh.server }}
{% if openssh.server_version is defined %}
- version: {{ openssh.server_version }}
{% endif %}
{% endif %}
{% if openssh.sshd_enable is sameas true %}
service.running: