Add GRUB, Plymouth themes and issue for PVC
This commit is contained in:
parent
6d3e5ac728
commit
eef0f959dd
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
grub_cmdline: "console=tty0 console=ttyS{{ grub.serial_console[cluster_hardware].console }},115200"
|
grub_cmdline: "console=tty0 console=ttyS{{ grub.serial_console[cluster_hardware].console }},115200 plymouth.ignore-serial-consoles splash"
|
||||||
grub_serial: "serial --unit={{ grub.serial_console[cluster_hardware].console }} --speed=115200"
|
grub_serial: "serial --unit={{ grub.serial_console[cluster_hardware].console }} --speed=115200"
|
||||||
|
|
||||||
deploy_username: "deploy"
|
deploy_username: "deploy"
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
@ -0,0 +1,25 @@
|
||||||
|
title-text: ""
|
||||||
|
desktop-image: "/usr/share/grub-pvc/background.png"
|
||||||
|
terminal-border: "360"
|
||||||
|
terminal-left: "360"
|
||||||
|
terminal-top: "300"
|
||||||
|
terminal-width: "256"
|
||||||
|
terminal-height: "192"
|
||||||
|
+ boot_menu {
|
||||||
|
top = 40%
|
||||||
|
left = 24%
|
||||||
|
width = 60%
|
||||||
|
height = 20%
|
||||||
|
item_color = "#AAAAAA"
|
||||||
|
selected_item_color = "#FFFFFF"
|
||||||
|
item_spacing = 1
|
||||||
|
}
|
||||||
|
+ progress_bar {
|
||||||
|
id = "__timeout__"
|
||||||
|
top = 90%
|
||||||
|
left = 30%
|
||||||
|
width = 40%
|
||||||
|
height = 1
|
||||||
|
bg_color = "#000000"
|
||||||
|
fg_color = "#4444DD"
|
||||||
|
}
|
Binary file not shown.
|
@ -16,16 +16,18 @@
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set codename
|
# Set Debian details
|
||||||
#
|
#
|
||||||
- name: set release codename (with ansible_distribution_release)
|
- name: set Debian details (with ansible_distribution_*)
|
||||||
set_fact:
|
set_fact:
|
||||||
|
debian_version: "{{ ansible_distribution_major_version }}"
|
||||||
debian_codename: "{{ ansible_distribution_release }}"
|
debian_codename: "{{ ansible_distribution_release }}"
|
||||||
when: ansible_distribution_release is defined
|
when: ansible_distribution_release is defined
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- name: set release codename (with ansible_lsb)
|
- name: set Debian details (with ansible_lsb)
|
||||||
set_fact:
|
set_fact:
|
||||||
|
debian_version: "{{ ansible_lsb.major_version }}"
|
||||||
debian_codename: "{{ ansible_lsb.codename }}"
|
debian_codename: "{{ ansible_lsb.codename }}"
|
||||||
when: ansible_lsb.codename is defined
|
when: ansible_lsb.codename is defined
|
||||||
tags: always
|
tags: always
|
||||||
|
@ -231,6 +233,8 @@
|
||||||
- haveged
|
- haveged
|
||||||
- ipmitool
|
- ipmitool
|
||||||
- grub-efi
|
- grub-efi
|
||||||
|
- plymouth
|
||||||
|
- plymouth-themes
|
||||||
- linux-image-amd64
|
- linux-image-amd64
|
||||||
- linux-headers-amd64
|
- linux-headers-amd64
|
||||||
tags: base-packages
|
tags: base-packages
|
||||||
|
@ -326,6 +330,50 @@
|
||||||
- { src: "etc/dhcp/dhclient-enter-hooks.d/noresolv.j2", dest: "/etc/dhcp/dhclient-enter-hooks.d/noresolv" }
|
- { src: "etc/dhcp/dhclient-enter-hooks.d/noresolv.j2", dest: "/etc/dhcp/dhclient-enter-hooks.d/noresolv" }
|
||||||
tags: base-dns
|
tags: base-dns
|
||||||
|
|
||||||
|
# GRUB bootloader
|
||||||
|
- name: create PVC grub directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
dest: "/usr/share/grub-pvc"
|
||||||
|
|
||||||
|
- name: install PVC grub style
|
||||||
|
copy:
|
||||||
|
src: "usr/share/grub-pvc/{{ item }}"
|
||||||
|
dest: "/usr/share/grub-pvc/{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- background.png
|
||||||
|
- theme.txt
|
||||||
|
|
||||||
|
- name: install GRUB configuration
|
||||||
|
template:
|
||||||
|
src: etc/default/grub.j2
|
||||||
|
dest: /etc/default/grub
|
||||||
|
notify:
|
||||||
|
- update grub
|
||||||
|
|
||||||
|
# Plymouth theme
|
||||||
|
- name: install PVC Plymouth theme archive
|
||||||
|
unarchive:
|
||||||
|
src: "usr/share/plymouth/themes/pvc.tar"
|
||||||
|
dest: "/usr/share/plymouth/themes/"
|
||||||
|
creates: "/usr/share/plymouth/themes/pvc"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
|
||||||
|
- name: install PVC Plymouth background file
|
||||||
|
copy:
|
||||||
|
src: "usr/share/grub-pvc/background.png"
|
||||||
|
dest: "/usr/share/plymouth/themes/pvc/background-tile.png"
|
||||||
|
|
||||||
|
- name: set PVC Plymouth theme as the default
|
||||||
|
command: plymouth-set-default-theme -R pvc
|
||||||
|
|
||||||
|
# issue prompt
|
||||||
|
- name: install PVC /etc/issue file
|
||||||
|
template:
|
||||||
|
src: etc/issue.j2
|
||||||
|
dest: /etc/issue
|
||||||
|
|
||||||
# syslog
|
# syslog
|
||||||
- name: install rsyslog and logrotate configs
|
- name: install rsyslog and logrotate configs
|
||||||
template:
|
template:
|
||||||
|
@ -573,14 +621,6 @@
|
||||||
- "pvc"
|
- "pvc"
|
||||||
tags: base-ipmi
|
tags: base-ipmi
|
||||||
|
|
||||||
# GRUB bootloader
|
|
||||||
- name: install GRUB configuration
|
|
||||||
template:
|
|
||||||
src: etc/default/grub.j2
|
|
||||||
dest: /etc/default/grub
|
|
||||||
notify:
|
|
||||||
- update grub
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Configure users
|
# Configure users
|
||||||
#
|
#
|
||||||
|
|
|
@ -7,3 +7,4 @@ GRUB_CMDLINE_LINUX="{{ grub_cmdline }}"
|
||||||
GRUB_TERMINAL_INPUT="console serial"
|
GRUB_TERMINAL_INPUT="console serial"
|
||||||
GRUB_TERMINAL_OUTPUT="gfxterm serial"
|
GRUB_TERMINAL_OUTPUT="gfxterm serial"
|
||||||
GRUB_SERIAL_COMMAND="{{ grub_serial }}"
|
GRUB_SERIAL_COMMAND="{{ grub_serial }}"
|
||||||
|
GRUB_THEME="/usr/share/grub-pvc/theme.txt"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Parallel Virtual Cluster node \n \l
|
||||||
|
|
||||||
|
Base system: Debian GNU/Linux {{ debian_version }} "{{ debian_codename }}"
|
||||||
|
|
Loading…
Reference in New Issue