Permalink
Browse files

add ansible option to specify local file as a configuration file (#41)

* added to tasks
* added to readme
  • Loading branch information...
marianschmotzer authored and erebe committed Feb 8, 2019
1 parent fe90323 commit 449dfd24672259ca3741ee3c99e9dc604615386f
@@ -13,6 +13,7 @@ Role Variables
| `cassandra_listen_port` | 8080 | Cassandra exporter listening port |
| `cassandra_exporter_binary_url` | https://github.com/criteo/cassandra_exporter/releases/download/{{cassandra_exporter_version}}/cassandra_exporter-{{cassandra_exporter_version}}-all.jar | Cassandra exporter jar download location |
| `cassandra_exporter_config_url` | https://raw.githubusercontent.com/criteo/cassandra_exporter/master/config.yml | Cassandra exporter config download location |
| `cassandra_exporter_config` | | Cassandra exporter config file in local disk, if defined ,`cassandra_exporter_config_url` is ignored |
| `cassandra_exporter_user` | cassandra-exp | UNIX user to run the binary |
| `cassandra_exporter_group` | cassandra-exp | UNIX group to run the binary |
| `cassandra_exporter_root_dir` | /opt/cassandra_exporter | Base location where cassandra exporter stuff is downloaded |
@@ -35,6 +35,13 @@
get_url:
url: '{{ cassandra_exporter_config_url }}'
dest: '{{ cassandra_exporter_config_dir }}/config.yml'
when: cassandra_exporter_config is not defined

- name: 'Copy cassandra exporter config'
copy:
src: '{{ cassandra_exporter_config }}'
dest: '{{ cassandra_exporter_config_dir }}/config.yml'
when: cassandra_exporter_config is defined

- name: 'set cassandra listen address'
lineinfile:

0 comments on commit 449dfd2

Please sign in to comment.