Compare commits

...

4 commits

Author SHA1 Message Date
pedro 4ca5b47989 refactor pxe settings.ini.example
what is more reasonable is to test pxe with `make test_pxe`, once you
have it working, you might want to put it in a test lab, and from
there to production

put then, a settings.ini that facilitates the most basic testing in localhost
2024-10-16 22:52:51 +02:00
pedro 1ef84b60e9 pxe install: establish force true on conditional 2024-10-16 22:52:22 +02:00
pedro bb4a267ab5 pxe install: remove the duplicated dirname cd 2024-10-16 22:52:02 +02:00
pedro abaf9a5829 deploy-workbench: add python facilitator dep 2024-10-16 22:32:07 +02:00
3 changed files with 5 additions and 7 deletions

View file

@ -303,7 +303,7 @@ echo 'Install requirements'
# Install debian requirements
apt-get install -y --no-install-recommends \
sudo locales \
python3 python3-dev python3-pip pipenv \
python-is-python3 python3 python3-dev python3-pip pipenv \
dmidecode smartmontools hwinfo pciutils lshw nfs-common < /dev/null
# Install lshw B02.19 utility using backports (DEPRECATED in Debian 12)

View file

@ -17,8 +17,6 @@ detect_user() {
# detect user with sudo or already on sudo src https://serverfault.com/questions/568627/can-a-program-tell-it-is-being-run-under-sudo/568628#568628
elif [ ! "${userid}" = 0 ] || [ -n "${SUDO_USER}" ]; then
SUDO='sudo'
# jump to current dir where the script is so relative links work
cd "$(dirname "${0}")"
# working directory to build the iso
ISO_PATH="iso"
# detect pure root
@ -99,7 +97,7 @@ END
install_netboot() {
# if you want to refresh install, remove or move dir
if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" ]; then
if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" = 'true' ]; then
${SUDO} mkdir -p "${tftp_path}/pxelinux.cfg"
if [ ! -f "${tftp_path}/netboot.tar.gz" ]; then
url="http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz"
@ -122,7 +120,7 @@ install_netboot() {
init_config() {
# get where the script is
# jump to current dir where the script is so relative links work
cd "$(dirname "${0}")"
# this is what we put in the files we modity

View file

@ -1,6 +1,6 @@
[settings]
url = http://localhost:8000/api/snapshot/
token = '1234'
url = http://10.0.2.2:8000/api/snapshot/
token = '5018dd65-9abd-4a62-8896-80f34ac66150'
path = /mnt
# device = your_device_name
# # erase = basic