2013-06-13 19:16:18 +02:00
|
|
|
openssh:
|
|
|
|
pkg:
|
|
|
|
- installed
|
|
|
|
{% if grains['os_family'] == 'Debian' %}
|
|
|
|
- name: openssh-server
|
|
|
|
{% endif %}
|
|
|
|
service.running:
|
|
|
|
- enable: True
|
2013-12-05 13:57:21 +01:00
|
|
|
- name: ssh
|
2013-06-13 19:16:18 +02:00
|
|
|
- require:
|
|
|
|
- pkg: openssh
|
|
|
|
- file: sshd_banner
|
|
|
|
- watch:
|
|
|
|
- file: sshd_config
|
|
|
|
|
|
|
|
sshd_config:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/ssh/sshd_config
|
|
|
|
- source: salt://openssh/files/sshd_config
|
|
|
|
|
|
|
|
sshd_banner:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/ssh/banner
|
|
|
|
- source: salt://openssh/files/banner
|
|
|
|
- template: jinja
|