Commit 3eeb8ce9 authored by Ross McDonald's avatar Ross McDonald
Browse files

Merge pull request #3 from rossmcdonald/updates

Small refactoring updates and bug-fixes.
parents 7b7a5cfa 35eb943f
*#
*~
venv/
.vagrant/
\ No newline at end of file
.vagrant/
*deb
*rpm
......@@ -13,8 +13,9 @@ Vagrant.configure(2) do |config|
(1..BOX_COUNT).each do |machine_id|
config.vm.define "influx#{machine_id}" do |machine|
machine.vm.hostname = "influx#{machine_id}"
machine.vm.network "private_network", ip: "10.0.3.#{1+machine_id}", virtualbox__intnet: true
# machine.vm.network "private_network", ip: "10.0.3.#{1+machine_id}", virtualbox__intnet: true
# machine.vm.network "public_network"
machine.vm.network "public_network", :bridge => 'en0: Wi-Fi (AirPort)'
machine.vm.provider "virtualbox" do |v|
v.memory = 512
......
......@@ -16,7 +16,6 @@ influxdb_overwrite_hosts_file: yes
influxdb_load_sample_data: no
influxdb_sample_database_name: sample_database
influxdb_sample_measurement_name: random_ints
influxdb_sample_num_points: 20
# NOTE: Since Ansible uses Python on the backend, all boolean values are capitalized when being
# rendered (which is not valid TOML). To get around this, make sure you quote any boolean values
......
......@@ -8,7 +8,7 @@
owner: root
group: root
mode: 0644
when: overwrite_hosts_file
when: influxdb_overwrite_hosts_file
- name: Cluster servers
template:
......
......@@ -14,5 +14,6 @@
method: POST
body: "{{ influxdb_sample_measurement_name }},host=server_{{ 10 | random }},az=US{{ 5 | random }} value={{ 100 | random }}"
status_code: 204
with_sequence: start=1 end={{ influxdb_sample_num_points }}
with_sequence: start=1 end=10
......@@ -4,7 +4,6 @@
state: present
with_items:
- curl
- python-httplib2
- name: Add InfluxDB repository file [RHEL/CentOS]
template:
......
INFLUXD_OPTS="-hostname {{ ansible_hostname }}{% if cluster_servers %} -join {% for host in groups['all']|sort %}{% if hostvars[host]['ansible_hostname'] != ansible_hostname %}{{ hostvars[host]['ansible_hostname'] }}:{{ meta_port }}{% if not loop.last %},{% endif %}{% endif %}{% endfor %}{% endif %}"
INFLUXD_OPTS="-hostname {{ ansible_hostname }}{% if influxdb_cluster_servers %} -join {% for host in groups['all']|sort %}{% if hostvars[host]['ansible_hostname'] != ansible_hostname %}{{ hostvars[host]['ansible_hostname'] }}:{{ influxdb_meta_port }}{% if not loop.last %},{% endif %}{% endif %}{% endfor %}{% endif %}"
Supports Markdown
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