Hi Teams !
I’m trying to do automate MicroCloud installation and initialization.
The first step,
Installing packages, configuring IP addresses, and doing other provisioning and configuration tasks at the OS level. Using Metal-As-A-Service (MaaS) is strongly advised in order to expedite the procedure.
Next action,
During the cluster joining procedure, at the MicroCloud services level.
The use of “preseed.yaml” is strongly advised, and the “Command Loop” significantly reduces the time to run command on each node individually.
Executing the “microcloud preseed” command on all nodes, it seems we can do automation to make it faster, using the following command loop:
# SCP File preseed.yml to All Node
$ for i in {01,02,03}; do scp preseed.yaml root@MicroCloud-${i}:/root/; done
## RUN Preseed command to All Node
$ for i in {01,02,03}; do ssh root@MicroCloud-${i} "hostname && \
cat preseed.yaml | microcloud preseed > initialize-output.txt"& done
## Read output instalation
$ for i in {01,02,03}; do ssh root@MicroCloud-${i} "hostname && \
tail initialize-output.txt"; done
Anyone, please feel free if you have any ideas to discuss to efficient the process of installation
Best Regards
Rdw