Set Ansible forks to 50
20 is working fine with plenty of ram/cpu to spare, increase to 50 to attempt to speed up the runtime. The environment variable should be used by default, but the "-f" option will override that, in the one case where we need it. Change-Id: Ie6a1d991a346702ec58cd716b0b94af5c93554ac
This commit is contained in:
parent
24c67ecb0e
commit
8419909571
@ -21,6 +21,7 @@ set -e
|
||||
|
||||
SYSTEM_CONFIG=/opt/system-config
|
||||
ANSIBLE_PLAYBOOKS=$SYSTEM_CONFIG/playbooks
|
||||
ANSIBLE_FORKS=50
|
||||
|
||||
echo "--- begin run @ $(date -Is) ---"
|
||||
|
||||
@ -39,18 +40,18 @@ timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/update-system-config.ya
|
||||
timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/bridge.yaml
|
||||
|
||||
# Run the base playbook everywhere
|
||||
timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/base.yaml
|
||||
timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/base.yaml
|
||||
|
||||
# Update the puppet version
|
||||
timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/update_puppet_version.yaml
|
||||
timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/update_puppet_version.yaml
|
||||
|
||||
# Run the git/gerrit/zuul sequence, since it's important that they all work together
|
||||
timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/remote_puppet_git.yaml
|
||||
timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/remote_puppet_git.yaml
|
||||
# Run AFS changes separately so we can make sure to only do one at a time
|
||||
# (turns out quorum is nice to have)
|
||||
timeout -k 2m 120m ansible-playbook -f 1 ${ANSIBLE_PLAYBOOKS}/remote_puppet_afs.yaml
|
||||
# Run everything else. We do not care if the other things worked
|
||||
timeout -k 2m 120m ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/remote_puppet_else.yaml
|
||||
timeout -k 2m 120m ansible-playbook ${ANSIBLE_PLAYBOOKS}/remote_puppet_else.yaml
|
||||
|
||||
echo "--- end run @ $(date -Is) ---"
|
||||
echo
|
||||
|
Loading…
x
Reference in New Issue
Block a user