bodhi: Fix some more group names with dashes.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
2c63d5cdd8
commit
19291eb169
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue