]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: do not enforce `serial: 1` on client nodes
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Jan 2019 15:53:06 +0000 (16:53 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 2 Jan 2019 16:55:08 +0000 (16:55 +0000)
There is no need to enforce `serial: 1` on client nodes.
Let's make it parameterizable by introducing a new *extra* variable
`client_update_batch`, if not filled this will default to `{{
ansible_forks }}`.

NOTE: this is only usable as an extra variable passed with
`-e client_update_batch=<num>`

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1650184
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 5547a8b81f1a6abce63f426ed6ffa683f0cc3fe2..e8df5860950bc0122f55601733c24c13f1fcb6d7 100644 (file)
     upgrade_ceph_packages: True
   hosts:
     - "{{ client_group_name|default('clients') }}"
-  serial: 1
+  serial: "{{ client_update_batch | default(ansible_forks) }}"
   become: True
   tasks:
     - import_role: