Generate site_name banner for index

This commit is contained in:
Antony Messerli 2019-12-17 05:14:34 +00:00 committed by Ryan Kuba
parent d0f97a7a59
commit b5ad3ee86c
7 changed files with 12 additions and 8 deletions

View file

@ -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"

View file

@ -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

View file

@ -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="">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;_&#160;&#160;&#160;_&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;_&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><br />
<span style="">&#160;_&#160;__&#160;&#160;&#160;___|&#160;|_|&#160;|__&#160;&#160;&#160;___&#160;&#160;&#160;___&#160;|&#160;|_&#160;&#160;__&#160;&#160;___&#160;&#160;&#160;_&#160;____</span><br />
<span style="">|&#160;&#39;_&#160;\&#160;/&#160;_&#160;\&#160;__|&#160;&#39;_&#160;\&#160;/&#160;_&#160;\&#160;/&#160;_&#160;\|&#160;__|&#160;\&#160;\/&#160;/&#160;|&#160;|&#160;|_&#160;&#160;/</span><br />
<span style="">|&#160;|&#160;|&#160;|&#160;&#160;__/&#160;|_|&#160;|_)&#160;|&#160;(_)&#160;|&#160;(_)&#160;|&#160;|_&#160;_&#160;&gt;&#160;&#160;&lt;|&#160;|_|&#160;|/&#160;/&#160;</span><br />
<span style="">|_|&#160;|_|\___|\__|_.__/&#160;\___/&#160;\___/&#160;\__(_)_/\_\\__,&#160;/___|</span><br />
<span style="">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;|___/&#160;&#160;&#160;&#160;&#160;</span><br />
{{ index_title.stdout }}
<p>
Version: {{ boot_version }}<br>
Powered by <a href=https://netboot.xyz>netboot.xyz</a>

View file

@ -12,3 +12,4 @@ netbootxyz_packages:
- liblzma-dev
- syslinux
- syslinux-common
- toilet

View file

@ -7,4 +7,5 @@ netbootxyz_packages:
- httpd
- minizip-devel
- syslinux
- toilet
- xz-devel

View file

@ -12,3 +12,4 @@ netbootxyz_packages:
- liblzma-dev
- syslinux
- syslinux-common
- toilet

View file

@ -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