Fix errors in Jinja2 template

Fix a typo in the Jinja2 template for etcd configuration (remove an extra double quote). Add AWS provider version information to provider.tf.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
Scott Lowe 2018-04-24 11:17:14 -06:00
parent c97a117cba
commit 27d7a5aae5
No known key found for this signature in database
GPG key ID: 949F43F6E6C11780
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ ETCD_ADVERTISE_CLIENT_URLS="http://{{ hostvars[inventory_hostname]['ansible_eth0
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://{{ hostvars[inventory_hostname]['ansible_eth0']['ipv4']['address']}}:2380"
ETCD_INITIAL_CLUSTER="{%- for host in groups['tag_role_etcd'] -%}
{% if loop.last -%}
{{ hostvars[host]['ansible_hostname'] }}=http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:2380"
{{ hostvars[host]['ansible_hostname'] }}=http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:2380
{%- else -%}
{{ hostvars[host]['ansible_hostname'] }}=http://{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}:2380,
{%- endif -%}

View file

@ -1,3 +1,4 @@
provider "aws" {
region = "${var.user_region}"
region = "${var.user_region}"
version = "~> 1.15"
}