Skip to content

Commit 6453c89

Browse files
committed
Merge branch 'devel' into faq-update-section-running-on-zos
2 parents 89c04a3 + 634e6d0 commit 6453c89

File tree

14 files changed

+198
-261
lines changed

14 files changed

+198
-261
lines changed

.github/workflows/pip-compile-docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
nox-args: >-
3131
-e
3232
'pip-compile(requirements)'
33-
'pip-compile(requirements-relaxed)'
3433
reset-branch: "${{ inputs.reset-branch || false }}"
3534
labels: "${{ inputs.labels || 'doc builds,no_backport' }}"
3635
python-versions: "3.11"

docs/docsite/rst/community/documentation_contributions.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ For more information on minimum Python versions, see the :ref:`support matrix <s
113113
114114
pip install -r tests/requirements.in -c tests/requirements.txt # Installs tested dependency versions.
115115
pip install -r tests/requirements.in # Installs the unpinned dependency versions.
116-
pip install -r tests/requirements-relaxed.in # Installs the unpinned dependency versions including untested antsibull-docs.
117116
118117
119118
.. note::

docs/docsite/rst/community/how_can_I_help.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ You can also get started with solving GitHub issues labeled with the ``easyfix``
7070
When you choose an issue to work on, add a comment directly on the GitHub issue to say you are looking at it and let others know to avoid conflicting work.
7171
You can also ask for help in a comment if you need it.
7272

73+
For collections, refer to the :ref:`collection_quickstart` page to learn how to quickly set up your local environment, test your changes, and submit a ready-for-review pull request.
74+
7375
Another good way to help is to review pull requests that other Ansible users have submitted. Ansible Core keeps a full list of `open pull requests by file <https://ansible.sivel.net/pr/byfile.html>`_, so if a particular module or plugin interests you, you can easily keep track of all the relevant new pull requests and provide testing or feedback. Alternatively, you can review the pull requests for any collections that interest you. Click :guilabel:`Issue tracker` on the collection documentation page to find the issues and PRs for that collection.
7476

7577
Become a collection maintainer

docs/docsite/rst/installation_guide/intro_installation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ Include the ``--include-apps`` option to make apps in the additional python depe
117117
118118
$ pipx inject --include-apps ansible argcomplete
119119
120+
If you need to install dependencies from a requirements file, for example when installing the Azure collection, you can use ``runpip``.
121+
122+
.. code-block:: console
123+
124+
$ pipx runpip ansible install -r ~/.ansible/collections/ansible_collections/azure/azcollection/requirements.txt
125+
126+
120127
Installing and upgrading Ansible with pip
121128
=========================================
122129

docs/docsite/rst/porting_guides/porting_guide_11.rst

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,109 @@ Networking
9797

9898
No notable changes
9999

100+
Porting Guide for v11.2.0
101+
=========================
102+
103+
Known Issues
104+
------------
105+
106+
dellemc.openmanage
107+
~~~~~~~~~~~~~~~~~~
108+
109+
- idrac_diagnostics - Issue(285322) - This module doesn't support export of diagnostics file to HTTP and HTTPS share via SOCKS proxy.
110+
- idrac_firmware - Issue(279282) - This module does not support firmware update using HTTP, HTTPS, and FTP shares with authentication on iDRAC8.
111+
- ome_smart_fabric_uplink - Issue(186024) - The module supported by OpenManage Enterprise Modular, however it does not allow the creation of multiple uplinks of the same name. If an uplink is created using the same name as an existing uplink, then the existing uplink is modified.
112+
113+
Major Changes
114+
-------------
115+
116+
community.general
117+
~~~~~~~~~~~~~~~~~
118+
119+
- keycloak_* modules - ``refresh_token`` parameter added. When multiple authentication parameters are provided (``token``, ``refresh_token``, and ``auth_username``/``auth_password``), modules will now automatically retry requests upon authentication errors (401), using in order the token, refresh token, and username/password (https://github.com/ansible-collections/community.general/pull/9494).
120+
121+
community.vmware
122+
~~~~~~~~~~~~~~~~
123+
124+
- vmware_dvswitch_pvlans - The VLAN ID type has been updated to be handled as an integer (https://github.com/ansible-collections/community.vmware/pull/2267).
125+
126+
dellemc.openmanage
127+
~~~~~~~~~~~~~~~~~~
128+
129+
- omevv_firmware - This module allows to update firmware of the single host and single cluster.
130+
131+
fortinet.fortios
132+
~~~~~~~~~~~~~~~~
133+
134+
- Support check_mode on all the configuration modules.
135+
136+
google.cloud
137+
~~~~~~~~~~~~
138+
139+
- google_cloud_ops_agents - role submodule removed because it prevents the collection from passing sanity and lint tests
140+
141+
grafana.grafana
142+
~~~~~~~~~~~~~~~
143+
144+
- Ability to set custom directory path for *.alloy config files by @voidquark in https://github.com/grafana/grafana-ansible-collection/pull/294
145+
- Fix 'dict object' has no attribute 'path' when running with --check by @JMLX42 in https://github.com/grafana/grafana-ansible-collection/pull/283
146+
- Update grafana template by @santilococo in https://github.com/grafana/grafana-ansible-collection/pull/300
147+
- add loki bloom support by @voidquark in https://github.com/grafana/grafana-ansible-collection/pull/298
148+
- grafana.ini yaml syntax by @intermittentnrg in https://github.com/grafana/grafana-ansible-collection/pull/232
149+
150+
Deprecated Features
151+
-------------------
152+
153+
- The ``cisco.asa`` collection has been deprecated.
154+
It will be removed from Ansible 12 if no one starts maintaining it again before Ansible 12.
155+
See `Collections Removal Process for unmaintained collections <https://docs.ansible.com/ansible/devel/community/collection_contributors/collection_package_removal.html#unmaintained-collections>`__ for more details (`https://forum.ansible.com/t/38960 <https://forum.ansible.com/t/38960>`__).
156+
157+
amazon.aws
158+
~~~~~~~~~~
159+
160+
- autoscaling_group - the ``decrement_desired_capacity`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. Management of instances attached an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance`` module (https://github.com/ansible-collections/amazon.aws/pull/2396).
161+
- autoscaling_group - the ``replace_batch_size``, ``lc_check`` and ``lt_check`` parameters have been deprecated and will be removed in release 14.0.0 of this collection. Rolling replacement of instances in an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance_refresh`` module (https://github.com/ansible-collections/amazon.aws/pull/2396).
162+
- autoscaling_group - the functionality provided through the ``detach_instances`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. Management of instances attached an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance`` module (https://github.com/ansible-collections/amazon.aws/pull/2396).
163+
- autoscaling_group - the functionality provided through the ``replace_all_instances`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. Rolling replacement of instances in an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance_refresh`` module (https://github.com/ansible-collections/amazon.aws/pull/2396).
164+
- autoscaling_group - the functionality provided through the ``replace_instances`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. Management of instances attached an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance`` module (https://github.com/ansible-collections/amazon.aws/pull/2396).
165+
166+
community.crypto
167+
~~~~~~~~~~~~~~~~
168+
169+
- Support for ansible-core 2.11, 2.12, 2.13, 2.14, 2.15, and 2.16 is deprecated, and will be removed in the next major release (community.crypto 3.0.0). Some modules might still work with some of these versions afterwards, but we will no longer keep compatibility code that was needed to support them. Note that this means that support for all Python versions before 3.7 will be dropped, also on the target side (https://github.com/ansible-collections/community.crypto/issues/559, https://github.com/ansible-collections/community.crypto/pull/839).
170+
- Support for cryptography < 3.4 is deprecated, and will be removed in the next major release (community.crypto 3.0.0). Some modules might still work with older versions of cryptography, but we will no longer keep compatibility code that was needed to support them (https://github.com/ansible-collections/community.crypto/issues/559, https://github.com/ansible-collections/community.crypto/pull/839).
171+
- openssl_pkcs12 - the PyOpenSSL based backend is deprecated and will be removed from community.crypto 3.0.0. From that point on you need cryptography 3.0 or newer to use this module (https://github.com/ansible-collections/community.crypto/issues/667, https://github.com/ansible-collections/community.crypto/pull/831).
172+
173+
community.general
174+
~~~~~~~~~~~~~~~~~
175+
176+
- MH module utils - attribute ``debug`` definition in subclasses of MH is now deprecated, as that name will become a delegation to ``AnsibleModule`` in community.general 12.0.0, and any such attribute will be overridden by that delegation in that version (https://github.com/ansible-collections/community.general/pull/9577).
177+
- atomic_container - module is deprecated and will be removed in community.general 13.0.0 (https://github.com/ansible-collections/community.general/pull/9487).
178+
- atomic_host - module is deprecated and will be removed in community.general 13.0.0 (https://github.com/ansible-collections/community.general/pull/9487).
179+
- atomic_image - module is deprecated and will be removed in community.general 13.0.0 (https://github.com/ansible-collections/community.general/pull/9487).
180+
- facter - module is deprecated and will be removed in community.general 12.0.0, use ``community.general.facter_facts`` instead (https://github.com/ansible-collections/community.general/pull/9451).
181+
- locale_gen - ``ubuntu_mode=True``, or ``mechanism=ubuntu_legacy`` is deprecated and will be removed in community.general 13.0.0 (https://github.com/ansible-collections/community.general/pull/9238).
182+
- proxmox - removes default value ``false`` of ``update`` parameter. This will be changed to a default of ``true`` in community.general 11.0.0 (https://github.com/ansible-collections/community.general/pull/9225).
183+
- pure module utils - the module utils is deprecated and will be removed from community.general 12.0.0. The modules using this were removed in community.general 3.0.0 (https://github.com/ansible-collections/community.general/pull/9432).
184+
- purestorage doc fragments - the doc fragment is deprecated and will be removed from community.general 12.0.0. The modules using this were removed in community.general 3.0.0 (https://github.com/ansible-collections/community.general/pull/9432).
185+
- sensu_check - module is deprecated and will be removed in community.general 13.0.0, use collection ``sensu.sensu_go`` instead (https://github.com/ansible-collections/community.general/pull/9483).
186+
- sensu_client - module is deprecated and will be removed in community.general 13.0.0, use collection ``sensu.sensu_go`` instead (https://github.com/ansible-collections/community.general/pull/9483).
187+
- sensu_handler - module is deprecated and will be removed in community.general 13.0.0, use collection ``sensu.sensu_go`` instead (https://github.com/ansible-collections/community.general/pull/9483).
188+
- sensu_silence - module is deprecated and will be removed in community.general 13.0.0, use collection ``sensu.sensu_go`` instead (https://github.com/ansible-collections/community.general/pull/9483).
189+
- sensu_subscription - module is deprecated and will be removed in community.general 13.0.0, use collection ``sensu.sensu_go`` instead (https://github.com/ansible-collections/community.general/pull/9483).
190+
- slack - the default value ``auto`` of the ``prepend_hash`` option is deprecated and will change to ``never`` in community.general 12.0.0 (https://github.com/ansible-collections/community.general/pull/9443).
191+
- yaml callback plugin - deprecate plugin in favor of ``result_format=yaml`` in plugin ``ansible.bulitin.default`` (https://github.com/ansible-collections/community.general/pull/9456).
192+
193+
community.hrobot
194+
~~~~~~~~~~~~~~~~
195+
196+
- boot - the various ``arch`` suboptions have been deprecated and will be removed from community.hrobot 3.0.0 (https://github.com/ansible-collections/community.hrobot/pull/134).
197+
198+
community.vmware
199+
~~~~~~~~~~~~~~~~
200+
201+
- vmware_cluster_info - the module has been deprecated and will be removed in community.vmware 7.0.0 (https://github.com/ansible-collections/community.vmware/pull/2260).
202+
100203
Porting Guide for v11.1.0
101204
=========================
102205

@@ -408,6 +511,7 @@ fortinet.fortios
408511
- Add a sanity_test.yaml file to trigger CI tests in GitHub.
409512
- Improve the logic for SET function to send GET request first then PUT or POST
410513
- Mantis
514+
- Remove Tokens from URLs for Improved Security
411515
- Support Ansible-core 2.17.
412516
- Support new FOS versions 7.4.4.
413517
- Support new FOS versions 7.6.0.
@@ -479,6 +583,8 @@ Removed Collections
479583
- openvswitch.openvswitch (previously included version: 2.1.1)
480584
- t_systems_mms.icinga_director (previously included version: 2.0.1)
481585

586+
You can still install a removed collection manually with ``ansible-galaxy collection install <name-of-collection>``.
587+
482588
Removed Features
483589
----------------
484590

@@ -569,9 +675,11 @@ Deprecated Features
569675
- The google.cloud collection will be removed from Ansible 12 due to violations of the Ansible inclusion requirements.
570676
The collection has \ `unresolved sanity test failures <https://github.com/ansible-collections/google.cloud/issues/613>`__.
571677
See `Collections Removal Process for collections not satisfying the collection requirements <https://docs.ansible.com/ansible/devel/community/collection_contributors/collection_package_removal.html#collections-not-satisfying-the-collection-requirements>`__ for more details, including for how this can be cancelled (`https://forum.ansible.com/t/8609 <https://forum.ansible.com/t/8609>`__).
678+
After removal, users can still install this collection with ``ansible-galaxy collection install google.cloud``.
572679
- The sensu.sensu_go collection will be removed from Ansible 12 due to violations of the Ansible inclusion requirements.
573680
The collection has \ `unresolved sanity test failures <https://github.com/sensu/sensu-go-ansible/issues/362>`__.
574681
See `Collections Removal Process for collections not satisfying the collection requirements <https://docs.ansible.com/ansible/devel/community/collection_contributors/collection_package_removal.html#collections-not-satisfying-the-collection-requirements>`__ for more details, including for how this can be cancelled (`https://forum.ansible.com/t/8380 <https://forum.ansible.com/t/8380>`__).
682+
After removal, users can still install this collection with ``ansible-galaxy collection install sensu.sensu_go``.
575683

576684
Ansible-core
577685
~~~~~~~~~~~~

noxfile.py

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import shlex
55
import shutil
6-
from argparse import ArgumentParser, BooleanOptionalAction
76
from contextlib import suppress
87
from glob import iglob
98
from pathlib import Path
@@ -225,20 +224,6 @@ def _clone_core_check(session: nox.Session) -> None:
225224
session.run("python", "docs/bin/clone-core.py", "--check")
226225

227226

228-
def _relaxed_parser(session: nox.Session) -> ArgumentParser:
229-
"""
230-
Generate an argument parser with a --relaxed option.
231-
"""
232-
parser = ArgumentParser(prog=f"nox -e {session.name} --")
233-
parser.add_argument(
234-
"--relaxed",
235-
default=False,
236-
action=BooleanOptionalAction,
237-
help="Whether to use requirements-relaxed file. (Default: %(default)s)",
238-
)
239-
return parser
240-
241-
242227
def _env_python(session: nox.Session) -> str:
243228
"""
244229
Get the full path to an environment's python executable
@@ -256,9 +241,8 @@ def checkers(session: nox.Session, test: str):
256241
"""
257242
Run docs build checkers
258243
"""
259-
args = _relaxed_parser(session).parse_args(session.posargs)
260244

261-
install(session, req="requirements-relaxed" if args.relaxed else "requirements")
245+
install(session, req="requirements")
262246
_clone_core_check(session)
263247
session.run("make", "-C", "docs/docsite", "clean", external=True)
264248
session.run("python", "tests/checkers.py", test)
@@ -269,19 +253,18 @@ def make(session: nox.Session):
269253
"""
270254
Generate HTML from documentation source using the Makefile
271255
"""
272-
parser = _relaxed_parser(session)
273-
parser.add_argument(
274-
"make_args", nargs="*", help="Specify make targets as arguments"
275-
)
276-
args = parser.parse_args(session.posargs)
256+
make_args = session.posargs or ["clean", "coredocs"]
277257

278-
install(session, req="requirements-relaxed" if args.relaxed else "requirements")
258+
install(session, req="requirements")
279259
_clone_core_check(session)
280-
make_args: list[str] = [
260+
session.run(
261+
"make",
262+
"-C",
263+
"docs/docsite",
281264
f"PYTHON={_env_python(session)}",
282-
*(args.make_args or ("clean", "coredocs")),
283-
]
284-
session.run("make", "-C", "docs/docsite", *make_args, external=True)
265+
*make_args,
266+
external=True,
267+
)
285268

286269

287270
@nox.session

tests/checkers.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import json
88
import os
99
import pathlib
10+
import re
1011
import subprocess
1112
import sys
1213

@@ -44,13 +45,24 @@ def run_test(name: str) -> bool:
4445
paths = []
4546
extensions = set(config.get('extensions', []))
4647

48+
ignore_regexs = [
49+
re.compile(regex)
50+
for regex in config.get('ignore_regexs', [])
51+
]
52+
4753
for root, dir_names, file_names in os.walk(ROOT / 'docs'):
4854
for file_name in file_names:
4955
path = os.path.join(root, file_name)
5056
ext = os.path.splitext(path)[1]
5157

52-
if ext in extensions:
53-
paths.append(path)
58+
rel_path = os.path.relpath(path, ROOT)
59+
if any(regex.match(rel_path) for regex in ignore_regexs):
60+
continue
61+
62+
if ext not in extensions:
63+
continue
64+
65+
paths.append(path)
5466

5567
cmd = [sys.executable, checker_path] + paths
5668

tests/checkers/rstcheck.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extensions": [
33
".rst"
4+
],
5+
"ignore_regexs": [
6+
"^docs/docsite/rst/porting_guides/porting_guide_[0-9]+\\.rst$"
47
]
58
}

tests/constraints-base.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/constraints.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# This constraints file contains pins for the stable, tested versions of sphinx
22
# and antsibull-docs that production builds rely upon.
3+
# This constraint file also pins other versions for which there are known limitations.
34

45
sphinx == 7.2.5
5-
antsibull-docs == 2.16.2 # currently approved version
6+
antsibull-docs == 2.16.3 # currently approved version
7+
8+
sphinx-rtd-theme >= 2.0.0 # Fix 404 pages with new sphinx -- https://github.com/ansible/ansible-documentation/issues/678
9+
rstcheck < 6 # rstcheck 6.x has problem with rstcheck.core triggered by include files w/ sphinx directives https://github.com/rstcheck/rstcheck-core/issues/3
10+
jinja2 >= 3.0.0 # https://github.com/ansible/ansible/blob/devel/requirements.txt
11+
pyyaml >= 5.1 # https://github.com/ansible/ansible/blob/devel/requirements.txt
12+
resolvelib >= 0.5.3, < 1.1.0 # https://github.com/ansible/ansible/blob/devel/requirements.txt

0 commit comments

Comments
 (0)