paulbsd-salt/states/motd/install.sls

17 lines
282 B
Plaintext
Raw Permalink 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
2023-03-11 10:08:26 +01:00
- source: salt://motd/templates/motd.j2
2022-12-26 10:12:56 +01:00
- template: jinja