Browse Source

testing directory cleaned (#224)

modified:   linux/system/motd.sls

	modified:   linux/system/motd.sls

	modified:   linux/system/motd.sls
	modified:   linux/system/motd.sls

	modified:   linux/system/motd.sls
pull/225/head
Riccardo Scartozzi (risca) 3 years ago
parent
commit
f9beff8f7d
No account linked to committer's email address
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      linux/system/motd.sls

+ 7
- 1
linux/system/motd.sls View File

/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 }}

Loading…
Cancel
Save