19 lines
No EOL
618 B
Text
19 lines
No EOL
618 B
Text
include:
|
|
- .base
|
|
- .bootloader
|
|
|
|
system_candy_motd:
|
|
file.managed:
|
|
- name: /etc/motd
|
|
- source: salt://{{ tpldir }}/files/candy_motd.jinja
|
|
- template: jinja
|
|
- context:
|
|
OS_NAME: {{ salt['cmd.shell']('grep -E ^PRETTY_NAME /etc/os-release | cut -d= -f2') }}
|
|
OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /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
|
|
- group: root
|
|
- mode: '0644'
|
|
- require:
|
|
- system_base_os-release
|
|
- system_bootloader_os-release |