| 1 |
# Copyright (c) Ansible Project |
| 2 |
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 3 |
# SPDX-License-Identifier: GPL-3.0-or-later |
| 4 |
|
| 5 |
[collection_sources] |
| 6 |
"community.internal_test_tools" = "git+https://github.com/ansible-collections/community.internal_test_tools.git,main" |
| 7 |
"community.general" = "git+https://github.com/ansible-collections/community.general.git,main" |
| 8 |
|
| 9 |
[collection_sources_per_ansible.'2.15'] |
| 10 |
# community.general's main branch needs ansible-core >= 2.16 |
| 11 |
"community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-10" |
| 12 |
|
| 13 |
[collection_sources_per_ansible.'2.16'] |
| 14 |
# community.general's main branch needs ansible-core >= 2.17 |
| 15 |
"community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-11" |
| 16 |
|
| 17 |
[vcs] |
| 18 |
vcs = "git" |
| 19 |
development_branch = "main" |
| 20 |
stable_branches = [ "stable-*" ] |
| 21 |
|
| 22 |
[sessions] |
| 23 |
|
| 24 |
[sessions.lint] |
| 25 |
run_isort = false |
| 26 |
run_black = false |
| 27 |
run_flake8 = false |
| 28 |
run_pylint = false |
| 29 |
run_yamllint = true |
| 30 |
yamllint_config = ".yamllint" |
| 31 |
yamllint_config_plugins = ".yamllint-docs" |
| 32 |
yamllint_config_plugins_examples = ".yamllint-examples" |
| 33 |
yamllint_config_extra_docs = ".yamllint-extra-docs" |
| 34 |
run_mypy = true |
| 35 |
mypy_config = ".mypy.ini" |
| 36 |
mypy_extra_deps = [ |
| 37 |
"types-mock", |
| 38 |
"types-PyYAML", |
| 39 |
] |
| 40 |
|
| 41 |
[sessions.docs_check] |
| 42 |
validate_collection_refs="all" |
| 43 |
codeblocks_restrict_types = [ |
| 44 |
"ansible-output", |
| 45 |
"console", |
| 46 |
"ini", |
| 47 |
"yaml", |
| 48 |
"yaml+jinja", |
| 49 |
] |
| 50 |
codeblocks_restrict_type_exact_case = true |
| 51 |
codeblocks_allow_without_type = false |
| 52 |
codeblocks_allow_literal_blocks = false |
| 53 |
|
| 54 |
[sessions.license_check] |
| 55 |
|
| 56 |
[sessions.extra_checks] |
| 57 |
run_no_unwanted_files = true |
| 58 |
no_unwanted_files_module_extensions = [".py"] |
| 59 |
no_unwanted_files_yaml_extensions = [".yml"] |
| 60 |
run_action_groups = true |
| 61 |
run_no_trailing_whitespace = true |
| 62 |
run_avoid_characters = true |
| 63 |
|
| 64 |
[[sessions.extra_checks.avoid_character_group]] |
| 65 |
name = "tab" |
| 66 |
regex = "\\x09" |
| 67 |
skip_extensions = [ |
| 68 |
".json", |
| 69 |
] |
| 70 |
skip_directories = [ |
| 71 |
"tests/integration/targets/filter_decrypt/files/", |
| 72 |
"tests/integration/targets/lookup_sops/files/", |
| 73 |
"tests/integration/targets/sops_encrypt/files/", |
| 74 |
] |
| 75 |
|
| 76 |
[sessions.build_import_check] |
| 77 |
run_galaxy_importer = true |
| 78 |
|
| 79 |
[sessions.ansible_test_sanity] |
| 80 |
include_devel = true |
| 81 |
|
| 82 |
[sessions.ansible_test_integration] |
| 83 |
|
| 84 |
[sessions.ansible_test_integration.ansible_vars] |
| 85 |
github_token = { type = "env", name = "GITHUB_TOKEN", unset_if_not_set = true } |
| 86 |
|
| 87 |
[[sessions.ansible_test_integration.groups]] |
| 88 |
session_name = "ansible-test-integration-main" |
| 89 |
description = "Meta-session for all ansible-test-integration-main-* sessions." |
| 90 |
session_name_template = "ansible-test-integration-main-{ansible_core}{dash_docker_short}{dash_override_sops_version}{dash_gha_arm_lower}" |
| 91 |
display_name_template = "main+Ⓐ{ansible_core}+SOPS-{override_sops_version}{plus_docker_short}{plus_py_python_version}{plus_gha_arm}" |
| 92 |
description_template = "Run main integration tests with ansible-core {ansible_core}, {docker_short}, SOPS {override_sops_version}{comma_gha_arm}" |
| 93 |
target = "gha/main/" |
| 94 |
gha_container = "ubuntu-latest" |
| 95 |
|
| 96 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 97 |
ansible_core = "devel" |
| 98 |
docker = ["ubuntu2204"] |
| 99 |
# Cannot install 3.5.0 on Fedora 44 (digest algorithm used for RPM isn't accepted anymore) |
| 100 |
ansible_vars = { override_sops_version = "3.5.0" } |
| 101 |
|
| 102 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 103 |
ansible_core = "devel" |
| 104 |
docker = ["ubuntu2404"] |
| 105 |
# Cannot install 3.6.1 on Fedora 43 (digest algorithm used for RPM isn't accepted anymore) |
| 106 |
ansible_vars = { override_sops_version = "3.6.1" } |
| 107 |
|
| 108 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 109 |
ansible_core = "devel" |
| 110 |
docker = ["fedora44"] |
| 111 |
ansible_vars = { override_sops_version = "3.7.3" } |
| 112 |
|
| 113 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 114 |
ansible_core = "devel" |
| 115 |
docker = ["ubuntu2404"] |
| 116 |
ansible_vars = { override_sops_version = "3.8.1" } |
| 117 |
|
| 118 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 119 |
ansible_core = "devel" |
| 120 |
docker = ["ubuntu2204"] |
| 121 |
ansible_vars = { override_sops_version = "3.9.4" } |
| 122 |
|
| 123 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 124 |
ansible_core = "devel" |
| 125 |
docker = ["fedora44"] |
| 126 |
ansible_vars = { override_sops_version = "3.10.2" } |
| 127 |
|
| 128 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 129 |
ansible_core = "devel" |
| 130 |
docker = ["ubuntu2404"] |
| 131 |
ansible_vars = { override_sops_version = "3.11.0" } |
| 132 |
|
| 133 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 134 |
ansible_core = "devel" |
| 135 |
docker = ["ubuntu2204", "ubuntu2404", "fedora44"] |
| 136 |
ansible_vars = { override_sops_version = "3.12.1" } |
| 137 |
|
| 138 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 139 |
ansible_core = "2.15" |
| 140 |
docker = "ubuntu2004" |
| 141 |
ansible_vars = { override_sops_version = "3.10.0" } |
| 142 |
|
| 143 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 144 |
ansible_core = "2.15" |
| 145 |
docker = "ubuntu2204" |
| 146 |
ansible_vars = { override_sops_version = "3.6.0" } |
| 147 |
|
| 148 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 149 |
ansible_core = "2.15" |
| 150 |
docker = "quay.io/ansible-community/test-image:debian-bullseye" |
| 151 |
python_version = "3.9" |
| 152 |
ansible_vars = { override_sops_version = "latest" } |
| 153 |
|
| 154 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 155 |
ansible_core = "2.16" |
| 156 |
docker = "ubuntu2004" |
| 157 |
ansible_vars = { override_sops_version = "3.7.0" } |
| 158 |
|
| 159 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 160 |
ansible_core = "2.16" |
| 161 |
docker = "ubuntu2204" |
| 162 |
ansible_vars = { override_sops_version = "3.7.3" } |
| 163 |
|
| 164 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 165 |
ansible_core = "2.17" |
| 166 |
docker = "ubuntu2204" |
| 167 |
ansible_vars = { override_sops_version = "3.8.0" } |
| 168 |
|
| 169 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 170 |
ansible_core = "2.17" |
| 171 |
docker = "fedora39" |
| 172 |
ansible_vars = { override_sops_version = "3.10.1" } |
| 173 |
|
| 174 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 175 |
ansible_core = "2.18" |
| 176 |
docker = "ubuntu2404" |
| 177 |
ansible_vars = { override_sops_version = "3.9.0" } |
| 178 |
|
| 179 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 180 |
ansible_core = "2.18" |
| 181 |
docker = "fedora40" |
| 182 |
ansible_vars = { override_sops_version = "3.9.2" } |
| 183 |
|
| 184 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 185 |
ansible_core = "2.19" |
| 186 |
docker = "ubuntu2404" |
| 187 |
ansible_vars = { override_sops_version = "3.10.0" } |
| 188 |
|
| 189 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 190 |
ansible_core = "2.19" |
| 191 |
docker = "fedora41" |
| 192 |
ansible_vars = { override_sops_version = "3.10.2" } |
| 193 |
|
| 194 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 195 |
ansible_core = "2.20" |
| 196 |
docker = "fedora42" |
| 197 |
ansible_vars = { override_sops_version = "3.9.3" } |
| 198 |
|
| 199 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 200 |
ansible_core = "2.20" |
| 201 |
docker = "ubuntu2404" |
| 202 |
ansible_vars = { override_sops_version = "3.11.0" } |
| 203 |
|
| 204 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 205 |
ansible_core = "2.21" |
| 206 |
docker = "fedora43" |
| 207 |
ansible_vars = { override_sops_version = "3.12.2" } |
| 208 |
|
| 209 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 210 |
ansible_core = "2.21" |
| 211 |
docker = "ubuntu2404" |
| 212 |
ansible_vars = { override_sops_version = "3.12.1" } |
| 213 |
|
| 214 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 215 |
ansible_core = "devel" |
| 216 |
docker = "ubuntu2204" |
| 217 |
ansible_vars = { override_sops_version = "3.6.0" } |
| 218 |
|
| 219 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 220 |
ansible_core = "devel" |
| 221 |
docker = "ubuntu2204" |
| 222 |
ansible_vars = { override_sops_version = "3.7.0" } |
| 223 |
|
| 224 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 225 |
ansible_core = "devel" |
| 226 |
docker = "ubuntu2404" |
| 227 |
ansible_vars = { override_sops_version = "3.9.1" } |
| 228 |
|
| 229 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 230 |
ansible_core = "devel" |
| 231 |
docker = "quay.io/ansible-community/test-image:archlinux" |
| 232 |
python_version = "3.14" |
| 233 |
ansible_vars = { override_sops_version = "latest" } |
| 234 |
|
| 235 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 236 |
ansible_core = "devel" |
| 237 |
docker = "quay.io/ansible-community/test-image:debian-bookworm" |
| 238 |
python_version = "3.11" |
| 239 |
ansible_vars = { override_sops_version = "latest" } |
| 240 |
|
| 241 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 242 |
ansible_core = "devel" |
| 243 |
docker = "quay.io/ansible-community/test-image:debian-13-trixie" |
| 244 |
python_version = "3.13" |
| 245 |
ansible_vars = { override_sops_version = "latest" } |
| 246 |
|
| 247 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 248 |
ansible_core = "devel" |
| 249 |
docker = "ubuntu2404" |
| 250 |
gha_container = "ubuntu-24.04-arm" |
| 251 |
ansible_vars = { override_sops_version = "latest" } |
| 252 |
|
| 253 |
[[sessions.ansible_test_integration.groups]] |
| 254 |
session_name = "ansible-test-integration-install-1" |
| 255 |
description = "Meta-session for all ansible-test-integration-install-1-* sessions." |
| 256 |
session_name_template = "ansible-test-integration-install-1-{ansible_core}{dash_docker_short}{dash_gha_arm_lower}" |
| 257 |
display_name_template = "install-1+Ⓐ{ansible_core}{plus_docker_short}{plus_py_python_version}{plus_gha_arm}" |
| 258 |
description_template = "Run install role integration tests (specific SOPS version) with ansible-core {ansible_core}, {docker_short}{comma_gha_arm}" |
| 259 |
target = "gha/install/1/" |
| 260 |
gha_container = "ubuntu-latest" |
| 261 |
|
| 262 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 263 |
ansible_core = "2.17" |
| 264 |
docker = ["ubuntu2204", "fedora39"] |
| 265 |
|
| 266 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 267 |
ansible_core = "2.18" |
| 268 |
docker = ["ubuntu2404", "fedora40"] |
| 269 |
|
| 270 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 271 |
ansible_core = "2.19" |
| 272 |
docker = ["ubuntu2404", "fedora41"] |
| 273 |
|
| 274 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 275 |
ansible_core = "devel" |
| 276 |
docker = "ubuntu2404" |
| 277 |
gha_container = "ubuntu-24.04-arm" |
| 278 |
ansible_vars = { github_latest_detection = "auto" } |
| 279 |
|
| 280 |
[[sessions.ansible_test_integration.groups]] |
| 281 |
session_name = "ansible-test-integration-install-2" |
| 282 |
description = "Meta-session for all ansible-test-integration-install-2-* sessions." |
| 283 |
session_name_template = "ansible-test-integration-install-2-{ansible_core}{dash_docker_short}{dash_gha_arm_lower}" |
| 284 |
display_name_template = "install-2+Ⓐ{ansible_core}{plus_docker_short}{plus_py_python_version}{plus_gha_arm}" |
| 285 |
description_template = "Run install role integration tests (localhost vs. remote host) with ansible-core {ansible_core}, {docker_short}{comma_gha_arm}" |
| 286 |
target = "gha/install/2/" |
| 287 |
gha_container = "ubuntu-latest" |
| 288 |
|
| 289 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 290 |
ansible_core = "devel" |
| 291 |
docker = "ubuntu2204" |
| 292 |
|
| 293 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 294 |
ansible_core = "devel" |
| 295 |
docker = "ubuntu2204" |
| 296 |
gha_container = "ubuntu-24.04-arm" |
| 297 |
ansible_vars = { github_latest_detection = "auto" } |
| 298 |
|
| 299 |
[[sessions.ansible_test_integration.groups]] |
| 300 |
session_name = "ansible-test-integration-install-3" |
| 301 |
description = "Meta-session for all ansible-test-integration-install-3-* sessions." |
| 302 |
session_name_template = "ansible-test-integration-install-3-{ansible_core}{dash_docker_short}{dash_gha_arm_lower}" |
| 303 |
display_name_template = "install-3+Ⓐ{ansible_core}{plus_docker_short}{plus_py_python_version}{plus_gha_arm}" |
| 304 |
description_template = "Run install role integration tests (latest SOPS version) with ansible-core {ansible_core}, {docker_short}{comma_gha_arm}" |
| 305 |
target = "gha/install/3/" |
| 306 |
gha_container = "ubuntu-latest" |
| 307 |
|
| 308 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 309 |
ansible_core = "devel" |
| 310 |
docker = "quay.io/ansible-community/test-image:archlinux" |
| 311 |
python_version = "3.14" |
| 312 |
ansible_vars = { github_latest_detection = "auto" } |
| 313 |
|
| 314 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 315 |
ansible_core = "devel" |
| 316 |
docker = "quay.io/ansible-community/test-image:debian-13-trixie" |
| 317 |
python_version = "3.13" |
| 318 |
ansible_vars = { github_latest_detection = "auto" } |
| 319 |
|
| 320 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 321 |
ansible_core = "devel" |
| 322 |
docker = "quay.io/ansible-community/test-image:debian-bookworm" |
| 323 |
python_version = "3.11" |
| 324 |
ansible_vars = { github_latest_detection = "auto" } |
| 325 |
|
| 326 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 327 |
ansible_core = "2.16" |
| 328 |
docker = "quay.io/ansible-community/test-image:debian-bullseye" |
| 329 |
python_version = "3.9" |
| 330 |
ansible_vars = { github_latest_detection = "auto" } |
| 331 |
|
| 332 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 333 |
ansible_core = "2.19" |
| 334 |
docker = "fedora41" |
| 335 |
ansible_vars = { github_latest_detection = "auto" } |
| 336 |
|
| 337 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 338 |
ansible_core = "2.20" |
| 339 |
docker = "fedora42" |
| 340 |
ansible_vars = { github_latest_detection = "auto" } |
| 341 |
|
| 342 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 343 |
ansible_core = "2.21" |
| 344 |
docker = "fedora43" |
| 345 |
ansible_vars = { github_latest_detection = "auto" } |
| 346 |
|
| 347 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 348 |
ansible_core = "devel" |
| 349 |
docker = "fedora44" |
| 350 |
ansible_vars = { github_latest_detection = "auto" } |
| 351 |
|
| 352 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 353 |
ansible_core = "devel" |
| 354 |
docker = "ubuntu2204" |
| 355 |
ansible_vars = { github_latest_detection = "api" } |
| 356 |
|
| 357 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 358 |
ansible_core = "devel" |
| 359 |
docker = "ubuntu2404" |
| 360 |
ansible_vars = { github_latest_detection = "latest-release" } |
| 361 |
|
| 362 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 363 |
ansible_core = "2.19" |
| 364 |
docker = "alpine321" |
| 365 |
ansible_vars = { github_latest_detection = "auto" } |
| 366 |
|
| 367 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 368 |
ansible_core = "2.20" |
| 369 |
docker = "alpine322" |
| 370 |
ansible_vars = { github_latest_detection = "auto" } |
| 371 |
|
| 372 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 373 |
ansible_core = "2.21" |
| 374 |
docker = "alpine323" |
| 375 |
ansible_vars = { github_latest_detection = "auto" } |
| 376 |
|
| 377 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 378 |
ansible_core = "devel" |
| 379 |
docker = "alpine323" |
| 380 |
ansible_vars = { github_latest_detection = "auto" } |
| 381 |
|
| 382 |
[[sessions.ansible_test_integration.groups.sessions]] |
| 383 |
ansible_core = "devel" |
| 384 |
docker = "alpine323" |
| 385 |
gha_container = "ubuntu-24.04-arm" |
| 386 |
ansible_vars = { github_latest_detection = "auto" } |
| 387 |
|
| 388 |
[[sessions.ee_check.execution_environments]] |
| 389 |
name = "devel-ubi-9" |
| 390 |
description = "ansible-core devel @ RHEL UBI 9" |
| 391 |
test_playbooks = ["tests/ee/all.yml"] |
| 392 |
config.images.base_image.name = "docker.io/redhat/ubi9:latest" |
| 393 |
config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/devel.tar.gz" |
| 394 |
config.dependencies.ansible_runner.package_pip = "ansible-runner" |
| 395 |
config.dependencies.python_interpreter.package_system = "python3.12 python3.12-pip python3.12-wheel python3.12-cryptography" |
| 396 |
config.dependencies.python_interpreter.python_path = "/usr/bin/python3.12" |
| 397 |
config.additional_build_steps.append_final = [ |
| 398 |
"RUN ansible-playbook -v community.sops.install_localhost", |
| 399 |
] |
| 400 |
runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} |
| 401 |
|
| 402 |
[[sessions.ee_check.execution_environments]] |
| 403 |
name = "2.15-rocky-9" |
| 404 |
description = "ansible-core 2.15 @ Rocky Linux 9" |
| 405 |
test_playbooks = ["tests/ee/all.yml"] |
| 406 |
config.images.base_image.name = "quay.io/rockylinux/rockylinux:9" |
| 407 |
config.dependencies.ansible_core.package_pip = "https://github.com/ansible/ansible/archive/stable-2.15.tar.gz" |
| 408 |
config.dependencies.ansible_runner.package_pip = "ansible-runner" |
| 409 |
config.additional_build_steps.append_final = [ |
| 410 |
"RUN ansible-playbook -v community.sops.install_localhost", |
| 411 |
] |
| 412 |
runtime_environment = {"ANSIBLE_PRIVATE_ROLE_VARS" = "true"} |