paulbsd-salt/states/motd/init.sls

17 lines
269 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
2020-09-27 21:12:31 +02:00
motd-pkg:
pkg.latest:
- name: figlet
2021-12-12 10:45:57 +01:00
{% if salt["file.is_link"]("/etc/motd") %}
motd-file-link-delete:
file.absent:
- name: /etc/motd
{% endif %}
2020-07-10 00:58:55 +02:00
motd-file:
file.managed:
- name: /etc/motd
- source: salt://motd/motd.j2
2020-09-27 21:12:31 +02:00
- template: jinja