Allow passing forks to kolla-ansible script
For large installations it makes sense to use a higher number of forks than the default. Change-Id: I34cdc146a4ed2185fb36fbb34ab72916ec98bee5
This commit is contained in:
parent
49903241fe
commit
7321fe772d
5
releasenotes/notes/add-forks-flag-faf0d27618265bd4.yaml
Normal file
5
releasenotes/notes/add-forks-flag-faf0d27618265bd4.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Adds a new argument to the ``kolla-ansible`` command, ``--forks NUM``.
|
||||
This argument is passed through directly to ``ansible-playbook``.
|
@ -44,6 +44,7 @@ Options:
|
||||
--extra, -e <ansible variables> Set additional variables as key=value or YAML/JSON passed to ansible-playbook
|
||||
--passwords <passwords_path> Specify path to the passwords file
|
||||
--limit <host> Specify host to run plays
|
||||
--forks <forks> Number of forks to run Ansible with
|
||||
--vault-id <@prompt or path> Specify @prompt or password file (Ansible >= 2.4)
|
||||
--ask-vault-pass Ask for vault password
|
||||
--vault-password-file <path> Specify password file for vault decrypt
|
||||
@ -82,6 +83,7 @@ cat <<EOF
|
||||
--extra -e
|
||||
--passwords
|
||||
--limit
|
||||
--forks
|
||||
--vault-id
|
||||
--ask-vault-pass
|
||||
--vault-password-file
|
||||
@ -105,7 +107,7 @@ EOF
|
||||
}
|
||||
|
||||
SHORT_OPTS="hi:p:t:k:e:v"
|
||||
LONG_OPTS="help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,configdir:,passwords:,limit:,vault-id:,ask-vault-pass,vault-password-file:,yes-i-really-really-mean-it,include-images,include-dev"
|
||||
LONG_OPTS="help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,configdir:,passwords:,limit:,forks:,vault-id:,ask-vault-pass,vault-password-file:,yes-i-really-really-mean-it,include-images,include-dev"
|
||||
|
||||
RAW_ARGS="$*"
|
||||
ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; }
|
||||
@ -199,6 +201,11 @@ while [ "$#" -gt 0 ]; do
|
||||
shift 2
|
||||
;;
|
||||
|
||||
(--forks)
|
||||
EXTRA_OPTS="$EXTRA_OPTS --forks $2"
|
||||
shift 2
|
||||
;;
|
||||
|
||||
(--vault-id)
|
||||
EXTRA_OPTS="$EXTRA_OPTS --vault-id $2"
|
||||
shift 2
|
||||
|
Loading…
Reference in New Issue
Block a user