generated from kolosovpetro/terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5231511
commit d2b4206
Showing
6 changed files
with
39 additions
and
26 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
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
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,10 @@ | ||
#!/bin/bash | ||
|
||
sudo apt update -y | ||
|
||
echo "=================== Installing Python and PIP ===================" | ||
sudo apt install -y python3 python3-pip python3-dev build-essential | ||
sudo pip3 install --upgrade pip | ||
|
||
echo "=================== Installing Nginx ===================" | ||
sudo apt install -y nginx build-essential |
14 changes: 7 additions & 7 deletions
14
scripts/install_python_if_not_exists.sh → scripts/install_python.sh
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
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,10 @@ | ||
param( | ||
[String] $prefix | ||
) | ||
|
||
Write-Host "Swapping to blue" | ||
|
||
az network lb rule update --lb-name "lb-$prefix" ` | ||
--name "http-rule" ` | ||
--resource-group "rg-loadbalancer-$prefix" ` | ||
--backend-pool-name "blue-pool" |
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,10 @@ | ||
param( | ||
[String] $prefix | ||
) | ||
|
||
Write-Host "Swapping to green" | ||
|
||
az network lb rule update --lb-name "lb-$prefix" ` | ||
--name "http-rule" ` | ||
--resource-group "rg-loadbalancer-$prefix" ` | ||
--backend-pool-name "green-pool" |