Add /etc/issue
This commit is contained in:
parent
1fcb1fd13f
commit
5972218cc7
2 changed files with 14 additions and 0 deletions
|
@ -65,3 +65,15 @@ system_bootloader_motd:
|
||||||
- require:
|
- require:
|
||||||
- system_bootloader_os-release
|
- system_bootloader_os-release
|
||||||
- system_bootloader_motd_dir
|
- system_bootloader_motd_dir
|
||||||
|
|
||||||
|
system_bootloader_issue:
|
||||||
|
file.managed:
|
||||||
|
- name: /etc/issue
|
||||||
|
- source: salt://{{ tpldir }}/files/bootloader_issue.jinja
|
||||||
|
- template: jinja
|
||||||
|
- context:
|
||||||
|
OS_NAME: {{ salt['cmd.shell']('echo NoveriaOS $(date "+%Y%m")') }}
|
||||||
|
OS_RELEASE_INFO: {{ CURRENT_SUBVOLUME_TIMESTAMP_HUMAN }}
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: '0644'
|
||||||
|
|
2
system/files/bootloader_issue.jinja
Normal file
2
system/files/bootloader_issue.jinja
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Velkommen til {{ OS_NAME }}
|
||||||
|
Timestamp: {{ OS_RELEASE_INFO }} | Kernel \r
|
Loading…
Reference in a new issue