Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sol1 Ansible Roles
sol1-influxdb
Commits
9ee23568
Commit
9ee23568
authored
Jan 21, 2016
by
Ross McDonald
Browse files
Fixed join parameter issue.
parent
c21e8f85
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/etc/default/influxdb.j2
View file @
9ee23568
...
...
@@ -6,6 +6,6 @@ INFLUXD_OPTS="-join {% for host in groups['all'] if hostvars[host]['ansible_host
{% else %}
VAGRANT=false
{% if hostvars[groups['influxdb'][0]]['ansible_hostname'] != ansible_hostname %}
INFLUXD_OPTS="-join {% for host in groups['influxdb'] if hostvars[host]['ansible_hostname'] != ansible_hostname %}{% if loop.index0 <= 1 %}{{ ansible_all_ipv4_addresses|last }}:{{ influxdb_meta_http_port }}{% if not loop.index > 1 %},{% endif %}{% endif %}{% endfor %}"
INFLUXD_OPTS="-join {% for host in groups['influxdb'] if hostvars[host]['ansible_hostname'] != ansible_hostname %}{% if loop.index0 <= 1 %}{{
hostvars[host]['
ansible_all_ipv4_addresses
']
|last }}:{{ influxdb_meta_http_port }}{% if not loop.index > 1 %},{% endif %}{% endif %}{% endfor %}"
{% endif %}
{% endif %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment