mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-10-09 22:35:53 +02:00
Add openssh files
This commit is contained in:
1 parent
740c59255b
commit
1224ee95f0
4 files changed
+176
No files matched your search
@@ -0,0 +1,24 @@
|
||||
openssh:
|
||||
pkg:
|
||||
- installed
|
||||
{% if grains['os_family'] == 'Debian' %}
|
||||
- name: openssh-server
|
||||
{% endif %}
|
||||
service.running:
|
||||
- enable: True
|
||||
- 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
|
||||
Reference in new issue
Block a user