oveits / openshift-terraform-ansible_installer

2 stars 0 forks source link

Automatic update of inventory for OpenShift installation via Ansible #4

Closed oveits closed 5 years ago

oveits commented 7 years ago

In the moment, the public DNS names of the newly created AWS instances need to be changed manually.

In future, this should be detected automatically, e.g. by reading them from terraform.tfstate file.

oveits commented 7 years ago

Today, the manual step can be simplified by issuing following command

$ cat $DIR/terraform.tfstate | grep ec2- | awk -F '"' '{print $4}'
ec2-52-57-51-241.eu-central-1.compute.amazonaws.com
ec2-52-57-112-189.eu-central-1.compute.amazonaws.com

and copy&paste the two DNS names to the inventory file.

oveits commented 5 years ago

Implemented long time ago...