Use collections in validations for Ansible 2.11
Change-Id: Iff0f37b1a76d81df7e5b20d76cefd0c879a150f6
This commit is contained in:
parent
129ce2d8bc
commit
93d34a2aba
@ -1,5 +1,6 @@
|
|||||||
exclude_paths:
|
exclude_paths:
|
||||||
- releasenotes/
|
- releasenotes/
|
||||||
|
- ci/playbooks/
|
||||||
parseable: true
|
parseable: true
|
||||||
quiet: false
|
quiet: false
|
||||||
rulesdir:
|
rulesdir:
|
||||||
|
@ -36,7 +36,7 @@ repos:
|
|||||||
always_run: true
|
always_run: true
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- 'ansible<2.10'
|
- 'ansible-core<2.12'
|
||||||
verbose: true
|
verbose: true
|
||||||
entry: ansible-lint --force-color -p -v
|
entry: ansible-lint --force-color -p -v
|
||||||
|
|
||||||
|
5
ansible-collections-requirements.yml
Normal file
5
ansible-collections-requirements.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
collections:
|
||||||
|
- containers.podman
|
||||||
|
- community.general
|
||||||
|
- ansible.posix
|
@ -45,6 +45,9 @@
|
|||||||
virtualenv_command: "{{ ensure_pip_virtualenv_command }}"
|
virtualenv_command: "{{ ensure_pip_virtualenv_command }}"
|
||||||
virtualenv_site_packages: true
|
virtualenv_site_packages: true
|
||||||
|
|
||||||
|
- name: Set up collections
|
||||||
|
command: "{{ ansible_user_dir }}/test-python/bin/ansible-galaxy install -fr {{ tripleo_validations_project_path }}/ansible-collections-requirements.yml"
|
||||||
|
|
||||||
- name: Display test-python virtualenv package versions
|
- name: Display test-python virtualenv package versions
|
||||||
shell: |-
|
shell: |-
|
||||||
. {{ ansible_user_dir }}/test-python/bin/activate
|
. {{ ansible_user_dir }}/test-python/bin/activate
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# this is required for the molecule jobs
|
# this is required for the molecule jobs
|
||||||
ansi2html>=1.6.0 # LGPLv3+
|
ansi2html>=1.6.0 # LGPLv3+
|
||||||
ansible>=2.8,!=2.8.9,!=2.9.12,<2.10.0 # GPLv3+
|
ansible-core<2.12 # GPLv3+
|
||||||
jinja2>=2.8.0 # BSD-3-Clause
|
jinja2>=2.8.0 # BSD-3-Clause
|
||||||
molecule>=3.3.1,<4 # MIT
|
molecule>=3.3.1,<4 # MIT
|
||||||
molecule-podman>=0.3.0 # MIT
|
molecule-podman>=0.3.0 # MIT
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
instance_xml_data: "{{ instance_xml.stdout }}"
|
instance_xml_data: "{{ instance_xml.stdout }}"
|
||||||
|
|
||||||
- name: Get interfaces from xml string
|
- name: Get interfaces from xml string
|
||||||
xml:
|
community.general.xml:
|
||||||
xmlstring: "{{ instance_xml_data }}"
|
xmlstring: "{{ instance_xml_data }}"
|
||||||
xpath: /domain/devices/interface
|
xpath: /domain/devices/interface
|
||||||
content: attribute
|
content: attribute
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Get instance numa node from xml string
|
- name: Get instance numa node from xml string
|
||||||
xml:
|
community.general.xml:
|
||||||
xmlstring: "{{ instance_xml_data }}"
|
xmlstring: "{{ instance_xml_data }}"
|
||||||
xpath: /domain/numatune/memory
|
xpath: /domain/numatune/memory
|
||||||
content: attribute
|
content: attribute
|
||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
# Validates the instance vcpus list.
|
# Validates the instance vcpus list.
|
||||||
- name: Get vcpu list from xml string
|
- name: Get vcpu list from xml string
|
||||||
xml:
|
community.general.xml:
|
||||||
xmlstring: "{{ instance_xml_data }}"
|
xmlstring: "{{ instance_xml_data }}"
|
||||||
xpath: /domain/cputune/vcpupin
|
xpath: /domain/cputune/vcpupin
|
||||||
content: attribute
|
content: attribute
|
||||||
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
# Validates instance emulatorpin threads
|
# Validates instance emulatorpin threads
|
||||||
- name: Get emulatorpin list from xml string
|
- name: Get emulatorpin list from xml string
|
||||||
xml:
|
community.general.xml:
|
||||||
xmlstring: "{{ instance_xml_data }}"
|
xmlstring: "{{ instance_xml_data }}"
|
||||||
xpath: /domain/cputune/emulatorpin
|
xpath: /domain/cputune/emulatorpin
|
||||||
content: attribute
|
content: attribute
|
||||||
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
# Validates instance huge page size length is greater than or equal to 6.
|
# Validates instance huge page size length is greater than or equal to 6.
|
||||||
- name: Get hugepages from xml string
|
- name: Get hugepages from xml string
|
||||||
xml:
|
community.general.xml:
|
||||||
xmlstring: "{{ instance_xml_data }}"
|
xmlstring: "{{ instance_xml_data }}"
|
||||||
xpath: /domain/memoryBacking/hugepages/page
|
xpath: /domain/memoryBacking/hugepages/page
|
||||||
content: attribute
|
content: attribute
|
||||||
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
# Validates instance tx rx queue sizes and should be greater than or equal to 1024.
|
# Validates instance tx rx queue sizes and should be greater than or equal to 1024.
|
||||||
- name: Get {{ vm_id }} libvirt tx | rx queue sizes from xml string
|
- name: Get {{ vm_id }} libvirt tx | rx queue sizes from xml string
|
||||||
xml:
|
community.general.xml:
|
||||||
xmlstring: "{{ instance_xml_data }}"
|
xmlstring: "{{ instance_xml_data }}"
|
||||||
xpath: /domain/devices/interface/driver
|
xpath: /domain/devices/interface/driver
|
||||||
content: attribute
|
content: attribute
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
- name: "Parse {{ item.path }}"
|
- name: "Parse {{ item.path }}"
|
||||||
become: true
|
become: true
|
||||||
register: seclabels
|
register: seclabels
|
||||||
xml:
|
community.general.xml:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
content: attribute
|
content: attribute
|
||||||
xpath: '/domstatus/domain/seclabel'
|
xpath: '/domstatus/domain/seclabel'
|
||||||
|
1
tox.ini
1
tox.ini
@ -29,6 +29,7 @@ setenv =
|
|||||||
LC_ALL=en_US.UTF-8
|
LC_ALL=en_US.UTF-8
|
||||||
HOME={envdir}
|
HOME={envdir}
|
||||||
commands =
|
commands =
|
||||||
|
ansible-galaxy install -fr {toxinidir}/ansible-collections-requirements.yml
|
||||||
stestr run --slowest --color {posargs}
|
stestr run --slowest --color {posargs}
|
||||||
deps =
|
deps =
|
||||||
-c {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c {env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user