Skip to content

Commit 1c1826d

Browse files
authored
Merge pull request #236 from stackhpc/wallaby-ansible-venv-rocky
Adds kolla_ansible_venv_ansible
2 parents 8c91175 + 785121a commit 1c1826d

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

ansible/roles/kolla-ansible/defaults/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ kolla_ansible_venv_python: python3
2121
# Extra requirements to install inside the kolla-ansible virtualenv.
2222
kolla_ansible_venv_extra_requirements: []
2323

24+
# Pip requirement specifier for the ansible package. NOTE: This limits the
25+
# version of ansible used by kolla-ansible to avoid new releases from breaking
26+
# tested code. Changes to this limit should be tested.
27+
kolla_ansible_venv_ansible: 'ansible>=2.9,<2.11,!=2.9.8,!=2.9.12'
28+
2429
# Virtualenv directory where Kolla-ansible's ansible modules will execute
2530
# remotely on the target nodes. If None, no virtualenv will be used.
2631
kolla_ansible_target_venv:

ansible/roles/kolla-ansible/tasks/install.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@
6464
{% else %}
6565
kolla-ansible=={{ kolla_openstack_release }}
6666
{% endif %}
67-
# Limit the version of ansible used by kolla-ansible to avoid new
68-
# releases from breaking tested code. Changes to this limit should be
69-
# tested.
70-
- ansible>=2.9,<2.11,!=2.9.8,!=2.9.12
67+
- "{{ kolla_ansible_venv_ansible }}"
7168
- selinux
7269
pip:
7370
name: "{{ (kolla_ansible_packages + kolla_ansible_venv_extra_requirements) | select | list }}"

etc/kayobe/kolla.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
# Extra requirements to install inside the kolla-ansible virtualenv.
5151
#kolla_ansible_venv_extra_requirements:
5252

53+
# Pip requirement specifier for the ansible package. NOTE: This limits the
54+
# version of ansible used by kolla-ansible to avoid new releases from breaking
55+
# tested code. Changes to this limit should be tested.
56+
#kolla_ansible_venv_ansible:
57+
5358
# Path to Kolla-ansible configuration directory. Default is $KOLLA_CONFIG_PATH
5459
# or /etc/kolla if $KOLLA_CONFIG_PATH is not set.
5560
#kolla_config_path:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
features:
3+
- |
4+
Adds the ``kolla_ansible_venv_ansible`` configuration option. This allows
5+
you to override the version of ansible installed in the kolla-ansible
6+
virtualenv.

0 commit comments

Comments
 (0)