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

@@ -25,6 +25,10 @@ motd_fix_pam_sshd:
/etc/motd:
file.absent

exist_/etc/update-motd.d:
file.directory:
- name: /etc/update-motd.d

{%- for motd in system.motd %}
{%- set motd_index = loop.index %}

@@ -35,8 +39,10 @@ motd_{{ motd_index }}_{{ name }}:
- source: salt://linux/files/motd.sh
- template: jinja
- mode: 755
- require:
- require_in:
- file: /etc/update-motd.d
- require:
- file: exist_/etc/update-motd.d
- defaults:
index: {{ motd_index }}
motd_name: {{ name }}

Loading…
Cancel
Save