Allow to config banner in pillar
This commit is contained in:
parent
467c5e56fc
commit
500c915c33
@ -6,5 +6,10 @@ include:
|
|||||||
sshd_banner:
|
sshd_banner:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ openssh.banner }}
|
- name: {{ openssh.banner }}
|
||||||
|
{% if openssh.banner_string is defined %}
|
||||||
|
- contents: |
|
||||||
|
{{ openssh.banner_string }}
|
||||||
|
{% else %}
|
||||||
- source: {{ openssh.banner_src }}
|
- source: {{ openssh.banner_src }}
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
{% endif %}
|
||||||
|
@ -177,6 +177,10 @@ ssh_config:
|
|||||||
|
|
||||||
|
|
||||||
openssh:
|
openssh:
|
||||||
|
# Instead of adding a custom banner file you can set it in pillar
|
||||||
|
banner_string: |
|
||||||
|
Welcome to {{ grains['id'] }}!
|
||||||
|
|
||||||
# Controls if SSHD should be enabled/started
|
# Controls if SSHD should be enabled/started
|
||||||
sshd_enable: true
|
sshd_enable: true
|
||||||
auth:
|
auth:
|
||||||
|
Loading…
Reference in New Issue
Block a user