diff options
author | Dimitri Savineau <dsavinea@redhat.com> | 2022-06-13 09:47:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 09:47:26 -0400 |
commit | 531123a311cde6d2c440d4649eed9fb6e4e430ab (patch) | |
tree | 98451704efaadc4423ee5637c592d0b17cc800e0 | |
parent | fa3f74af91486d199b5a477e0d6f1ddb165a0cbc (diff) | |
download | ansible-531123a311cde6d2c440d4649eed9fb6e4e430ab.tar.gz |
New release v2.12.7rc1 (#78034)v2.12.7rc1
-rw-r--r-- | changelogs/CHANGELOG-v2.12.rst | 74 | ||||
-rw-r--r-- | changelogs/changelog.yaml | 41 | ||||
-rw-r--r-- | changelogs/fragments/v2.12.7rc1_summary.yaml | 3 | ||||
-rw-r--r-- | lib/ansible/release.py | 2 |
4 files changed, 119 insertions, 1 deletions
diff --git a/changelogs/CHANGELOG-v2.12.rst b/changelogs/CHANGELOG-v2.12.rst index d47f5ae458..3b24c816e2 100644 --- a/changelogs/CHANGELOG-v2.12.rst +++ b/changelogs/CHANGELOG-v2.12.rst @@ -5,6 +5,80 @@ ansible-core 2.12 "Dazed and Confused" Release Notes .. contents:: Topics +v2.12.7rc1 +========== + +Release Summary +--------------- + +| Release Date: 2022-06-13 +| `Porting Guide <https://docs.ansible.com/ansible/devel/porting_guides.html>`__ + + +Minor Changes +------------- + +- Add an 'action_plugin' field for modules in runtime.yml plugin_routing. + + This fixes module_defaults by supporting modules-as-redirected-actions + without redirecting module_defaults entries to the common action. + + .. code: yaml + + plugin_routing: + action: + facts: + redirect: ns.coll.eos + command: + redirect: ns.coll.eos + modules: + facts: + redirect: ns.coll.eos_facts + command: + redirect: ns.coll.eos_command + + With the runtime.yml above for ns.coll, a task such as + + .. code: yaml + + - hosts: all + module_defaults: + ns.coll.eos_facts: {'valid_for_eos_facts': 'value'} + ns.coll.eos_command: {'not_valid_for_eos_facts': 'value'} + tasks: + - ns.coll.facts: + + will end up with defaults for eos_facts and eos_command + since both modules redirect to the same action. + + To select an action plugin for a module without merging + module_defaults, define an action_plugin field for the resolved + module in the runtime.yml. + + .. code: yaml + + plugin_routing: + modules: + facts: + redirect: ns.coll.eos_facts + action_plugin: ns.coll.eos + command: + redirect: ns.coll.eos_command + action_plugin: ns.coll.eos + + The action_plugin field can be a redirected action plugin, as + it is resolved normally. + + Using the modified runtime.yml, the example task will only use + the ns.coll.eos_facts defaults. +- ansible-test - Avoid using the ``mock_use_standalone_module`` setting for unit tests running on Python 3.8 or later. + +Bugfixes +-------- + +- pip - fix cases where resolution of pip Python module fails when importlib.util has not already been imported +- plugin loader - Sort results when fuzzy matching plugin names (https://github.com/ansible/ansible/issues/77966). + v2.12.6 ======= diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 5ac612cd88..6a1629f556 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -1476,3 +1476,44 @@ releases: - v2.12.6rc1_summary.yaml - vm_more_efficient.yml release_date: '2022-05-16' + 2.12.7rc1: + changes: + bugfixes: + - pip - fix cases where resolution of pip Python module fails when importlib.util + has not already been imported + - plugin loader - Sort results when fuzzy matching plugin names (https://github.com/ansible/ansible/issues/77966). + minor_changes: + - "Add an 'action_plugin' field for modules in runtime.yml plugin_routing.\n\nThis + fixes module_defaults by supporting modules-as-redirected-actions\nwithout + redirecting module_defaults entries to the common action.\n\n.. code: yaml\n\n + \ plugin_routing:\n action:\n facts:\n redirect: ns.coll.eos\n + \ command:\n redirect: ns.coll.eos\n modules:\n facts:\n + \ redirect: ns.coll.eos_facts\n command:\n redirect: + ns.coll.eos_command\n\nWith the runtime.yml above for ns.coll, a task such + as\n\n.. code: yaml\n\n - hosts: all\n module_defaults:\n ns.coll.eos_facts: + {'valid_for_eos_facts': 'value'}\n ns.coll.eos_command: {'not_valid_for_eos_facts': + 'value'}\n tasks:\n - ns.coll.facts:\n\nwill end up with defaults + for eos_facts and eos_command\nsince both modules redirect to the same action.\n\nTo + select an action plugin for a module without merging\nmodule_defaults, define + an action_plugin field for the resolved\nmodule in the runtime.yml.\n\n.. + code: yaml\n\n plugin_routing:\n modules:\n facts:\n redirect: + ns.coll.eos_facts\n action_plugin: ns.coll.eos\n command:\n + \ redirect: ns.coll.eos_command\n action_plugin: ns.coll.eos\n\nThe + action_plugin field can be a redirected action plugin, as\nit is resolved + normally.\n\nUsing the modified runtime.yml, the example task will only use\nthe + ns.coll.eos_facts defaults.\n" + - ansible-test - Avoid using the ``mock_use_standalone_module`` setting for + unit tests running on Python 3.8 or later. + release_summary: '| Release Date: 2022-06-13 + + | `Porting Guide <https://docs.ansible.com/ansible/devel/porting_guides.html>`__ + + ' + codename: Dazed and Confused + fragments: + - 77265-module_defaults-with-modules-as-redirected-actions.yaml + - ansible-test-ansible-core-mock.yml + - pip-lazy-import.yml + - plugin-loader-deterministic-fuzzy-match.yml + - v2.12.7rc1_summary.yaml + release_date: '2022-06-13' diff --git a/changelogs/fragments/v2.12.7rc1_summary.yaml b/changelogs/fragments/v2.12.7rc1_summary.yaml new file mode 100644 index 0000000000..f08bdf8697 --- /dev/null +++ b/changelogs/fragments/v2.12.7rc1_summary.yaml @@ -0,0 +1,3 @@ +release_summary: | + | Release Date: 2022-06-13 + | `Porting Guide <https://docs.ansible.com/ansible/devel/porting_guides.html>`__ diff --git a/lib/ansible/release.py b/lib/ansible/release.py index b29689a262..82e9f1e0bb 100644 --- a/lib/ansible/release.py +++ b/lib/ansible/release.py @@ -19,6 +19,6 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -__version__ = '2.12.6.post0' +__version__ = '2.12.7rc1' __author__ = 'Ansible, Inc.' __codename__ = 'Dazed and Confused' |