瀏覽代碼

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 3 年之前
父節點
當前提交
19804b937a
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. +7
    -1
      linux/system/motd.sls

+ 7
- 1
linux/system/motd.sls 查看文件

@@ -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…
取消
儲存