This commit is contained in:
jonas 2021-11-23 16:43:55 +01:00
parent a02ad11553
commit 4d397012a4
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
rancher:
root_password: rancher
ram: 4096
ram: 6144
vcpus: 2
bootstrapPassword: rancher

View File

@ -253,6 +253,7 @@ function install_rancher_vm(){
if [[ -f $HOME/rancherVM.yaml ]]; then
echo "rancher butane file already exists"
else
echo "creating the butane file"
SSH_PUB_KEYS=""
for i in "${SALT_ssh_user_pub_keys[@]}"; do
if [[ "$i" != "[]" ]];then
@ -367,6 +368,7 @@ EOF
if [[ -f $HOME/rancherVM.ign ]];then
echo "rancher ignition file already exists"
else
echo "creating the ignition file"
sudo podman run -i --rm quay.io/coreos/fcct:release --pretty --strict < $HOME/rancherVM.yaml > $HOME/rancherVM.ign
fi