Fix template for updated pvcbootstrapd

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:58 -04:00
parent 36ffc2cebf
commit ab7662c6de
3 changed files with 21 additions and 34 deletions

View File

@ -124,8 +124,9 @@ build_pxe() {
cp templates/boot.ipxe ${outputdir}/boot.ipxe cp templates/boot.ipxe ${outputdir}/boot.ipxe
echo "done." echo "done."
echo -n "Copying preseed template... " echo -n "Copying jinja2 templates... "
cp templates/host-preseed.j2 ${outputdir}/host-preseed.j2 cp templates/host-preseed.j2 ${outputdir}/host-preseed.j2
cp templates/host-ipxe.j2 ${outputdir}/host-ipxe.j2
echo "done." echo "done."
sudo chown -R $(whoami) ${outputdir} sudo chown -R $(whoami) ${outputdir}

View File

@ -1,5 +1,5 @@
#!ipxe #!ipxe
{% if imgargs_host is defined and imgargs_host %} {% if imgargs_host is defined and imgargs_host -%}
set imgargs-host {{ imgargs_host }} set imgargs-host {{ imgargs_host }}
{% endif %} {%- endif %}

View File

@ -11,53 +11,40 @@
### General definitions/overrides ### General definitions/overrides
### ###
{% if debrelease is defined and debrelease %} {%- if debrelease is defined and debrelease %}
# The Debian release to use (overrides the default) # The Debian release to use (overrides the default)
#debrelease="buster" debrelease="{{ debrelease }}"
debrelease="{debrelease}"
{% endif %} {% endif %}
{% if debmirror is defined and debmirror %} {%- if debmirror is defined and debmirror %}
# The Debian mirror to use (overrides the default) # The Debian mirror to use (overrides the default)
#debmirror="http://debian.mirror.rafal.ca/debian" debmirror="{{ debmirror }}"
debmirror="{debmirror}" {%- endif %}
{% endif %}
{% if addpkglist is defined and addpkglist %} {%- if addpkglist is defined and addpkglist %}
# Additional packages (comma-separated) to install in the base system # Additional packages (comma-separated) to install in the base system
#addpkglist="mypackage,otherpackage" addpkglist="{{ addpkglist }}"
addpkglist="{addpkglist}" {%- endif %}
{% endif %}
{% if filesystem is defined and filesystem %} {%- if filesystem is defined and filesystem %}
# Alternate filesystem for system volumes (/, /var/lib/ceph, /var/lib/zookeeper) # Alternate filesystem for system volumes (/, /var/lib/ceph, /var/lib/zookeeper)
#filesystem=ext4 filesystem="{{ filesystem }}"
filesystem="{filesystem}" {%- endif %}
{% endif %}
{% if skip_blockcheck is defined and skip_blockcheck %} {%- if skip_blockcheck is defined and skip_blockcheck %}
# Skip block zeroing; only recommended for testing, slow, low-endurance, or known-zeroed block devices. # Skip block zeroing; only recommended for testing, slow, low-endurance, or known-zeroed block devices.
skip_blockcheck="y" skip_blockcheck="y"
{% endif %} {%- endif %}
### ###
### Per-host definitions (required) ### Per-host definitions (required)
### ###
# The hostname of the system (set per-run) # The hostname of the system (set per-run)
#target_hostname="myhostname.domain.tld" target_hostname="{{ fqdn }}"
target_hostname="{hostname}"
# The target system disk (either a path or model to find; path overrides model if set) # The target system disk path
# Install will fail if these devices aren't found. target_disk="{{ target_disk }}"
{% if target_disk_path is defined and target_disk_path %}
#target_disk_path="/dev/disk/by-path/pci-0000:03:00.0-scsi-0:1:0:0" # Example: RAID device via explicit path
target_disk_path="{target_disk_path}"
{% end if %}
{% if target_disk_model is defined and target_disk_model %}
#target_disk_model="DELLBOSS VD" # Example: Dell BOSS on R6515 via model name
target_disk_model="{target_disk_model}"
{% end if %}
# SSH key method (usually tftp) # SSH key method (usually tftp)
target_keys_method="tftp" target_keys_method="tftp"
@ -80,5 +67,4 @@ target_deploy_user="deploy"
#target_module_blacklist=( "hpwdt" ) #target_module_blacklist=( "hpwdt" )
# Installer checkin URI (provided by pvcbootstrapd) # Installer checkin URI (provided by pvcbootstrapd)
#pvcbootstrapd_checkin_uri="http://10.199.199.254:9999/checkin/host" pvcbootstrapd_checkin_uri="{{ pvcbootstrapd_checkin_uri }}"
pvcbootstrapd_checkin_uri="{pvcbootstrapd_checkin_uri}"