Require basic os-release states for motd

This commit is contained in:
LinuxSquare 2023-09-30 11:55:03 +02:00
parent 5f432e16c9
commit 6aa86cbd73

View file

@ -1,3 +1,7 @@
include:
- .base
- .bootloader
system_candy_motd: system_candy_motd:
file.managed: file.managed:
- name: /etc/motd - name: /etc/motd
@ -9,4 +13,7 @@ system_candy_motd:
OS_ISSUE_URL: {{ salt['cmd.shell']('grep -E ^BUG_REPORT_URL /etc/os-release | cut -d= -f2') }} OS_ISSUE_URL: {{ salt['cmd.shell']('grep -E ^BUG_REPORT_URL /etc/os-release | cut -d= -f2') }}
- user: root - user: root
- group: root - group: root
- mode: '0644' - mode: '0644'
- require:
- system_base_os-release
- system_bootloader_os-release