Digital Rebar Phase 1 design - cablelabs/snaps-boot GitHub Wiki

Goal

Preserver the current input files and interactions for installing and running the snaps-boot installer while replacing the DHCP, TFTP, HTTP, and cloud-init servers with the open source components of Digital Rebar (DRB). This will provide an API access to configure the servers, instead a file manipulation. DRB is also a lighter weight solution that can easily run from and RPi or Docker container.

Changes:

Section 4, step 1 Downloading images

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#step-1 The OS image will no longer need to be manually downloaded and will be included in a customized content pack. This will be transparent to the end user, they will simply specify the OS in the hosts.yaml file.

Section 4, step 3 Install prerequisites

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#step-3 The preRequsite.sh script will be updated to install DRB and all of the dependences.

Section 4, step 4 Configure DRB

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#step-4 ./iaas_launch.py -f <hosts.yaml> -p This will now perform the following tasks.

  1. Load the appropriate snaps-boot content pack and isos.
  2. Create the management subnet.
  3. Create machines for each of the servers.
  4. Create reservation for the IPs on each of the servers.
  5. Apply properties to each of the machines. Need list
  6. Set these servers to run the install workflow during the next network boot.

Unchanged, Section 4 Steps 5 - 8

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#step-5 The post install validation for the services will no longer be required.

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#step-6 No changes needed to -b option.

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#step-7 No Changes needed to the -s option.

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#step-8 No changes needed for -i option.

Clean up DRB install

https://github.com/cablelabs/snaps-boot/blob/master/doc/source/install/install.md#53-roll-back-of-snaps-boot-installation The -pc option will need to clean up DRB from the -p option. Basically uninstall DRB and delete any remaining data files. https://provision.readthedocs.io/en/tip/doc/install.html#removal-of-digital-rebar-provision

tools/install.sh --remove-data remove
sudo rm -rf dr-provision-install
⚠️ **GitHub.com Fallback** ⚠️