name="blah"
foo="bar"
profile "site1" {
api_url = "https://api.site1.com/client"
api_key = "key"
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
data "vault_generic_secret" "awsregion" { | |
path = "secret/aws" | |
} | |
output "awsregion" { | |
value = data.vault_generic_secret.awsregion.data_json | |
sensitive = true | |
} |
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
import "time" | |
# Load Time | |
currentTime = time.now | |
# Validate time is between 10 AM and 6 PM AEST | |
valid_time = rule { (currentTime.hour >= 0 and currentTime.hour < 8)} | |
# Validate time is between 7am AM and 10 AM AEST | |
valid_time2 = rule { (currentTime.hour >= 21 and currentTime.hour <= 23)} |
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
terraform { | |
required_providers { | |
terracurl = { | |
source = "devops-rob/terracurl" | |
} | |
} | |
} | |
provider "terracurl" {} |
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 +X | |
# later we will disable selinux | |
# sudo setenforce Permissive | |
# getenforce # just incase youy want to check selinuxmode | |
# lets make sure we are a clean install of docker | |
sudo yum remove docker docker-common docker-selinux docker-engine-selinux docker-engine docker-ce | |
# now install some tools dmpd(for short) ensures rhel 7 respects gpg settings in repos (issue is https://access.redhat.com/solutions/2850911) see https://access.redhat.com/discussions/5336741 for the fix | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo |
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
# Two Teams, one is admin (apply) , and the other can only plan | |
resource "tfe_team" "gcp-network-admin" { | |
name = "gcp-network-admin" | |
organization = "my-org-name" | |
} | |
resource "tfe_team" "gcp-network-plan" { | |
name = "gcp-network-plan" | |
organization = "my-org-name" | |
} |
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
trigger: | |
- master | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- script: echo Starting Terraform Run |
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
{ | |
"Name": "", | |
"Template": { | |
"Type": "name_prefix_match" | |
}, | |
"Service": { | |
"Service": "${name.full}", | |
"Failover": { | |
"NearestN": 2 | |
} |
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
{ | |
"Node": "chucknorris", | |
"Address": "api.chucknorris.io", | |
"NodeMeta": { | |
"external-node": "true", | |
"external-probe": "true" | |
}, | |
"Service": { | |
"ID": "chucknorris", | |
"Service": "chucknorris-api", |
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
flowchart LR
NewerOlder