Преглед изворни кода

prefix vars with metrics role (#4)

Jeff Cantrill пре 8 година
родитељ
комит
f3f1f610c9

+ 14 - 14
roles/openshift_metrics/README.md

@@ -8,9 +8,9 @@ Requirements
 
 
 The following variables need to be set and will be validated:
 The following variables need to be set and will be validated:
 
 
-- `metrics_hostname`: hostname used on the hawkular metrics route.
+- `openshift_metrics_hostname`: hostname used on the hawkular metrics route.
 
 
-- `metrics_project`: project (i.e. namespace) where the components will be
+- `openshift_metrics_project`: project (i.e. namespace) where the components will be
   deployed.
   deployed.
 
 
 
 
@@ -19,45 +19,45 @@ Role Variables
 
 
 For default values, see [`defaults/main.yaml`](defaults/main.yaml).
 For default values, see [`defaults/main.yaml`](defaults/main.yaml).
 
 
-- `image_prefix`: Specify prefix for metrics components; e.g for
+- `openshift_metrics_image_prefix`: Specify prefix for metrics components; e.g for
   "openshift/origin-metrics-deployer:v1.1", set prefix "openshift/origin-".
   "openshift/origin-metrics-deployer:v1.1", set prefix "openshift/origin-".
 
 
-- `image_version`: Specify version for metrics components; e.g. for
+- `openshift_metrics_image_version`: Specify version for metrics components; e.g. for
   "openshift/origin-metrics-deployer:v1.1", set version "v1.1".
   "openshift/origin-metrics-deployer:v1.1", set version "v1.1".
 
 
-- `master_url`: Internal URL for the master, for authentication retrieval.
+- `openshift_metrics_master_url`: Internal URL for the master, for authentication retrieval.
 
 
-- `hawkular_user_write_access`: If user accounts should be able to write
+- `openshift_metrics_hawkular_user_write_access`: If user accounts should be able to write
   metrics.  Defaults to 'false' so that only Heapster can write metrics and not
   metrics.  Defaults to 'false' so that only Heapster can write metrics and not
   individual users.  It is recommended to disable user write access, if enabled
   individual users.  It is recommended to disable user write access, if enabled
   any user will be able to write metrics to the system which can affect
   any user will be able to write metrics to the system which can affect
   performance and use Cassandra disk usage to unpredictably increase.
   performance and use Cassandra disk usage to unpredictably increase.
 
 
-- `hawkular_cassandra_nodes`: The number of Cassandra Nodes to deploy for the
+- `openshift_metrics_hawkular_cassandra_nodes`: The number of Cassandra Nodes to deploy for the
   initial cluster.
   initial cluster.
 
 
-- `hawkular_cassandra_storage_type`: Use `emptydir` for ephemeral storage (for
+- `openshift_metrics_hawkular_cassandra_storage_type`: Use `emptydir` for ephemeral storage (for
   testing), `pv` to use persistent volumes (which need to be created before the
   testing), `pv` to use persistent volumes (which need to be created before the
   installation) or `dynamic` for dynamic persistent volumes.
   installation) or `dynamic` for dynamic persistent volumes.
 
 
-- `hawkular_cassandra_pv_prefix`: The name of persistent volume claims created
+- `openshift_metrics_hawkular_cassandra_pv_prefix`: The name of persistent volume claims created
   for cassandra will be this with a serial number appended to the end, starting
   for cassandra will be this with a serial number appended to the end, starting
   from 1.
   from 1.
 
 
-- `hawkular_cassandra_pv_size`: The persistent volume size for each of the
+- `openshift_metrics_hawkular_cassandra_pv_size`: The persistent volume size for each of the
   Cassandra  nodes.
   Cassandra  nodes.
 
 
-- `heapster_standalone`: Deploy only heapster, without the Hawkular Metrics and
+- `openshift_metrics_heapster_standalone`: Deploy only heapster, without the Hawkular Metrics and
   Cassandra components.
   Cassandra components.
 
 
-- `heapster_allowed_users`: A comma-separated list of CN to accept.  By
+- `openshift_metrics_heapster_allowed_users`: A comma-separated list of CN to accept.  By
   default, this is set to allow the OpenShift service proxy to connect.  If you
   default, this is set to allow the OpenShift service proxy to connect.  If you
   override this, make sure to add `system:master-proxy` to the list in order to
   override this, make sure to add `system:master-proxy` to the list in order to
   allow horizontal pod autoscaling to function properly.
   allow horizontal pod autoscaling to function properly.
 
 
-- `metrics_duration`: How many days metrics should be stored for.
+- `openshift_metrics_duration`: How many days metrics should be stored for.
 
 
-- `metrics_resolution`: How often metrics should be gathered.
+- `openshift_metrics_resolution`: How often metrics should be gathered.
 
 
 
 
 Dependencies
 Dependencies

+ 14 - 13
roles/openshift_metrics/defaults/main.yaml

@@ -1,17 +1,18 @@
 ---
 ---
-image_prefix: docker.io/openshift/origin-
-image_version: latest
-master_url: https://kubernetes.default.svc.cluster.local
+openshift_metrics_image_prefix: docker.io/openshift/origin-
+openshift_metrics_image_version: latest
+openshift_metrics_master_url: https://kubernetes.default.svc.cluster.local
+openshift_metrics_project: openshift-infra
 
 
-hawkular_user_write_access: False
-hawkular_cassandra_nodes: 1
-hawkular_cassandra_storage_type: emptydir
-hawkular_cassandra_pv_prefix: metrics-cassandra
-hawkular_cassandra_pv_size: 10Gi
+openshift_metrics_hawkular_user_write_access: False
+openshift_metrics_hawkular_cassandra_nodes: 1
+openshift_metrics_hawkular_cassandra_storage_type: emptydir
+openshift_metrics_hawkular_cassandra_pv_prefix: metrics-cassandra
+openshift_metrics_hawkular_cassandra_pv_size: 10Gi
 
 
-heapster_standalone: False
-heapster_allowed_users: system:master-proxy
+openshift_metrics_heapster_standalone: False
+openshift_metrics_heapster_allowed_users: system:master-proxy
 
 
-metrics_duration: 7
-metrics_resolution: 15s
-metrics_node_id: nodename
+openshift_metrics_duration: 7
+openshift_metrics_resolution: 15s
+openshift_metrics_node_id: nodename

+ 2 - 2
roles/openshift_metrics/tasks/cleanup.yaml

@@ -1,14 +1,14 @@
 ---
 ---
 - name: remove metrics components
 - name: remove metrics components
   command: >
   command: >
-    {{ openshift.common.client_binary }} -n '{{ metrics_project }}'
+    {{ openshift.common.client_binary }} -n '{{ openshift_metrics_project }}'
     delete --selector=metrics-infra
     delete --selector=metrics-infra
     all,sa,secrets,templates,routes,pvc,rolebindings,clusterrolebindings
     all,sa,secrets,templates,routes,pvc,rolebindings,clusterrolebindings
   register: delete_metrics
   register: delete_metrics
   changed_when: "delete_metrics.stdout != 'No resources found'"
   changed_when: "delete_metrics.stdout != 'No resources found'"
 - name: remove rolebindings
 - name: remove rolebindings
   command: >
   command: >
-    {{ openshift.common.client_binary }} -n {{ metrics_project }}
+    {{ openshift.common.client_binary }} -n {{ openshift_metrics_project }}
     delete --ignore-not-found
     delete --ignore-not-found
     rolebinding/hawkular-view
     rolebinding/hawkular-view
     clusterrolebinding/heapster-cluster-reader
     clusterrolebinding/heapster-cluster-reader

+ 4 - 4
roles/openshift_metrics/tasks/generate_certificates.yaml

@@ -25,14 +25,14 @@
 # TODO maybe there's an easier way to get the service accounts' ca crt?
 # TODO maybe there's an easier way to get the service accounts' ca crt?
 - name: get heapster service account secrets
 - name: get heapster service account secrets
   shell: >
   shell: >
-    {{ openshift.common.client_binary }} -n '{{ metrics_project }}'
+    {{ openshift.common.client_binary }} -n '{{ openshift_metrics_project }}'
     get serviceaccount/default
     get serviceaccount/default
     --template '{{ '{{range .secrets}}{{println .name}}{{end}}' }}'
     --template '{{ '{{range .secrets}}{{println .name}}{{end}}' }}'
     | grep ^default-token-
     | grep ^default-token-
   register: sa_secret
   register: sa_secret
 - name: get heapster service account ca
 - name: get heapster service account ca
   command: >
   command: >
-    {{ openshift.common.client_binary }} -n '{{ metrics_project }}'
+    {{ openshift.common.client_binary }} -n '{{ openshift_metrics_project }}'
     get 'secret/{{ sa_secret.stdout }}'
     get 'secret/{{ sa_secret.stdout }}'
     --template '{{ '{{index .data "ca.crt"}}' }}'
     --template '{{ '{{index .data "ca.crt"}}' }}'
   register: sa_secret
   register: sa_secret
@@ -54,12 +54,12 @@
       heapster.cert: "{{ heapster_secret.results[0].stdout }}"
       heapster.cert: "{{ heapster_secret.results[0].stdout }}"
       heapster.key: "{{ heapster_secret.results[1].stdout }}"
       heapster.key: "{{ heapster_secret.results[1].stdout }}"
       heapster.client-ca: "{{ sa_secret.stdout }}"
       heapster.client-ca: "{{ sa_secret.stdout }}"
-      heapster.allowed-users: "{{ heapster_allowed_users|b64encode }}"
+      heapster.allowed-users: "{{ openshift_metrics_heapster_allowed_users|b64encode }}"
 - name: generate hawkular-metrics certificates
 - name: generate hawkular-metrics certificates
   include: setup_certificate.yaml
   include: setup_certificate.yaml
   vars:
   vars:
     component: hawkular-metrics
     component: hawkular-metrics
-    hostnames: "hawkular-metrics,{{ hawkular_metrics_hostname }}"
+    hostnames: "hawkular-metrics,{{ openshift_metrics_hawkular_metrics_hostname }}"
 - name: generate hawkular-cassandra certificates
 - name: generate hawkular-cassandra certificates
   include: setup_certificate.yaml
   include: setup_certificate.yaml
   vars:
   vars:

+ 1 - 1
roles/openshift_metrics/tasks/generate_rolebindings.yaml

@@ -27,4 +27,4 @@
     subjects:
     subjects:
     - kind: ServiceAccount
     - kind: ServiceAccount
       name: heapster
       name: heapster
-      namespace: "{{ metrics_project }}"
+      namespace: "{{ openshift_metrics_project }}"

+ 9 - 9
roles/openshift_metrics/tasks/install_hawkular.yaml

@@ -10,35 +10,35 @@
   vars:
   vars:
     node: "{{ item }}"
     node: "{{ item }}"
     master: "{{ (item == '1')|string|lower }}"
     master: "{{ (item == '1')|string|lower }}"
-  with_sequence: count={{ hawkular_cassandra_nodes }}
+  with_sequence: count={{ openshift_metrics_hawkular_cassandra_nodes }}
 - name: generate hawkular-cassandra persistent volume claims
 - name: generate hawkular-cassandra persistent volume claims
   template:
   template:
     src: pvc.j2
     src: pvc.j2
     dest: "{{ mktemp.stdout }}/templates/hawkular-cassandra-pvc{{ item }}.yaml"
     dest: "{{ mktemp.stdout }}/templates/hawkular-cassandra-pvc{{ item }}.yaml"
   vars:
   vars:
-    obj_name: "{{ hawkular_cassandra_pv_prefix }}-{{ item }}"
+    obj_name: "{{ openshift_metrics_hawkular_cassandra_pv_prefix }}-{{ item }}"
     labels:
     labels:
       metrics-infra: hawkular-cassandra
       metrics-infra: hawkular-cassandra
     access_modes:
     access_modes:
     - ReadWriteOnce
     - ReadWriteOnce
-    size: "{{ hawkular_cassandra_pv_size }}"
-  with_sequence: count={{ hawkular_cassandra_nodes }}
-  when: hawkular_cassandra_storage_type == 'pv'
+    size: "{{ openshift_metrics_hawkular_cassandra_pv_size }}"
+  with_sequence: count={{ openshift_metrics_hawkular_cassandra_nodes }}
+  when: openshift_metrics_hawkular_cassandra_storage_type == 'pv'
 - name: generate hawkular-cassandra persistent volume claims (dynamic)
 - name: generate hawkular-cassandra persistent volume claims (dynamic)
   template:
   template:
     src: pvc.j2
     src: pvc.j2
     dest: "{{ mktemp.stdout }}/templates/hawkular-cassandra-pvc{{ item }}.yaml"
     dest: "{{ mktemp.stdout }}/templates/hawkular-cassandra-pvc{{ item }}.yaml"
   vars:
   vars:
-    obj_name: "{{ hawkular_cassandra_pv_prefix }}-{{ item }}"
+    obj_name: "{{ openshift_metrics_hawkular_cassandra_pv_prefix }}-{{ item }}"
     labels:
     labels:
       metrics-infra: hawkular-cassandra
       metrics-infra: hawkular-cassandra
     annotations:
     annotations:
       volume.alpha.kubernetes.io/storage-class: dynamic
       volume.alpha.kubernetes.io/storage-class: dynamic
     access_modes:
     access_modes:
     - ReadWriteOnce
     - ReadWriteOnce
-    size: "{{ hawkular_cassandra_pv_size }}"
-  with_sequence: count={{ hawkular_cassandra_nodes }}
-  when: hawkular_cassandra_storage_type == 'dynamic'
+    size: "{{ openshift_metrics_hawkular_cassandra_pv_size }}"
+  with_sequence: count={{ openshift_metrics_hawkular_cassandra_nodes }}
+  when: openshift_metrics_hawkular_cassandra_storage_type == 'dynamic'
 - name: generate the hawkular-metrics route
 - name: generate the hawkular-metrics route
   template:
   template:
     src: route.j2
     src: route.j2

+ 6 - 6
roles/openshift_metrics/tasks/main.yaml

@@ -1,13 +1,13 @@
 ---
 ---
 - name: check that hawkular_metrics_hostname is set
 - 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='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_hawkular_cassandra_storage_type
   fail:
   fail:
     msg: >
     msg: >
-      hawkular_cassandra_storage_type ({{ hawkular_cassandra_storage_type }})
+      openshift_metrics_hawkular_cassandra_storage_type ({{ openshift_metrics_hawkular_cassandra_storage_type }})
       is invalid, must be one of: emptydir, pv, dynamic
       is invalid, must be one of: emptydir, pv, dynamic
-  when: hawkular_cassandra_storage_type not in hawkular_cassandra_storage_types
+  when: openshift_metrics_hawkular_cassandra_storage_type not in openshift_metrics_hawkular_cassandra_storage_types
 - name: Install Metrics
 - name: Install Metrics
   include: "{{ role_path }}/tasks/install_{{ include_file }}.yaml"
   include: "{{ role_path }}/tasks/install_{{ include_file }}.yaml"
   with_items:
   with_items:
@@ -18,7 +18,7 @@
     loop_var: include_file
     loop_var: include_file
 - name: create objects
 - name: create objects
   command: >
   command: >
-    {{ openshift.common.client_binary }} -n '{{ metrics_project }}'
+    {{ openshift.common.client_binary }} -n '{{ openshift_metrics_project }}'
     apply -f {{ item }}
     apply -f {{ item }}
   with_fileglob:
   with_fileglob:
   - "{{ mktemp.stdout }}/templates/*.yaml"
   - "{{ mktemp.stdout }}/templates/*.yaml"

+ 3 - 3
roles/openshift_metrics/templates/hawkular_cassandra_rc.j2

@@ -20,7 +20,7 @@ spec:
     spec:
     spec:
       serviceAccount: cassandra
       serviceAccount: cassandra
       containers:
       containers:
-      - image: "{{ image_prefix }}metrics-cassandra:{{ image_version }}"
+      - image: "{{ openshift_metrics_image_prefix }}metrics-cassandra:{{ openshift_metrics_image_version }}"
         name: hawkular-cassandra-{{ node }}
         name: hawkular-cassandra-{{ node }}
         ports:
         ports:
         - name: cql-port
         - name: cql-port
@@ -83,11 +83,11 @@ spec:
         terminationGracePeriodSeconds: 1800
         terminationGracePeriodSeconds: 1800
       volumes:
       volumes:
       - name: cassandra-data
       - name: cassandra-data
-{% if hawkular_cassandra_storage_type == 'emptydir' %}
+{% if openshift_metrics_hawkular_cassandra_storage_type == 'emptydir' %}
         emptyDir: {}
         emptyDir: {}
 {% else %}
 {% else %}
         persistentVolumeClaim:
         persistentVolumeClaim:
-          claimName: "{{ hawkular_cassandra_pv_prefix }}-{{ node }}"
+          claimName: "{{ openshift_metrics_hawkular_cassandra_pv_prefix }}-{{ node }}"
 {% endif %}
 {% endif %}
       - name: hawkular-cassandra-secrets
       - name: hawkular-cassandra-secrets
         secret:
         secret:

+ 5 - 5
roles/openshift_metrics/templates/hawkular_metrics_rc.j2

@@ -18,7 +18,7 @@ spec:
     spec:
     spec:
       serviceAccount: hawkular
       serviceAccount: hawkular
       containers:
       containers:
-      - image: {{image_prefix}}metrics-hawkular-metrics:{{image_version}}
+      - image: {{openshift_metrics_image_prefix}}metrics-hawkular-metrics:{{openshift_metrics_image_version}}
         name: hawkular-metrics
         name: hawkular-metrics
         ports:
         ports:
         - name: http-endpoint
         - name: http-endpoint
@@ -36,7 +36,7 @@ spec:
         - "-Dhawkular.metrics.openshift.auth-methods=openshift-oauth,htpasswd"
         - "-Dhawkular.metrics.openshift.auth-methods=openshift-oauth,htpasswd"
         - "-Dhawkular.metrics.openshift.htpasswd-file=/secrets/hawkular-metrics.htpasswd.file"
         - "-Dhawkular.metrics.openshift.htpasswd-file=/secrets/hawkular-metrics.htpasswd.file"
         - "-Dhawkular.metrics.allowed-cors-access-control-allow-headers=authorization"
         - "-Dhawkular.metrics.allowed-cors-access-control-allow-headers=authorization"
-        - "-Dhawkular.metrics.default-ttl={{metrics_duration}}"
+        - "-Dhawkular.metrics.default-ttl={{openshift_metrics_duration}}"
         - "-Dhawkular-alerts.cassandra-nodes=hawkular-cassandra"
         - "-Dhawkular-alerts.cassandra-nodes=hawkular-cassandra"
         - "-Dhawkular-alerts.cassandra-use-ssl"
         - "-Dhawkular-alerts.cassandra-use-ssl"
         - "-Dhawkular.alerts.openshift.auth-methods=openshift-oauth,htpasswd"
         - "-Dhawkular.alerts.openshift.auth-methods=openshift-oauth,htpasswd"
@@ -44,8 +44,8 @@ spec:
         - "-Dhawkular.alerts.allowed-cors-access-control-allow-headers=authorization"
         - "-Dhawkular.alerts.allowed-cors-access-control-allow-headers=authorization"
         - "-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true"
         - "-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true"
         - "-Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"
         - "-Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true"
-        - "-DKUBERNETES_MASTER_URL={{master_url}}"
-        - "-DUSER_WRITE_ACCESS={{hawkular_user_write_access}}"
+        - "-DKUBERNETES_MASTER_URL={{openshift_metrics_master_url}}"
+        - "-DUSER_WRITE_ACCESS={{openshift_metrics_hawkular_user_write_access}}"
         - "--hmw.keystore=/secrets/hawkular-metrics.keystore"
         - "--hmw.keystore=/secrets/hawkular-metrics.keystore"
         - "--hmw.truststore=/secrets/hawkular-metrics.truststore"
         - "--hmw.truststore=/secrets/hawkular-metrics.truststore"
         - "--hmw.keystore_password_file=/secrets/hawkular-metrics.keystore.password"
         - "--hmw.keystore_password_file=/secrets/hawkular-metrics.keystore.password"
@@ -59,7 +59,7 @@ spec:
             fieldRef:
             fieldRef:
               fieldPath: metadata.namespace
               fieldPath: metadata.namespace
         - name: MASTER_URL
         - name: MASTER_URL
-          value: "{{ master_url }}"
+          value: "{{ openshift_metrics_master_url }}"
         - name: OPENSHIFT_KUBE_PING_NAMESPACE
         - name: OPENSHIFT_KUBE_PING_NAMESPACE
           valueFrom:
           valueFrom:
             fieldRef:
             fieldRef:

+ 7 - 7
roles/openshift_metrics/templates/heapster.j2

@@ -20,29 +20,29 @@ spec:
       serviceAccountName: heapster
       serviceAccountName: heapster
       containers:
       containers:
       - name: heapster
       - name: heapster
-        image: {{image_prefix}}metrics-heapster:{{image_version}}
+        image: {{openshift_metrics_image_prefix}}metrics-heapster:{{openshift_metrics_image_version}}
         ports:
         ports:
         - containerPort: 8082
         - containerPort: 8082
           name: "http-endpoint"
           name: "http-endpoint"
         command:
         command:
         - "heapster-wrapper.sh"
         - "heapster-wrapper.sh"
         - "--wrapper.allowed_users_file=/secrets/heapster.allowed-users"
         - "--wrapper.allowed_users_file=/secrets/heapster.allowed-users"
-        - "--source=kubernetes:{{master_url}}?useServiceAccount=true&kubeletHttps=true&kubeletPort=10250"
+        - "--source=kubernetes:{{openshift_metrics_master_url}}?useServiceAccount=true&kubeletHttps=true&kubeletPort=10250"
         - "--tls_cert=/secrets/heapster.cert"
         - "--tls_cert=/secrets/heapster.cert"
         - "--tls_key=/secrets/heapster.key"
         - "--tls_key=/secrets/heapster.key"
         - "--tls_client_ca=/secrets/heapster.client-ca"
         - "--tls_client_ca=/secrets/heapster.client-ca"
         - "--allowed_users=%allowed_users%"
         - "--allowed_users=%allowed_users%"
-        - "--metric_resolution={{metrics_resolution}}"
-{% if not heapster_standalone %}
+        - "--metric_resolution={{openshift_metrics_resolution}}"
+{% if not openshift_metrics_heapster_standalone %}
         - "--wrapper.username_file=/hawkular-account/hawkular-metrics.username"
         - "--wrapper.username_file=/hawkular-account/hawkular-metrics.username"
         - "--wrapper.password_file=/hawkular-account/hawkular-metrics.password"
         - "--wrapper.password_file=/hawkular-account/hawkular-metrics.password"
         - "--wrapper.endpoint_check=https://hawkular-metrics:443/hawkular/metrics/status"
         - "--wrapper.endpoint_check=https://hawkular-metrics:443/hawkular/metrics/status"
-        - "--sink=hawkular:https://hawkular-metrics:443?tenant=_system&labelToTenant=pod_namespace&labelNodeId={{metrics_node_id}}&caCert=/hawkular-cert/hawkular-metrics-ca.certificate&user=%username%&pass=%password%&filter=label(container_name:^system.slice.*|^user.slice)"
+        - "--sink=hawkular:https://hawkular-metrics:443?tenant=_system&labelToTenant=pod_namespace&labelNodeId={{openshift_metrics_node_id}}&caCert=/hawkular-cert/hawkular-metrics-ca.certificate&user=%username%&pass=%password%&filter=label(container_name:^system.slice.*|^user.slice)"
 {% endif %}
 {% endif %}
         volumeMounts:
         volumeMounts:
         - name: heapster-secrets
         - name: heapster-secrets
           mountPath: "/secrets"
           mountPath: "/secrets"
-{% if not heapster_standalone %}
+{% if not openshift_metrics_heapster_standalone %}
         - name: hawkular-metrics-certificate
         - name: hawkular-metrics-certificate
           mountPath: "/hawkular-cert"
           mountPath: "/hawkular-cert"
         - name: hawkular-metrics-account
         - name: hawkular-metrics-account
@@ -56,7 +56,7 @@ spec:
         - name: heapster-secrets
         - name: heapster-secrets
           secret:
           secret:
             secretName: heapster-secrets
             secretName: heapster-secrets
-{% if not heapster_standalone %}
+{% if not openshift_metrics_heapster_standalone %}
         - name: hawkular-metrics-certificate
         - name: hawkular-metrics-certificate
           secret:
           secret:
             secretName: hawkular-metrics-certificate
             secretName: hawkular-metrics-certificate

+ 1 - 1
roles/openshift_metrics/vars/main.yaml

@@ -1,4 +1,4 @@
-hawkular_cassandra_storage_types:
+openshift_metrics_hawkular_cassandra_storage_types:
 - emptydir
 - emptydir
 - pv
 - pv
 - dynamic
 - dynamic