diff options
author | Mangirdas <mangirdas@judeikis.lt> | 2016-08-26 16:12:23 +0100 |
---|---|---|
committer | Mangirdas <mangirdas@judeikis.lt> | 2016-08-26 16:12:23 +0100 |
commit | 0cae017161b71e7c9e7c09cfc794672ecc6f897d (patch) | |
tree | e4cb2359b18d4646ed22aca92adcc47cbfd80742 /playbooks | |
parent | 8a0c9b6b6a9820b38694cb23979ffc7a8c358588 (diff) | |
download | openshift-0cae017161b71e7c9e7c09cfc794672ecc6f897d.tar.gz openshift-0cae017161b71e7c9e7c09cfc794672ecc6f897d.tar.bz2 openshift-0cae017161b71e7c9e7c09cfc794672ecc6f897d.tar.xz openshift-0cae017161b71e7c9e7c09cfc794672ecc6f897d.zip |
add run_once to repeatable actions
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/adhoc/metrics_setup/playbooks/install.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/playbooks/adhoc/metrics_setup/playbooks/install.yml b/playbooks/adhoc/metrics_setup/playbooks/install.yml index 235f775ef..1aac8acb1 100644 --- a/playbooks/adhoc/metrics_setup/playbooks/install.yml +++ b/playbooks/adhoc/metrics_setup/playbooks/install.yml @@ -16,21 +16,26 @@ - name: "Add metrics-deployer" command: "{{item}}" + run_once: true with_items: - oc project openshift-infra - oc create -f /tmp/metrics-deployer-setup.yaml - name: "Give metrics-deployer SA permissions" command: "oadm policy add-role-to-user edit system:serviceaccount:openshift-infra:metrics-deployer" + run_once: true - name: "Give heapster SA permissions" command: "oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:openshift-infra:heapster" + run_once: true - name: "Create metrics-deployer secret" command: "oc secrets new metrics-deployer nothing=/dev/null" + run_once: true - name: "Copy metrics.yaml to remote" copy: "src=../files/metrics.yaml dest=/tmp/metrics.yaml force=yes" - 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 -" + run_once: true
\ No newline at end of file |