Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sol1-influxdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sol1 Ansible Roles
sol1-influxdb
Commits
7412bb5e
Commit
7412bb5e
authored
9 years ago
by
Ross McDonald
Browse files
Options
Downloads
Patches
Plain Diff
Modified hosts and configuration for clustered environments to rely on hostnames instead of IPs.
parent
788790a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/etc/hosts.j2
+1
-1
1 addition, 1 deletion
templates/etc/hosts.j2
templates/influxdb.conf.j2
+4
-9
4 additions, 9 deletions
templates/influxdb.conf.j2
with
5 additions
and
10 deletions
templates/etc/hosts.j2
+
1
−
1
View file @
7412bb5e
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
{{ ansible_all_ipv4_addresses|last }}
{{ ansible_hostname }}
0.0.0.0
{{ ansible_hostname }}
{% for host in groups['all'] %}
{% for host in groups['all'] %}
{% if host != "localhost" and hostvars[host]['ansible_hostname'] != ansible_hostname %}
{% if host != "localhost" and hostvars[host]['ansible_hostname'] != ansible_hostname %}
{{ hostvars[host]['ansible_all_ipv4_addresses'] | last }} {{ hostvars[host]['ansible_hostname'] }}
{{ hostvars[host]['ansible_all_ipv4_addresses'] | last }} {{ hostvars[host]['ansible_hostname'] }}
...
...
This diff is collapsed.
Click to expand it.
templates/influxdb.conf.j2
+
4
−
9
View file @
7412bb5e
...
@@ -8,11 +8,6 @@
...
@@ -8,11 +8,6 @@
# Change this option to true to disable reporting.
# Change this option to true to disable reporting.
reporting-disabled = {{ influxdb_disable_reporting }}
reporting-disabled = {{ influxdb_disable_reporting }}
# Commenting these out, as they cause issues in the current iteration
#dir = ""
#hostname = "{{ ansible_all_ipv4_addresses|last }}"
#bind-address = ""
###
###
### [meta]
### [meta]
###
###
...
@@ -23,8 +18,8 @@ reporting-disabled = {{ influxdb_disable_reporting }}
...
@@ -23,8 +18,8 @@ reporting-disabled = {{ influxdb_disable_reporting }}
[meta]
[meta]
enabled = {{ influxdb_meta_enabled }}
enabled = {{ influxdb_meta_enabled }}
dir = "{{ influxdb_meta_dir }}"
dir = "{{ influxdb_meta_dir }}"
bind-address = "{{ ansible_
all_ipv4_addresses|last
}}:{{ influxdb_meta_port }}"
bind-address = "{{ ansible_
hostname
}}:{{ influxdb_meta_port }}"
http-bind-address = "{{ ansible_
all_ipv4_addresses|last
}}:{{ influxdb_meta_http_port }}"
http-bind-address = "{{ ansible_
hostname
}}:{{ influxdb_meta_http_port }}"
retention-autocreate = {{ influxdb_meta_retention_autocreate }}
retention-autocreate = {{ influxdb_meta_retention_autocreate }}
election-timeout = "{{ influxdb_meta_election_timeout }}"
election-timeout = "{{ influxdb_meta_election_timeout }}"
heartbeat-timeout = "{{ influxdb_meta_heartbeat_timeout }}"
heartbeat-timeout = "{{ influxdb_meta_heartbeat_timeout }}"
...
@@ -123,7 +118,7 @@ reporting-disabled = {{ influxdb_disable_reporting }}
...
@@ -123,7 +118,7 @@ reporting-disabled = {{ influxdb_disable_reporting }}
[admin]
[admin]
enabled = {{ influxdb_admin_enabled }}
enabled = {{ influxdb_admin_enabled }}
bind-address = "{{ ansible_
all_ipv4_addresses|last
}}:{{ influxdb_admin_port }}"
bind-address = "{{ ansible_
hostname
}}:{{ influxdb_admin_port }}"
https-enabled = {{ influxdb_admin_https_enabled }}
https-enabled = {{ influxdb_admin_https_enabled }}
https-certificate = "{{ influxdb_admin_https_certificate }}"
https-certificate = "{{ influxdb_admin_https_certificate }}"
...
@@ -144,7 +139,7 @@ reporting-disabled = {{ influxdb_disable_reporting }}
...
@@ -144,7 +139,7 @@ reporting-disabled = {{ influxdb_disable_reporting }}
[http]
[http]
enabled = {{ influxdb_http_enabled }}
enabled = {{ influxdb_http_enabled }}
bind-address = "{{ ansible_
all_ipv4_addresses|last
}}:{{ influxdb_http_port }}"
bind-address = "{{ ansible_
hostname
}}:{{ influxdb_http_port }}"
auth-enabled = {{ influxdb_http_auth_enabled }}
auth-enabled = {{ influxdb_http_auth_enabled }}
log-enabled = {{ influxdb_http_log_enabled }}
log-enabled = {{ influxdb_http_log_enabled }}
write-tracing = {{ influxdb_http_write_tracing }}
write-tracing = {{ influxdb_http_write_tracing }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment