Bladeren bron

Support package versions (#134)

added possibility to configure server version and client version
with pillar example
master
reschl 6 jaren geleden
bovenliggende
commit
ffafd2a2f5
3 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. +3
    -0
      openssh/client.sls
  2. +3
    -0
      openssh/init.sls
  3. +4
    -0
      pillar.example

+ 3
- 0
openssh/client.sls Bestand weergeven

@@ -3,3 +3,6 @@
openssh_client:
pkg.installed:
- name: {{ openssh.client }}
{% if openssh.client_version is defined %}
- version: {{ openssh.client_version }}
{% endif %}

+ 3
- 0
openssh/init.sls Bestand weergeven

@@ -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:

+ 4
- 0
pillar.example Bestand weergeven

@@ -202,6 +202,10 @@ openssh:
banner_string: |
Welcome to {{ grains['id'] }}!

# Set installed package version
server_version: latest
client_version: latest

# Controls if SSHD should be enabled/started
sshd_enable: true
auth:

Laden…
Annuleren
Opslaan