Latest IP change from Rogers

This commit is contained in:
Alexander Hosking 2018-11-30 20:15:27 -05:00
commit 9dc357963c
4 changed files with 46 additions and 1 deletions

2
ahoskingit/terraform/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
vault.password
.terraform

View File

@ -132,6 +132,14 @@ resource "aws_route53_record" "gitlab_ahoskingit" {
records = ["${aws_route53_record.home_ahoskingit.name}"] records = ["${aws_route53_record.home_ahoskingit.name}"]
} }
resource "aws_route53_record" "monitors_ahoskingit" {
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
name = "monitors.ahoskingit.com"
type = "CNAME"
ttl = "5"
records = ["${aws_route53_record.home_ahoskingit.name}"]
}
#Route53 DNS entry #Route53 DNS entry
#resource "aws_route53_record" "www_ahoskingit" { #resource "aws_route53_record" "www_ahoskingit" {
# zone_id = "${aws_route53_zone.ahoskingit.zone_id}" # zone_id = "${aws_route53_zone.ahoskingit.zone_id}"

View File

@ -1,6 +1,10 @@
{ {
"version": 3, "version": 3,
<<<<<<< HEAD
"terraform_version": "0.11.7", "terraform_version": "0.11.7",
=======
"terraform_version": "0.11.2",
>>>>>>> b0f3f75444d590813ae2069af2ec3316548c1a7b
"serial": 23, "serial": 23,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"modules": [ "modules": [
@ -818,6 +822,37 @@
}, },
"deposed": [], "deposed": [],
"provider": "provider.aws" "provider": "provider.aws"
<<<<<<< HEAD
=======
},
"aws_route53_record.monitors_ahoskingit": {
"type": "aws_route53_record",
"depends_on": [
"aws_route53_record.home_ahoskingit",
"aws_route53_zone.ahoskingit"
],
"primary": {
"id": "Z2HTSYFXB5HXD9_monitors.ahoskingit.com_CNAME",
"attributes": {
"fqdn": "monitors.ahoskingit.com",
"health_check_id": "",
"id": "Z2HTSYFXB5HXD9_monitors.ahoskingit.com_CNAME",
"name": "monitors.ahoskingit.com",
"records.#": "1",
"records.1011144593": "home.ahoskingit.com",
"set_identifier": "",
"ttl": "5",
"type": "CNAME",
"zone_id": "Z2HTSYFXB5HXD9"
},
"meta": {
"schema_version": "2"
},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
>>>>>>> b0f3f75444d590813ae2069af2ec3316548c1a7b
}, },
"aws_route53_record.mx_automatedbytes": { "aws_route53_record.mx_automatedbytes": {
"type": "aws_route53_record", "type": "aws_route53_record",

View File

@ -7,7 +7,7 @@ from ansible_vault import Vault
if __name__ == "__main__": if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Securely wrap terraform like a terrarist!') parser = argparse.ArgumentParser(description='Securely wrap terraform like a terrarist!')
parser.add_argument('action', choices=['plan', 'apply', 'import'], help='Terraform action to execute') parser.add_argument('action', choices=['plan', 'apply', 'import', 'init'], help='Terraform action to execute')
parser.add_argument('--vault', '--ansible-vault', dest='vault_file', required=True, help='Ansible Vault File') parser.add_argument('--vault', '--ansible-vault', dest='vault_file', required=True, help='Ansible Vault File')
parser.add_argument('--vault-password-file', dest='vault_password', required=True, help='Ansible Vault Password File') parser.add_argument('--vault-password-file', dest='vault_password', required=True, help='Ansible Vault Password File')
parser.add_argument('--environment', dest='environment', required=True, help='Production, Staging, etc...') parser.add_argument('--environment', dest='environment', required=True, help='Production, Staging, etc...')