docker_swarm_service: Remove defaults (#52420)

* Remove update_parallelism default

* Remove update_delay default

* Add documentation about removing defaults

* Present porting guide changes as a list
This commit is contained in:
Hannes Ljungberg 2019-02-18 20:19:19 +01:00 committed by Brian Coca
parent 367c62c9b5
commit 0bf9052e06
4 changed files with 13 additions and 7 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- "docker_swarm_service - Don't set ``1`` as default for ``update_parallelism``."
- "docker_swarm_service - Don't set ``10`` as default for ``update_delay``."

View file

@ -185,7 +185,10 @@ Noteworthy module changes
* The ``docker_service`` module was renamed to :ref:`docker_compose <docker_compose_module>`.
* The ``docker_swarm_service`` module no longer sets a default for the ``user`` option. Before, the default was ``root``.
* The ``docker_swarm_service`` module no longer sets a defaults for the following options:
* ``user``. Before, the default was ``root``.
* ``update_delay``. Before, the default was ``10``.
* ``update_parallelism``. Before, the default was ``1``.
* ``vmware_vm_facts`` used to return dict of dict with virtual machine's facts. Ansible 2.8 and onwards will return list of dict with virtual machine's facts.
Please see module ``vmware_vm_facts`` documentation for example.

View file

@ -403,16 +403,16 @@ options:
- Corresponds to the C(--restart-window) option of C(docker service create).
update_delay:
type: int
default: 10
description:
- Rolling update delay in nanoseconds.
- Corresponds to the C(--update-delay) option of C(docker service create).
- Before Ansible 2.8, the default value for this option was C(10).
update_parallelism:
type: int
default: 1
description:
- Rolling update parallelism.
- Corresponds to the C(--update-parallelism) option of C(docker service create).
- Before Ansible 2.8, the default value for this option was C(1).
update_failure_action:
type: str
description:
@ -1711,8 +1711,8 @@ def main():
restart_policy_delay=dict(type='int'),
restart_policy_attempts=dict(type='int'),
restart_policy_window=dict(type='int'),
update_delay=dict(default=10, type='int'),
update_parallelism=dict(default=1, type='int'),
update_delay=dict(type='int'),
update_parallelism=dict(type='int'),
update_failure_action=dict(choices=['continue', 'pause']),
update_monitor=dict(type='int'),
update_max_failure_ratio=dict(type='float'),

View file

@ -38,10 +38,10 @@ service_expected_output:
restart_policy_delay: null
restart_policy_window: null
tty: null
update_delay: 10
update_delay: null
update_failure_action: null
update_max_failure_ratio: null
update_monitor: null
update_order: null
update_parallelism: 1
update_parallelism: null
working_dir: null