diff --git a/playbooks/manual/staging-sync/bodhi.yml b/playbooks/manual/staging-sync/bodhi.yml index 9acf14ea15..09e50abc30 100644 --- a/playbooks/manual/staging-sync/bodhi.yml +++ b/playbooks/manual/staging-sync/bodhi.yml @@ -71,7 +71,7 @@ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml tasks: - - command: oc -n bodhi scale dc/bodhi-web --replicas={{ hostvars[groups['bodhi2-stg'][0]]['openshift_pods'] }} + - command: oc -n bodhi scale dc/bodhi-web --replicas={{ hostvars[groups['bodhi2_stg'][0]]['openshift_pods'] }} - name: bring staging services up (httpd) hosts: bodhi2_stg diff --git a/playbooks/manual/upgrade/bodhi.yml b/playbooks/manual/upgrade/bodhi.yml index 6d8fb82e13..0f02a4ba49 100644 --- a/playbooks/manual/upgrade/bodhi.yml +++ b/playbooks/manual/upgrade/bodhi.yml @@ -149,7 +149,7 @@ command: oc -n bodhi scale dc/bodhi-web --replicas={{ hostvars[groups['bodhi2'][0]]['openshift_pods'] }} when: env != "staging" - name: Scale up pods - command: oc -n bodhi scale dc/bodhi-web --replicas={{ hostvars[groups['bodhi2-stg'][0]]['openshift_pods'] }} + command: oc -n bodhi scale dc/bodhi-web --replicas={{ hostvars[groups['bodhi2_stg'][0]]['openshift_pods'] }} when: env == "staging" post_tasks: diff --git a/playbooks/openshift-apps/bodhi.yml b/playbooks/openshift-apps/bodhi.yml index 579fb2fb8d..b17477037f 100644 --- a/playbooks/openshift-apps/bodhi.yml +++ b/playbooks/openshift-apps/bodhi.yml @@ -132,8 +132,8 @@ when: env == "production" # Add one of these for production when we deploy 4.0.0 - name: Scale up pods - command: oc -n bodhi scale dc/bodhi-consumer --replicas={{ hostvars[groups['bodhi2-stg'][0]]['openshift_pods'] }} + command: oc -n bodhi scale dc/bodhi-consumer --replicas={{ hostvars[groups['bodhi2_stg'][0]]['openshift_pods'] }} when: env == "staging" - name: Scale up pods - command: oc -n bodhi scale dc/bodhi-web --replicas={{ hostvars[groups['bodhi2-stg'][0]]['openshift_pods'] }} + command: oc -n bodhi scale dc/bodhi-web --replicas={{ hostvars[groups['bodhi2_stg'][0]]['openshift_pods'] }} when: env == "staging" diff --git a/roles/openshift-apps/bodhi/templates/deploymentconfig.yml b/roles/openshift-apps/bodhi/templates/deploymentconfig.yml index b1f1b376b8..30f1258ae2 100644 --- a/roles/openshift-apps/bodhi/templates/deploymentconfig.yml +++ b/roles/openshift-apps/bodhi/templates/deploymentconfig.yml @@ -9,7 +9,7 @@ items: name: bodhi-web spec: {% if env == "staging" %} - replicas: {{ hostvars[groups['bodhi2-stg'][0]]['openshift_pods'] }} + replicas: {{ hostvars[groups['bodhi2_stg'][0]]['openshift_pods'] }} {% else %} replicas: {{ hostvars[groups['bodhi2'][0]]['openshift_pods'] }} {% endif %} @@ -150,7 +150,7 @@ items: name: bodhi-consumer spec: {% if env == "staging" %} - replicas: {{ hostvars[groups['bodhi2-stg'][0]]['openshift_pods'] }} + replicas: {{ hostvars[groups['bodhi2_stg'][0]]['openshift_pods'] }} {% else %} replicas: {{ hostvars[groups['bodhi2'][0]]['openshift_pods'] }} {% endif %}