diff options
author | Jeff Cantrill <jcantrill@users.noreply.github.com> | 2016-12-15 15:48:09 -0500 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-01-17 11:45:04 -0500 |
commit | 765fb5ce39fdca0b56a23f6d13650fe16debf20a (patch) | |
tree | 0a1e6b82dbe90ba62f518fe57e921d752ddc0f5d /roles/openshift_metrics/tasks/install_metrics.yaml | |
parent | b335bd4e88d5ec50aa3106f789f4e08a8baac9b2 (diff) | |
download | openshift-765fb5ce39fdca0b56a23f6d13650fe16debf20a.tar.gz openshift-765fb5ce39fdca0b56a23f6d13650fe16debf20a.tar.bz2 openshift-765fb5ce39fdca0b56a23f6d13650fe16debf20a.tar.xz openshift-765fb5ce39fdca0b56a23f6d13650fe16debf20a.zip |
update vars to allow scaling of components (#9)
Diffstat (limited to 'roles/openshift_metrics/tasks/install_metrics.yaml')
-rw-r--r-- | roles/openshift_metrics/tasks/install_metrics.yaml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/openshift_metrics/tasks/install_metrics.yaml b/roles/openshift_metrics/tasks/install_metrics.yaml index db023e6a2..a6a094a83 100644 --- a/roles/openshift_metrics/tasks/install_metrics.yaml +++ b/roles/openshift_metrics/tasks/install_metrics.yaml @@ -1,4 +1,15 @@ --- +- name: check that hawkular_metrics_hostname is set + fail: msg='the openshift_metrics_hawkular_metrics_hostname variable is required' + when: openshift_metrics_hawkular_metrics_hostname is not defined + +- name: check the value of openshift_metrics_cassandra_storage_type + fail: + msg: > + openshift_metrics_cassandra_storage_type ({{ openshift_metrics_cassandra_storage_type }}) + is invalid, must be one of: emptydir, pv, dynamic + when: openshift_metrics_cassandra_storage_type not in openshift_metrics_cassandra_storage_types + - name: Install Metrics include: "{{ role_path }}/tasks/install_{{ include_file }}.yaml" with_items: @@ -7,3 +18,17 @@ - hawkular loop_control: loop_var: include_file + +- name: create objects + command: > + {{ openshift.common.client_binary }} -n {{ openshift_metrics_project }} + --config={{ mktemp.stdout }}/admin.kubeconfig + apply -f {{ item }} + with_fileglob: + - "{{ mktemp.stdout }}/templates/*.yaml" + +- name: Scaling up cluster + include: start_metrics.yaml + tags: openshift_metrics_start_cluster + when: + - openshift_metrics_start_cluster | default(true) | bool |