Commit 0123834e authored by Ross McDonald's avatar Ross McDonald
Browse files

Merge pull request #5 from LTGIV/fix-hostname-var

Hard-coded hostname and port replaced with Ansible variables.
parents aa4bcef6 c18eaac8
......@@ -10,7 +10,7 @@
- name: Load demo data
uri:
url: http://localhost:8086/write?db={{ influxdb_sample_database_name }}
url: http://{{ influxdb_meta_hostname }}:{{ influxdb_http_port }}/write?db={{ influxdb_sample_database_name }}
method: POST
body: "{{ influxdb_sample_measurement_name }},host=server_{{ 10 | random }},az=US{{ 5 | random }} value={{ 100 | random }}"
status_code: 204
......
......@@ -17,7 +17,7 @@ reporting-disabled = {{ influxdb_disable_reporting }}
[meta]
dir = "{{ influxdb_meta_dir }}"
hostname = "localhost"
hostname = "{{ influxdb_meta_hostname }}"
bind-address = ":{{ influxdb_meta_port }}"
retention-autocreate = {{ influxdb_meta_retention_autocreate }}
election-timeout = "{{ influxdb_meta_election_timeout }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment