:
This commit is contained in:
parent
a02ad11553
commit
4d397012a4
@ -1,5 +1,5 @@
|
|||||||
rancher:
|
rancher:
|
||||||
root_password: rancher
|
root_password: rancher
|
||||||
ram: 4096
|
ram: 6144
|
||||||
vcpus: 2
|
vcpus: 2
|
||||||
bootstrapPassword: rancher
|
bootstrapPassword: rancher
|
||||||
|
@ -253,6 +253,7 @@ function install_rancher_vm(){
|
|||||||
if [[ -f $HOME/rancherVM.yaml ]]; then
|
if [[ -f $HOME/rancherVM.yaml ]]; then
|
||||||
echo "rancher butane file already exists"
|
echo "rancher butane file already exists"
|
||||||
else
|
else
|
||||||
|
echo "creating the butane file"
|
||||||
SSH_PUB_KEYS=""
|
SSH_PUB_KEYS=""
|
||||||
for i in "${SALT_ssh_user_pub_keys[@]}"; do
|
for i in "${SALT_ssh_user_pub_keys[@]}"; do
|
||||||
if [[ "$i" != "[]" ]];then
|
if [[ "$i" != "[]" ]];then
|
||||||
@ -367,6 +368,7 @@ EOF
|
|||||||
if [[ -f $HOME/rancherVM.ign ]];then
|
if [[ -f $HOME/rancherVM.ign ]];then
|
||||||
echo "rancher ignition file already exists"
|
echo "rancher ignition file already exists"
|
||||||
else
|
else
|
||||||
|
echo "creating the ignition file"
|
||||||
sudo podman run -i --rm quay.io/coreos/fcct:release --pretty --strict < $HOME/rancherVM.yaml > $HOME/rancherVM.ign
|
sudo podman run -i --rm quay.io/coreos/fcct:release --pretty --strict < $HOME/rancherVM.yaml > $HOME/rancherVM.ign
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user