-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding the instance creation bash script
- Loading branch information
1 parent
934674f
commit 4bae568
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|