mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
Generate site_name banner for index
This commit is contained in:
parent
d0f97a7a59
commit
b5ad3ee86c
7 changed files with 12 additions and 8 deletions
|
|
@ -464,7 +464,7 @@ bootloaders:
|
|||
- type: "USB"
|
||||
ipxe_bin: "ipxe-efi.usb"
|
||||
output_bin: "-efi.usb"
|
||||
desc: "Used for booting from GRUB/EXTLINUX"
|
||||
desc: "Used for creation of USB Keys"
|
||||
- type: "DHCP"
|
||||
ipxe_bin: "ipxe.efi"
|
||||
output_bin: ".efi"
|
||||
|
|
|
|||
|
|
@ -26,6 +26,12 @@
|
|||
src: checksums.txt.j2
|
||||
dest: "{{ netbootxyz_root }}/ipxe/{{ checksums_filename }}"
|
||||
|
||||
- name: Generate site name banner for index
|
||||
shell: toilet -f standard {{ site_name }} --html | grep span
|
||||
register: index_title
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Generate netboot.xyz index template
|
||||
template:
|
||||
src: index.html.j2
|
||||
|
|
|
|||
|
|
@ -23,12 +23,7 @@ chain --autofree http://{{ boot_domain }}/menu.ipxe || echo HTTP failed, localbo
|
|||
</style>
|
||||
<body>
|
||||
<div style="font-family: monospace, fixed; font-weight: bold;">
|
||||
<span style="">            _   _                 _                    </span><br />
|
||||
<span style=""> _ __   ___| |_| |__   ___   ___ | |_  __  ___   _ ____</span><br />
|
||||
<span style="">| '_ \ / _ \ __| '_ \ / _ \ / _ \| __| \ \/ / | | |_  /</span><br />
|
||||
<span style="">| | | |  __/ |_| |_) | (_) | (_) | |_ _ >  <| |_| |/ / </span><br />
|
||||
<span style="">|_| |_|\___|\__|_.__/ \___/ \___/ \__(_)_/\_\\__, /___|</span><br />
|
||||
<span style="">                                             |___/     </span><br />
|
||||
{{ index_title.stdout }}
|
||||
<p>
|
||||
Version: {{ boot_version }}<br>
|
||||
Powered by <a href=https://netboot.xyz>netboot.xyz</a>
|
||||
|
|
|
|||
|
|
@ -12,3 +12,4 @@ netbootxyz_packages:
|
|||
- liblzma-dev
|
||||
- syslinux
|
||||
- syslinux-common
|
||||
- toilet
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ netbootxyz_packages:
|
|||
- httpd
|
||||
- minizip-devel
|
||||
- syslinux
|
||||
- toilet
|
||||
- xz-devel
|
||||
|
|
|
|||
|
|
@ -12,3 +12,4 @@ netbootxyz_packages:
|
|||
- liblzma-dev
|
||||
- syslinux
|
||||
- syslinux-common
|
||||
- toilet
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ set -e
|
|||
git clone https://$GIT_USER:$GIT_AUTH@$GIT_URL certs
|
||||
cp certs/certs.tar.enc .
|
||||
openssl aes-256-cbc -K $encrypted_9ca5918f08ba_key -iv $encrypted_9ca5918f08ba_iv -in certs.tar.enc -out certs.tar -d
|
||||
tar xvf certs.tar -C certs
|
||||
tar xf certs.tar -C certs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue