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
#!/bin/bash | |
set -e | |
set -o pipefail | |
if [[ -z "$GITHUB_TOKEN" ]]; then | |
echo "Set the GITHUB_TOKEN env variable." | |
exit 1 | |
fi |
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
{% for cgwid, ip in customer_gateway_ip.iteritems() -%} | |
"{{ cgwid }}CustomerGateway" : { | |
"Properties" : { | |
"Type" : "ipsec.1", | |
"BgpAsn" : "65000", | |
"IpAddress" : "{{ ip }}", | |
"Tags" : [ | |
{ "Key": "mGage:unit", "Value": "techops" }, | |
{ "Key": "mGage:product", "Value": "network" }, | |
{ "Key": "mGage:subproduct", "Value": "vpc-infrastructure" }, |
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
#!/bin/sh | |
remove_dangling() { | |
echo "Removing dangling images ..." | |
docker rmi $(docker images -f dangling=true -q) | |
} | |
remove_stopped_containers() { | |
echo "Removing stopped containers ..." | |
docker rm $(docker ps -qa) |
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
# Powershell 2.0 | |
if($env:RS_REBOOT){exit 0} | |
# Stop and fail script when a command fails. | |
$errorActionPreference = "Stop" | |
# load library functions | |
$rsLibDstDirPath = "$env:rs_sandbox_home\RightScript\lib" | |
. "$rsLibDstDirPath\tools\PsOutput.ps1" |
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
# Powershell 2.0 | |
# Stop and fail script when a command fails. | |
$errorActionPreference = "Stop" | |
# load library functions | |
$rsLibDstDirPath = "$env:rs_sandbox_home\RightScript\lib" | |
. "$rsLibDstDirPath\tools\PsOutput.ps1" | |
. "$rsLibDstDirPath\tools\ResolveError.ps1" | |
. "$rsLibDstDirPath\aws\EC2.ps1" |
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
# Powershell 2.0 | |
if($env:RS_REBOOT){exit 0} | |
# Stop and fail script when a command fails. | |
$errorActionPreference = "Stop" | |
# load library functions | |
$rsLibDstDirPath = "$env:rs_sandbox_home\RightScript\lib" | |
. "$rsLibDstDirPath\tools\PsOutput.ps1" |
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
# Powershell 2.0 | |
# Stop and fail script when a command fails. | |
$errorActionPreference = "Stop" | |
# load library functions | |
$rsLibDstDirPath = "$env:rs_sandbox_home\RightScript\lib" | |
. "$rsLibDstDirPath\tools\PsOutput.ps1" | |
. "$rsLibDstDirPath\tools\ResolveError.ps1" |
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
# Powershell 2.0 | |
if($env:RS_REBOOT){exit 0} | |
Start-Sleep -s 60 | |
# Stop and fail script when a command fails. | |
$errorActionPreference = "Stop" | |
$ip = $env:VNS3_IP_ADDRESS |
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
# Powershell 2.0 | |
# Stop and fail script when a command fails. | |
$errorActionPreference = "Stop" | |
### Declare inputs | |
#$env:DNS_ID | |
#$env:DNS_IP_ADDRESS | |
#$env:DNS_DOMAIN_NAME | |
#$env:DNS_USER |
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
# Powershell 2.0 | |
if($env:RS_REBOOT){exit 0} | |
# Stop and fail script when a command fails. | |
$errorActionPreference = "Stop" | |
# load library functions | |
$rsLibDstDirPath = "$env:rs_sandbox_home\RightScript\lib" | |
. "$rsLibDstDirPath\tools\PsOutput.ps1" |
NewerOlder