Browse Source

Add FreeBSD compatibility

tags/v0.41.0
Alan Pearce 10 years ago
parent
commit
edc208b79b
2 changed files with 11 additions and 0 deletions
  1. +4
    -0
      openssh/init.sls
  2. +7
    -0
      openssh/map.jinja

+ 4
- 0
openssh/init.sls View File

@@ -1,10 +1,14 @@
{% from "openssh/map.jinja" import openssh with context %}

openssh:
{% if openssh.server is defined %}
pkg.installed:
- name: {{ openssh.server }}
{% endif %}
service.running:
- enable: True
- name: {{ openssh.service }}
{% if openssh.server is defined %}
- require:
- pkg: {{ openssh.server }}
{% endif %}

+ 7
- 0
openssh/map.jinja View File

@@ -17,4 +17,11 @@
'banner': '/etc/ssh/banner',
'banner_src': 'salt://openssh/files/banner',
},
'FreeBSD': {
'service': 'sshd',
'sshd_config': '/etc/ssh/sshd_config',
'sshd_config_src': 'salt://openssh/files/sshd_config',
'banner': '/etc/ssh/banner',
'banner_src': 'salt://openssh/files/banner',
}
}, merge=salt['pillar.get']('openssh:lookup')) %}

Loading…
Cancel
Save