Skip to content

Commit

Permalink
Hotfix: A-record from bastion now pointing to public instead of priva…
Browse files Browse the repository at this point in the history
…te IP (#9)

* fixed documentation from deploy.sh to apply.sh

* updated gitignore

* added todos concerning disks

* fixed bug: A-record from bastion now pointing to public instead of private IP

* added todos
  • Loading branch information
ksandermann authored Jul 24, 2019
1 parent 46ab82b commit 689eec2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
*.tfstate*
*.log
*.lock.info
*/ssh_keys/*
*/ssh_keys/*
clusters/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ It is basically the result of me teaching myself Terraform and Azure. :)
export FORMKUBE_CLIENT_ID=abcde-abcde-abcde-abcde
export FORMKUBE_CLIENT_SECRET=abcde-abcde-abcde-abcde
export FORMKUBE_TENANT_ID=abcde-abcde-abcde-abcde
bash ./scripts/deploy.sh
bash ./scripts/apply.sh
```


Expand Down
2 changes: 1 addition & 1 deletion docs/install_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

1. Run the following inside bash in the repository's root directory:
```bash
./scripts/deploy.sh
./scripts/apply.sh
```

# Authors
Expand Down
8 changes: 8 additions & 0 deletions docs/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ always source this in apply.sh and
source this in destroy.sh if plan file is not present.
Need to be aware of development mode features

* [ ] investigate on azure os disk size + filesystem size

* [ ] azure disk encryption

* [ ] don't destroy DNS zone

* [ ] make cluster config path configurable

# DONE

This list is just kept for development documentation purposes.
Expand Down
2 changes: 1 addition & 1 deletion modules/azure/vnet/a-records.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "azurerm_dns_a_record" "bastions" {
zone_name = var.out_platform_dns_zone_name
resource_group_name = var.out_platform_rg_name
ttl = 300
records = [azurerm_network_interface.bastions.*.ip_configuration.0.private_ip_address[count.index]]
records = [azurerm_public_ip.bastions.*.ip_address[count.index]]
tags = var.platform_resource_tags

}
Expand Down

0 comments on commit 689eec2

Please sign in to comment.