mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 05:38:20 +01:00
90ce0d262f
Current code was asking for service 'openssh' which does not exist. It is 'ssh'. Specifying a name in the `service.running` block fixes this.
26 lines
507 B
Plaintext
26 lines
507 B
Plaintext
openssh:
|
|
pkg:
|
|
- installed
|
|
{% if grains['os_family'] == 'Debian' %}
|
|
- name: openssh-server
|
|
{% endif %}
|
|
service.running:
|
|
- enable: True
|
|
- name: ssh
|
|
- 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
|