mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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:
parent
c97a117cba
commit
27d7a5aae5
2 changed files with 3 additions and 2 deletions
|
|
@ -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 -%}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
provider "aws" {
|
||||
region = "${var.user_region}"
|
||||
region = "${var.user_region}"
|
||||
version = "~> 1.15"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue