Support package versions (#134)
added possibility to configure server version and client version with pillar example
This commit is contained in:
parent
7cfc9f5a04
commit
ffafd2a2f5
@ -3,3 +3,6 @@
|
|||||||
openssh_client:
|
openssh_client:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ openssh.client }}
|
- name: {{ openssh.client }}
|
||||||
|
{% if openssh.client_version is defined %}
|
||||||
|
- version: {{ openssh.client_version }}
|
||||||
|
{% endif %}
|
||||||
|
@ -4,6 +4,9 @@ openssh:
|
|||||||
{% if openssh.server is defined %}
|
{% if openssh.server is defined %}
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ openssh.server }}
|
- name: {{ openssh.server }}
|
||||||
|
{% if openssh.server_version is defined %}
|
||||||
|
- version: {{ openssh.server_version }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if openssh.sshd_enable is sameas true %}
|
{% if openssh.sshd_enable is sameas true %}
|
||||||
service.running:
|
service.running:
|
||||||
|
@ -202,6 +202,10 @@ openssh:
|
|||||||
banner_string: |
|
banner_string: |
|
||||||
Welcome to {{ grains['id'] }}!
|
Welcome to {{ grains['id'] }}!
|
||||||
|
|
||||||
|
# Set installed package version
|
||||||
|
server_version: latest
|
||||||
|
client_version: latest
|
||||||
|
|
||||||
# Controls if SSHD should be enabled/started
|
# Controls if SSHD should be enabled/started
|
||||||
sshd_enable: true
|
sshd_enable: true
|
||||||
auth:
|
auth:
|
||||||
|
Loading…
Reference in New Issue
Block a user