Pārlūkot izejas kodu

testing directory cleaned

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/224/head
risca pirms 3 gadiem
vecāks
revīzija
19804b937a
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. +7
    -1
      linux/system/motd.sls

+ 7
- 1
linux/system/motd.sls Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt