mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-08-02 07:07:07 +02:00
Support package versions (#134)
added possibility to configure server version and client version with pillar example
This commit is contained in:
@@ -3,3 +3,6 @@
|
||||
openssh_client:
|
||||
pkg.installed:
|
||||
- name: {{ openssh.client }}
|
||||
{% if openssh.client_version is defined %}
|
||||
- version: {{ openssh.client_version }}
|
||||
{% endif %}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user