disk-from-cloud-image/gen-cloud-init/Makefile

54 lines
1.1 KiB
Makefile

all:
echo OK
rhel:
cp -fv user-data-rhel user-data
cp -fv meta-data-rhel meta-data
bash gen-hostname-and-instance-id.sh
bash ./build.sh rhel-master-init.iso
deploy-rhel:
cp -fv rhel-master-init.iso ./isos/
rocky:
cp -fv user-data-rocky user-data
cp -fv meta-data-rocky meta-data
bash gen-hostname-and-instance-id.sh
bash ./build.sh rocky-master-init.iso
deploy-rocky:
cp -fv rocky-master-init.iso ./isos/
alma:
cp -fv user-data-alma user-data
cp -fv meta-data-alma meta-data
bash gen-hostname-and-instance-id.sh
bash ./build.sh alma-master-init.iso
deploy-alma:
cp -fv alma-master-init.iso ./isos/
debian:
cp -fv user-data-debian user-data
cp -fv meta-data-debian meta-data
bash gen-hostname-and-instance-id.sh
bash ./build.sh debian-master-init.iso
deploy-debian:
cp -fv debian-master-init.iso ./isos/
ubuntu:
cp -fv user-data-ubuntu user-data
cp -fv meta-data-ubuntu meta-data
bash gen-hostname-and-instance-id.sh
bash ./build.sh ubuntu-master-init.iso
deploy-ubuntu:
cp -fv ubuntu-master-init.iso ./isos/
install-depencies-ubuntu:
apt update
apt install -y ruby genisoimage cloud-init