mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-30 22:15:33 +01:00
25 lines
541 B
Plaintext
25 lines
541 B
Plaintext
{% from "openssh/map.jinja" import openssh with context %}
|
|
|
|
openssh:
|
|
pkg.installed:
|
|
- name: {{ openssh.server }}
|
|
service.running:
|
|
- enable: True
|
|
- name: {{ openssh.service }}
|
|
- require:
|
|
- pkg: {{ openssh.server }}
|
|
- file: sshd_banner
|
|
- watch:
|
|
- file: sshd_config
|
|
|
|
sshd_config:
|
|
file.managed:
|
|
- name: {{ openssh.sshd_config }}
|
|
- source: {{ openssh.sshd_config_src }}
|
|
|
|
sshd_banner:
|
|
file.managed:
|
|
- name: {{ openssh.banner }}
|
|
- source: {{ openssh.banner_src }}
|
|
- template: jinja
|