paulbsd-salt/states/motd/install.sls

17 lines
272 B
Plaintext
Raw Normal View History

2022-12-26 10:12:56 +01:00
---
motd-pkg:
pkg.installed:
- name: figlet
{% if salt["file.is_link"]("/etc/motd") %}
motd-file-link-delete:
file.absent:
- name: /etc/motd
{% endif %}
motd-file:
file.managed:
- name: /etc/motd
- source: salt://motd/motd.j2
- template: jinja