|
@@ -16,21 +16,26 @@
|
|
|
|
|
|
- name: "Add metrics-deployer"
|
|
- name: "Add metrics-deployer"
|
|
command: "{{item}}"
|
|
command: "{{item}}"
|
|
|
|
+ run_once: true
|
|
with_items:
|
|
with_items:
|
|
- oc project openshift-infra
|
|
- oc project openshift-infra
|
|
- oc create -f /tmp/metrics-deployer-setup.yaml
|
|
- oc create -f /tmp/metrics-deployer-setup.yaml
|
|
|
|
|
|
- name: "Give metrics-deployer SA permissions"
|
|
- name: "Give metrics-deployer SA permissions"
|
|
command: "oadm policy add-role-to-user edit system:serviceaccount:openshift-infra:metrics-deployer"
|
|
command: "oadm policy add-role-to-user edit system:serviceaccount:openshift-infra:metrics-deployer"
|
|
|
|
+ run_once: true
|
|
|
|
|
|
- name: "Give heapster SA permissions"
|
|
- name: "Give heapster SA permissions"
|
|
command: "oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:openshift-infra:heapster"
|
|
command: "oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:openshift-infra:heapster"
|
|
|
|
+ run_once: true
|
|
|
|
|
|
- name: "Create metrics-deployer secret"
|
|
- name: "Create metrics-deployer secret"
|
|
command: "oc secrets new metrics-deployer nothing=/dev/null"
|
|
command: "oc secrets new metrics-deployer nothing=/dev/null"
|
|
|
|
+ run_once: true
|
|
|
|
|
|
- name: "Copy metrics.yaml to remote"
|
|
- name: "Copy metrics.yaml to remote"
|
|
copy: "src=../files/metrics.yaml dest=/tmp/metrics.yaml force=yes"
|
|
copy: "src=../files/metrics.yaml dest=/tmp/metrics.yaml force=yes"
|
|
|
|
|
|
- name: "Process yml template"
|
|
- name: "Process yml template"
|
|
shell: "oc process -f /tmp/metrics.yaml -v MASTER_URL={{ masterPublicURL }},REDEPLOY=true,HAWKULAR_METRICS_HOSTNAME={{ metrics_external_service }},IMAGE_PREFIX={{ metrics_image_prefix }},IMAGE_VERSION={{ metrics_image_version }},USE_PERSISTENT_STORAGE=false | oc create -f -"
|
|
shell: "oc process -f /tmp/metrics.yaml -v MASTER_URL={{ masterPublicURL }},REDEPLOY=true,HAWKULAR_METRICS_HOSTNAME={{ metrics_external_service }},IMAGE_PREFIX={{ metrics_image_prefix }},IMAGE_VERSION={{ metrics_image_version }},USE_PERSISTENT_STORAGE=false | oc create -f -"
|
|
|
|
+ run_once: true
|