Opvolger / infra_pxe

Setup for a pxe server in docker, deployed with ansible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iPXE

Ideeen opgedaan met:

dism /Cleanup-Mountpoints

Build

pip install python-jenkins

Handmatig bouwen:

docker build -t opvolger/pxe:latest . --build-arg GIT_HASH=988d2c13cdf0f0b4140685af35ced70ac5b3283c --build-arg WIMBOOT_VERSION=2.6.0

Build straat

Het inrichten van jenkins-server en slaves

cd jenkins_build_jobs
# create docker-compose for jenkins-server and slave (docker)
ansible-playbook playbook_create_jenkins_compose.yaml -i inventory.yaml --vault-id thuis@~/vault-thuis.txt -vv
cd ..
docker compose up

Als je al een buildserver hebt met een slave "docker" en "ansible" of niet uitgevoerd hier boven.

cd jenkins_build_jobs

# configure jenkins add-slave auth. + don't allow anonymous login
ansible-playbook playbook_configure_jenkins.yaml -i inventory.yaml --vault-id thuis@~/vault-thuis.txt -vv

# configure jobs
ansible-playbook playbook_configure_jenkins_jobs.yaml -i inventory.yaml --vault-id thuis@~/vault-thuis.txt -vv
ansible-playbook playbook_create_wimboot_files.yaml -i inventories/default.yaml  -i inventories/thuis --vault-id thuis@~/vault-thuis.txt --ask-become-pass --ask-pass

ansible-vault encrypt_string --vault-id thuis@~/vault-thuis.txt

ansible-playbook playbook_update_docker_files.yaml -i inventories/default.yaml  -i inventories/thuis --vault-id thuis@~/vault-thuis.txt --ask-become-pass --ask-pass
ansible-playbook playbook_deploy.yaml -i inventories/default.yaml  -i inventories/thuis --vault-id thuis@~/vault-thuis.txt --ask-become-pass --ask-pass

ipxe

git clone git://git.ipxe.org/ipxe.git
cd ipxe/src
make
make bin/undionly.kpxe
make bin-x86_64-efi/ipxe.efi

docker push

docker login --username opvolger --password *************
docker push opvolger/pxe

TODO

  • NFS server in docker
  • VMware: https://ipxe.org/howto/vmware
  • uitpakken iso op samba / nfs share
  • niet uitpakken winpe.zip als hij er niet is... (alleen linux boot menu)

About

Setup for a pxe server in docker, deployed with ansible.


Languages

Language:Groovy 49.9%Language:PowerShell 22.5%Language:Dockerfile 21.2%Language:Shell 5.0%Language:Batchfile 1.4%