Merge pull request #14 from alanpearce/freebsd
Add FreeBSD compatibility
This commit is contained in:
commit
2f844e5b21
@ -1,10 +1,14 @@
|
|||||||
{% from "openssh/map.jinja" import openssh with context %}
|
{% from "openssh/map.jinja" import openssh with context %}
|
||||||
|
|
||||||
openssh:
|
openssh:
|
||||||
|
{% if openssh.server is defined %}
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ openssh.server }}
|
- name: {{ openssh.server }}
|
||||||
|
{% endif %}
|
||||||
service.running:
|
service.running:
|
||||||
- enable: True
|
- enable: True
|
||||||
- name: {{ openssh.service }}
|
- name: {{ openssh.service }}
|
||||||
|
{% if openssh.server is defined %}
|
||||||
- require:
|
- require:
|
||||||
- pkg: {{ openssh.server }}
|
- pkg: {{ openssh.server }}
|
||||||
|
{% endif %}
|
||||||
|
@ -17,4 +17,11 @@
|
|||||||
'banner': '/etc/ssh/banner',
|
'banner': '/etc/ssh/banner',
|
||||||
'banner_src': 'salt://openssh/files/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')) %}
|
}, merge=salt['pillar.get']('openssh:lookup')) %}
|
||||||
|
Loading…
Reference in New Issue
Block a user