Add motd
This commit is contained in:
parent
c26e6f8441
commit
218910bb39
1 changed files with 14 additions and 0 deletions
|
@ -36,3 +36,17 @@ system_base_os-release:
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: '0644'
|
- mode: '0644'
|
||||||
|
|
||||||
|
system_base_motd:
|
||||||
|
file.managed:
|
||||||
|
- name: /etc/motd
|
||||||
|
- source: salt://{{ tpldir }}/files/base_motd.jinja
|
||||||
|
- template: jinja
|
||||||
|
- context:
|
||||||
|
OS_NAME: {{ salt['cmd.shell']('grep -E ^NAME /etc/os-release | cut -d= -f2 | sed \'s~"~~g\'') }}
|
||||||
|
OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2 | sed \'s~"~~g\'') }}
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: '0644'
|
||||||
|
- require:
|
||||||
|
- system_base_os-release
|
Loading…
Reference in a new issue