Merge "Disable running playbooks in serial by default"

This commit is contained in:
Jenkins 2017-03-08 16:51:13 +00:00 committed by Gerrit Code Review
commit d860cefd51
3 changed files with 10 additions and 3 deletions

View File

@ -133,7 +133,6 @@
- name: Apply role mariadb
gather_facts: false
hosts: mariadb
serial: '{{ serial|default("0") }}'
roles:
- { role: mariadb,
tags: mariadb,

View File

@ -0,0 +1,5 @@
---
features:
- Run ansible playbooks in serial is disabled by default now. Serial is not
recommended. But you can enable it by configuring ANSIBLE_SERIAL
environment variable.

View File

@ -80,6 +80,9 @@ CONFIG_DIR="/etc/kolla"
PASSWORDS_FILE="${CONFIG_DIR}/passwords.yml"
DANGER_CONFIRM=
INCLUDE_IMAGES=
# Serial is not recommended and disable in default. User could enable it by
# simple configure ANSIBLE_SERIAL variable
ANSIBLE_SERIAL=${ANSIBLE_SERIAL:-0}
while [ "$#" -gt 0 ]; do
case "$1" in
@ -207,11 +210,11 @@ EOF
;;
(upgrade)
ACTION="Upgrading OpenStack Environment"
EXTRA_OPTS="$EXTRA_OPTS -e action=upgrade -e serial=30%"
EXTRA_OPTS="$EXTRA_OPTS -e action=upgrade -e serial=${ANSIBLE_SERIAL}"
;;
(reconfigure)
ACTION="Reconfigure OpenStack service"
EXTRA_OPTS="$EXTRA_OPTS -e action=reconfigure -e serial=30%"
EXTRA_OPTS="$EXTRA_OPTS -e action=reconfigure -e serial=${ANSIBLE_SERIAL}"
;;
(stop)
ACTION="Stop Kolla containers"