diff options
author | Jeff Cantrill <jcantril@redhat.com> | 2016-11-29 16:31:13 -0500 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-01-17 11:45:04 -0500 |
commit | 04c1500801f4d88635001bda1e4f73473fe8e33a (patch) | |
tree | f2b5a87f6f793c5c1083b58e422c82ae30f793ab /roles/openshift_metrics/tasks/main.yaml | |
parent | e810fb6abab0c6fe9198bfc3f39c82ca8054f76e (diff) | |
download | openshift-04c1500801f4d88635001bda1e4f73473fe8e33a.tar.gz openshift-04c1500801f4d88635001bda1e4f73473fe8e33a.tar.bz2 openshift-04c1500801f4d88635001bda1e4f73473fe8e33a.tar.xz openshift-04c1500801f4d88635001bda1e4f73473fe8e33a.zip |
Bruno Barcarol GuimarĂ£es work to move metrics to ansible from deployer
Diffstat (limited to 'roles/openshift_metrics/tasks/main.yaml')
-rw-r--r-- | roles/openshift_metrics/tasks/main.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roles/openshift_metrics/tasks/main.yaml b/roles/openshift_metrics/tasks/main.yaml new file mode 100644 index 000000000..e9a5fbebd --- /dev/null +++ b/roles/openshift_metrics/tasks/main.yaml @@ -0,0 +1,24 @@ +--- +- name: check that hawkular_metrics_hostname is set + fail: msg='the hawkular_metrics_hostname variable is required' + when: "{{ hawkular_metrics_hostname is not defined }}" +- name: check the value of hawkular_cassandra_storage_type + fail: + msg: > + hawkular_cassandra_storage_type ({{ hawkular_cassandra_storage_type }}) + is invalid, must be one of: emptydir, pv, dynamic + when: hawkular_cassandra_storage_type not in hawkular_cassandra_storage_types +- name: Install Metrics + include: "{{ role_path }}/tasks/install_{{ include_file }}.yaml" + with_items: + - metrics + - heapster + - hawkular + loop_control: + loop_var: include_file +- name: create objects + command: > + {{ openshift.common.client_binary }} -n '{{ metrics_project }}' + apply -f {{ item }} + with_fileglob: + - "{{ mktemp.stdout }}/templates/*.yaml" |