# A part of the Halyard config file declaring the ECR registries. | |
# There can be multiple registries, each in different AWS account. | |
# In this example there are 3 "stages" accounts - dev, stage & live. | |
# NOTE: The declared password files must exist and provide valid base64 encoded values, | |
# otherwise Halayrd will endup with an exception during deployment. | |
# The values can be fake, they will be updated later by the Kubernetes Job (see 2-nd attached file). | |
# NOTE: replace ${YOUR_DEV_AWS_ACCOUNT_ID} ${YOUR_DEV_AWS_REGION} | |
# with appropriate values (same for STAGE & LIVE). | |
dockerRegistry: |
This mainly demonstrates my goal of preparing a Raspberry Pi to be provisioned prior to its first boot. To do this I have chosen to use the same cloud-init that is the standard for provisioning servers at Amazon EC2, Microsoft Azure, OpenStack, etc.
I found this to be quite challenging because there is little information available for using cloud-init without a cloud. So, this project also servers as a demonstration for anyone on any version of Linux who may want to install from source, and/or use without a cloud. If you fall into that later group, you probably just want to read the code. It's bash
so everything I do, you could also do at the command line. (Even the for
loop.)
Download and compile the following https://github.com/pftf/RPi4.git. I made the following change to edk2-platforms
to always enable 3GB RAM+ as TFTP booting this seems to cause issues with it remembering the options.
diff --git a/Platform/RaspberryPi/RPi4/RPi4.dsc b/Platform/RaspberryPi/RPi4/RPi4.dsc
index c481c35342..4b495b1fe8 100644
--- a/Platform/RaspberryPi/RPi4/RPi4.dsc
+++ b/Platform/RaspberryPi/RPi4/RPi4.dsc
@@ -495,7 +495,7 @@