|
|
|
|
|
|
|
|
/etc/motd: |
|
|
/etc/motd: |
|
|
file.absent |
|
|
file.absent |
|
|
|
|
|
|
|
|
|
|
|
exist_/etc/update-motd.d: |
|
|
|
|
|
file.directory: |
|
|
|
|
|
- name: /etc/update-motd.d |
|
|
|
|
|
|
|
|
{%- for motd in system.motd %} |
|
|
{%- for motd in system.motd %} |
|
|
{%- set motd_index = loop.index %} |
|
|
{%- set motd_index = loop.index %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- source: salt://linux/files/motd.sh |
|
|
- source: salt://linux/files/motd.sh |
|
|
- template: jinja |
|
|
- template: jinja |
|
|
- mode: 755 |
|
|
- mode: 755 |
|
|
- require: |
|
|
|
|
|
|
|
|
- require_in: |
|
|
- file: /etc/update-motd.d |
|
|
- file: /etc/update-motd.d |
|
|
|
|
|
- require: |
|
|
|
|
|
- file: exist_/etc/update-motd.d |
|
|
- defaults: |
|
|
- defaults: |
|
|
index: {{ motd_index }} |
|
|
index: {{ motd_index }} |
|
|
motd_name: {{ name }} |
|
|
motd_name: {{ name }} |