Skip to content

Commit

Permalink
adding the instance creation bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
GowthamChowta committed Mar 29, 2022
1 parent 934674f commit 4bae568
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions instance-creation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cd .. &&
sudo apt-get update &&
# Install open stack
pip3 install python-openstackclient &&
# Install terraform 0.14.4
sudo apt-get install zip unzip &&
wget https://releases.hashicorp.com/terraform/0.14.4/terraform_0.14.4_linux_amd64.zip &&
unzip terraform_0.14.4_linux_amd64.zip &&
sudo chmod +x terraform &&
sudo cp terraform /usr/local/bin/ &&
sudo mv terraform /usr/bin/ &&
rm -rf terraform_0.14.4_linux_amd64.zip &&

export CLUSTER=terraclu
cp -r inventory/kubejetstream inventory/$CLUSTER
cd inventory/$CLUSTER
sed -i '/k8s_master_fips/c\k8s_master_fips "=['$IP']"' cluster.tfvars

bash terraform_init.sh
bash terraform_apply.sh

0 comments on commit 4bae568

Please sign in to comment.