Merge "Move c7 mol jobs to c8" into stable/train
This commit is contained in:
commit
902c3c8cc0
|
@ -18,6 +18,7 @@ gcc-c++ [platform:rpm]
|
||||||
git [platform:rpm]
|
git [platform:rpm]
|
||||||
libffi-devel [platform:rpm]
|
libffi-devel [platform:rpm]
|
||||||
openssl-devel [platform:rpm]
|
openssl-devel [platform:rpm]
|
||||||
|
podman [platform:rpm]
|
||||||
python-devel [platform:rpm !platform:rhel-8 !platform:centos-8]
|
python-devel [platform:rpm !platform:rhel-8 !platform:centos-8]
|
||||||
python3-devel [platform:rpm !platform:rhel-7 !platform:centos-7]
|
python3-devel [platform:rpm !platform:rhel-7 !platform:centos-7]
|
||||||
PyYAML [platform:rpm !platform:rhel-8 !platform:centos-8]
|
PyYAML [platform:rpm !platform:rhel-8 !platform:centos-8]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: podman
|
||||||
|
|
||||||
log: true
|
log: true
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ platforms:
|
||||||
environment: &env
|
environment: &env
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
||||||
|
ulimits: &ulimit
|
||||||
|
- host
|
||||||
|
|
||||||
- name: centos8
|
- name: centos8
|
||||||
hostname: centos8
|
hostname: centos8
|
||||||
|
@ -27,6 +29,7 @@ platforms:
|
||||||
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
|
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
|
||||||
environment:
|
environment:
|
||||||
<<: *env
|
<<: *env
|
||||||
|
ulimits: *ulimit
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
@ -43,10 +46,5 @@ scenario:
|
||||||
- verify
|
- verify
|
||||||
- destroy
|
- destroy
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Tripleo setup block
|
- name: Tripleo setup block
|
||||||
|
become: true
|
||||||
when:
|
when:
|
||||||
- (ansible_os_family | lower) == 'redhat'
|
- (ansible_os_family | lower) == 'redhat'
|
||||||
- test_deps_setup_tripleo | bool
|
- test_deps_setup_tripleo | bool
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
# Molecule managed
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
{% if item.registry is defined %}
|
|
||||||
FROM {{ item.registry.url }}/{{ item.image }}
|
|
||||||
{% else %}
|
|
||||||
FROM {{ item.image }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
|
|
||||||
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install sudo python*-devel python*-dnf bash {{ item.pkg_extras | default('') }} && dnf clean all; \
|
|
||||||
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl python-setuptools bash {{ item.pkg_extras | default('') }} && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
|
|
||||||
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml {{ item.pkg_extras | default('') }} && zypper clean -a; \
|
|
||||||
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates {{ item.pkg_extras | default('') }}; \
|
|
||||||
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates {{ item.pkg_extras | default('') }} && xbps-remove -O; fi
|
|
||||||
|
|
||||||
{% for pkg in item.easy_install | default([]) %}
|
|
||||||
# install pip for centos where there is no python-pip rpm in default repos
|
|
||||||
RUN easy_install {{ pkg }}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
|
||||||
CMD ["sh", "-c", "while true; do sleep 10000; done"]
|
|
|
@ -1,71 +1,45 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: delegated
|
||||||
|
options:
|
||||||
|
managed: false
|
||||||
|
login_cmd_template: >-
|
||||||
|
ssh
|
||||||
|
-o UserKnownHostsFile=/dev/null
|
||||||
|
-o StrictHostKeyChecking=no
|
||||||
|
-o Compression=no
|
||||||
|
-o TCPKeepAlive=yes
|
||||||
|
-o VerifyHostKeyDNS=no
|
||||||
|
-o ForwardX11=no
|
||||||
|
-o ForwardAgent=no
|
||||||
|
{instance}
|
||||||
|
ansible_connection_options:
|
||||||
|
ansible_connection: ssh
|
||||||
|
|
||||||
log: true
|
log: true
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: centos7
|
- name: instance
|
||||||
hostname: centos7
|
|
||||||
image: centos:7
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python-setuptools
|
|
||||||
easy_install:
|
|
||||||
- pip
|
|
||||||
environment: &env
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- ALL # CENT7 requires all due to the age of the software
|
|
||||||
volumes:
|
|
||||||
- /run/udev:/run/udev:ro
|
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
||||||
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
|
|
||||||
|
|
||||||
- name: centos8
|
|
||||||
hostname: centos8
|
|
||||||
image: centos:8
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python*-setuptools NetworkManager
|
|
||||||
environment:
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
privileged: true
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- SYS_ADMIN
|
|
||||||
volumes:
|
|
||||||
- /run/udev:/run/udev:ro
|
|
||||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
|
||||||
- /etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro
|
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
inventory:
|
||||||
|
hosts:
|
||||||
|
all:
|
||||||
|
hosts:
|
||||||
|
instance:
|
||||||
|
ansible_host: localhost
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
|
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
||||||
|
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
test_sequence:
|
test_sequence:
|
||||||
- destroy
|
|
||||||
- create
|
|
||||||
- prepare
|
- prepare
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
- verify
|
|
||||||
- destroy
|
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
# is no longer in use.
|
# is no longer in use.
|
||||||
#
|
#
|
||||||
# Set the container command line entry-point
|
# Set the container command line entry-point
|
||||||
tripleo_container_cli: "{{ container_cli | default('docker') }}"
|
tripleo_container_cli: "{{ container_cli | default('podman') }}"
|
||||||
|
|
||||||
# List of containers to delete
|
# List of containers to delete
|
||||||
tripleo_containers_to_rm: "{{ containers_to_rm | default([]) }}"
|
tripleo_containers_to_rm: "{{ containers_to_rm | default([]) }}"
|
||||||
|
|
|
@ -23,10 +23,6 @@ platforms:
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
config_options:
|
|
||||||
defaults:
|
|
||||||
fact_caching: jsonfile
|
|
||||||
fact_caching_connection: /tmp/molecule/facts
|
|
||||||
inventory:
|
inventory:
|
||||||
hosts:
|
hosts:
|
||||||
all:
|
all:
|
||||||
|
@ -36,20 +32,14 @@ provisioner:
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
|
||||||
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
||||||
|
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
name: default
|
|
||||||
test_sequence:
|
test_sequence:
|
||||||
- prepare
|
- prepare
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -21,9 +21,6 @@
|
||||||
roles:
|
roles:
|
||||||
- role: tripleo-container-rm
|
- role: tripleo-container-rm
|
||||||
tripleo_containers_to_rm:
|
tripleo_containers_to_rm:
|
||||||
- docker-container1
|
- podman-container1
|
||||||
- docker-container2
|
- podman-container2
|
||||||
tripleo_container_cli: docker
|
tripleo_container_cli: podman
|
||||||
|
|
||||||
vars:
|
|
||||||
ansible_python_interpreter: "{{ ansible_user_dir }}/test-python/bin/python"
|
|
||||||
|
|
|
@ -19,58 +19,23 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
pre_tasks:
|
vars:
|
||||||
- name: Check for docker cli
|
required_packages:
|
||||||
command: "command -v docker"
|
- podman
|
||||||
register: docker_cli
|
|
||||||
failed_when: false
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: Check for docker connection
|
|
||||||
command: "docker ps"
|
|
||||||
register: docker_ps
|
|
||||||
failed_when: false
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: set basic user fact
|
|
||||||
set_fact:
|
|
||||||
ansible_user: "{{ lookup('env', 'USER') }}"
|
|
||||||
when:
|
|
||||||
- ansible_user is undefined
|
|
||||||
|
|
||||||
- name: set basic home fact
|
|
||||||
set_fact:
|
|
||||||
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
|
|
||||||
when:
|
|
||||||
- ansible_user_dir is undefined
|
|
||||||
roles:
|
roles:
|
||||||
- role: test_deps
|
- role: test_deps
|
||||||
- role: ensure-docker
|
|
||||||
when:
|
|
||||||
- (docker_cli.rc != 0) or
|
|
||||||
(docker_ps.rc != 0)
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Install docker-sdk
|
- name: Install podman
|
||||||
pip:
|
become: true
|
||||||
name: docker
|
package:
|
||||||
virtualenv: "{{ ansible_user_dir }}/test-python"
|
name: "{{ required_packages }}"
|
||||||
virtualenv_site_packages: true
|
state: latest
|
||||||
|
|
||||||
- name: pull an image
|
- name: Pull container image
|
||||||
docker_image:
|
command: "podman pull centos:8"
|
||||||
name: fedora
|
|
||||||
source: pull
|
|
||||||
vars:
|
|
||||||
ansible_python_interpreter: "{{ ansible_user_dir }}/test-python/bin/python"
|
|
||||||
|
|
||||||
- name: Create a data container
|
- name: Create test containers
|
||||||
docker_container:
|
command: "podman run -itd --systemd true --name {{ item }} fedora bash"
|
||||||
name: "{{ item }}"
|
|
||||||
image: fedora
|
|
||||||
detach: true
|
|
||||||
command: sleep 1d
|
|
||||||
with_items:
|
with_items:
|
||||||
- docker-container1
|
- podman-container1
|
||||||
- docker-container2
|
- podman-container2
|
||||||
vars:
|
|
||||||
ansible_python_interpreter: "{{ ansible_user_dir }}/test-python/bin/python"
|
|
||||||
|
|
|
@ -1,55 +0,0 @@
|
||||||
---
|
|
||||||
driver:
|
|
||||||
name: delegated
|
|
||||||
options:
|
|
||||||
managed: false
|
|
||||||
login_cmd_template: >-
|
|
||||||
ssh
|
|
||||||
-o UserKnownHostsFile=/dev/null
|
|
||||||
-o StrictHostKeyChecking=no
|
|
||||||
-o Compression=no
|
|
||||||
-o TCPKeepAlive=yes
|
|
||||||
-o VerifyHostKeyDNS=no
|
|
||||||
-o ForwardX11=no
|
|
||||||
-o ForwardAgent=no
|
|
||||||
{instance}
|
|
||||||
ansible_connection_options:
|
|
||||||
ansible_connection: ssh
|
|
||||||
|
|
||||||
log: true
|
|
||||||
|
|
||||||
platforms:
|
|
||||||
- name: instance
|
|
||||||
|
|
||||||
provisioner:
|
|
||||||
name: ansible
|
|
||||||
config_options:
|
|
||||||
defaults:
|
|
||||||
fact_caching: jsonfile
|
|
||||||
fact_caching_connection: /tmp/molecule/facts
|
|
||||||
inventory:
|
|
||||||
hosts:
|
|
||||||
all:
|
|
||||||
hosts:
|
|
||||||
instance:
|
|
||||||
ansible_host: localhost
|
|
||||||
log: true
|
|
||||||
env:
|
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
|
||||||
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
|
||||||
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
|
||||||
|
|
||||||
scenario:
|
|
||||||
name: docker
|
|
||||||
test_sequence:
|
|
||||||
- prepare
|
|
||||||
- converge
|
|
||||||
- check
|
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
|
||||||
name: testinfra
|
|
||||||
lint:
|
|
||||||
name: flake8
|
|
|
@ -1,33 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
# NOTE(Cloudnull): This role is a linked role to `tripleo-container-rm`. This role and exists
|
|
||||||
# to ensure we're providing a stable interface as we transition. In a future
|
|
||||||
# release this link will be removed in favor of using the stable role,
|
|
||||||
# `tripleo-container-rm`.
|
|
||||||
- name: Converge
|
|
||||||
become: true
|
|
||||||
hosts: all
|
|
||||||
roles:
|
|
||||||
- role: tripleo-docker-rm
|
|
||||||
container_cli: docker
|
|
||||||
containers_to_rm:
|
|
||||||
- docker-container1
|
|
||||||
- docker-container2
|
|
||||||
|
|
||||||
vars:
|
|
||||||
ansible_python_interpreter: "{{ ansible_user_dir }}/test-python/bin/python"
|
|
|
@ -1 +0,0 @@
|
||||||
../default/prepare.yml
|
|
|
@ -32,8 +32,8 @@ provisioner:
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
|
||||||
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
||||||
|
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
test_sequence:
|
test_sequence:
|
||||||
|
@ -41,10 +41,5 @@ scenario:
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ provisioner:
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
|
||||||
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
||||||
|
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
test_sequence:
|
test_sequence:
|
||||||
|
@ -41,10 +41,5 @@ scenario:
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
---
|
|
||||||
driver:
|
|
||||||
name: delegated
|
|
||||||
options:
|
|
||||||
managed: false
|
|
||||||
login_cmd_template: >-
|
|
||||||
ssh
|
|
||||||
-o UserKnownHostsFile=/dev/null
|
|
||||||
-o StrictHostKeyChecking=no
|
|
||||||
-o Compression=no
|
|
||||||
-o TCPKeepAlive=yes
|
|
||||||
-o VerifyHostKeyDNS=no
|
|
||||||
-o ForwardX11=no
|
|
||||||
-o ForwardAgent=no
|
|
||||||
{instance}
|
|
||||||
ansible_connection_options:
|
|
||||||
ansible_connection: ssh
|
|
||||||
|
|
||||||
log: true
|
|
||||||
|
|
||||||
platforms:
|
|
||||||
- name: instance
|
|
||||||
|
|
||||||
provisioner:
|
|
||||||
name: ansible
|
|
||||||
inventory:
|
|
||||||
hosts:
|
|
||||||
all:
|
|
||||||
hosts:
|
|
||||||
instance:
|
|
||||||
ansible_host: localhost
|
|
||||||
log: true
|
|
||||||
env:
|
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
|
||||||
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
|
||||||
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
|
||||||
|
|
||||||
scenario:
|
|
||||||
test_sequence:
|
|
||||||
- prepare
|
|
||||||
- converge
|
|
||||||
- check
|
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
|
||||||
name: testinfra
|
|
||||||
lint:
|
|
||||||
name: flake8
|
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
- name: Converge
|
|
||||||
become: true
|
|
||||||
hosts: all
|
|
||||||
roles:
|
|
||||||
- role: tripleo-container-rm
|
|
||||||
tripleo_container_cli: podman
|
|
||||||
tripleo_containers_to_rm:
|
|
||||||
- podman-container1
|
|
||||||
- podman-container2
|
|
|
@ -1,48 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
hosts: all
|
|
||||||
become: true
|
|
||||||
gather_facts: true
|
|
||||||
vars:
|
|
||||||
required_packages:
|
|
||||||
- podman
|
|
||||||
roles:
|
|
||||||
- role: test_deps
|
|
||||||
post_tasks:
|
|
||||||
- name: Install podman
|
|
||||||
become: true
|
|
||||||
package:
|
|
||||||
name: "{{ required_packages }}"
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Pull container image
|
|
||||||
podman_image:
|
|
||||||
name: fedora
|
|
||||||
|
|
||||||
- name: Create test containers
|
|
||||||
podman_container:
|
|
||||||
name: "{{ item }}"
|
|
||||||
interactive: true
|
|
||||||
tty: true
|
|
||||||
detach: true
|
|
||||||
image: fedora
|
|
||||||
command: bash
|
|
||||||
with_items:
|
|
||||||
- podman-container1
|
|
||||||
- podman-container2
|
|
|
@ -28,7 +28,7 @@
|
||||||
# is no longer in use.
|
# is no longer in use.
|
||||||
#
|
#
|
||||||
# Set the container command line entry-point
|
# Set the container command line entry-point
|
||||||
tripleo_container_cli: "{{ container_cli | default('docker') }}"
|
tripleo_container_cli: "{{ container_cli | default('podman') }}"
|
||||||
|
|
||||||
# Enable or disable pulling images.
|
# Enable or disable pulling images.
|
||||||
tripleo_container_pull_image: "{{ pull_image | default(true) }}"
|
tripleo_container_pull_image: "{{ pull_image | default(true) }}"
|
||||||
|
|
|
@ -23,10 +23,6 @@ platforms:
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
config_options:
|
|
||||||
defaults:
|
|
||||||
fact_caching: jsonfile
|
|
||||||
fact_caching_connection: /tmp/molecule/facts
|
|
||||||
inventory:
|
inventory:
|
||||||
hosts:
|
hosts:
|
||||||
all:
|
all:
|
||||||
|
@ -36,7 +32,8 @@ provisioner:
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
ANSIBLE_LIBRARY: "${ANSIBLE_LIBRARY:-/usr/share/ansible/plugins/modules}"
|
||||||
|
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
test_sequence:
|
test_sequence:
|
||||||
|
@ -44,10 +41,5 @@ scenario:
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -22,10 +22,9 @@
|
||||||
- role: "tripleo-container-tag"
|
- role: "tripleo-container-tag"
|
||||||
tripleo_container_image: centos:8
|
tripleo_container_image: centos:8
|
||||||
tripleo_container_image_latest: test-latest
|
tripleo_container_image_latest: test-latest
|
||||||
tripleo_container_cli: docker
|
tripleo_container_cli: podman
|
||||||
tripleo_container_pull_image: true
|
|
||||||
- role: "tripleo-container-tag"
|
- role: "tripleo-container-tag"
|
||||||
tripleo_container_image: centos:8
|
tripleo_container_image: centos:8
|
||||||
tripleo_container_image_latest: test-latest-2
|
tripleo_container_image_latest: test-latest-2
|
||||||
tripleo_container_cli: docker
|
tripleo_container_cli: podman
|
||||||
tripleo_container_pull_image: false
|
tripleo_container_pull_image: false
|
||||||
|
|
|
@ -19,53 +19,14 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
pre_tasks:
|
vars:
|
||||||
- name: Check for docker cli
|
required_packages:
|
||||||
command: "command -v docker"
|
- podman
|
||||||
register: docker_cli
|
|
||||||
failed_when: false
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: Check for docker connection
|
|
||||||
command: "docker ps"
|
|
||||||
register: docker_ps
|
|
||||||
failed_when: false
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: set basic user fact
|
|
||||||
set_fact:
|
|
||||||
ansible_user: "{{ lookup('env', 'USER') }}"
|
|
||||||
when:
|
|
||||||
- ansible_user is undefined
|
|
||||||
|
|
||||||
- name: set basic home fact
|
|
||||||
set_fact:
|
|
||||||
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
|
|
||||||
when:
|
|
||||||
- ansible_user_dir is undefined
|
|
||||||
roles:
|
roles:
|
||||||
- role: test_deps
|
- role: test_deps
|
||||||
- role: ensure-docker
|
|
||||||
when:
|
|
||||||
- (docker_cli.rc != 0) or
|
|
||||||
(docker_ps.rc != 0)
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Install docker-sdk
|
- name: Install podman
|
||||||
pip:
|
become: true
|
||||||
name: docker
|
package:
|
||||||
virtualenv: "{{ ansible_user_dir }}/test-python"
|
name: "{{ required_packages }}"
|
||||||
virtualenv_site_packages: true
|
state: latest
|
||||||
|
|
||||||
- name: pull an image
|
|
||||||
docker_image:
|
|
||||||
name: centos:8
|
|
||||||
source: pull
|
|
||||||
vars:
|
|
||||||
ansible_python_interpreter: "{{ ansible_user_dir }}/test-python/bin/python"
|
|
||||||
|
|
||||||
- name: Create a data container
|
|
||||||
docker_container:
|
|
||||||
name: test-container
|
|
||||||
image: centos:8
|
|
||||||
vars:
|
|
||||||
ansible_python_interpreter: "{{ ansible_user_dir }}/test-python/bin/python"
|
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
---
|
|
||||||
driver:
|
|
||||||
name: delegated
|
|
||||||
options:
|
|
||||||
managed: false
|
|
||||||
login_cmd_template: >-
|
|
||||||
ssh
|
|
||||||
-o UserKnownHostsFile=/dev/null
|
|
||||||
-o StrictHostKeyChecking=no
|
|
||||||
-o Compression=no
|
|
||||||
-o TCPKeepAlive=yes
|
|
||||||
-o VerifyHostKeyDNS=no
|
|
||||||
-o ForwardX11=no
|
|
||||||
-o ForwardAgent=no
|
|
||||||
{instance}
|
|
||||||
ansible_connection_options:
|
|
||||||
ansible_connection: ssh
|
|
||||||
|
|
||||||
log: true
|
|
||||||
|
|
||||||
platforms:
|
|
||||||
- name: instance
|
|
||||||
|
|
||||||
provisioner:
|
|
||||||
name: ansible
|
|
||||||
inventory:
|
|
||||||
hosts:
|
|
||||||
all:
|
|
||||||
hosts:
|
|
||||||
instance:
|
|
||||||
ansible_host: localhost
|
|
||||||
log: true
|
|
||||||
env:
|
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
|
||||||
|
|
||||||
scenario:
|
|
||||||
test_sequence:
|
|
||||||
- prepare
|
|
||||||
- converge
|
|
||||||
- check
|
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
|
||||||
name: testinfra
|
|
||||||
lint:
|
|
||||||
name: flake8
|
|
|
@ -1,30 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
- name: Converge
|
|
||||||
hosts: all
|
|
||||||
become: true
|
|
||||||
roles:
|
|
||||||
- role: "tripleo-container-tag"
|
|
||||||
tripleo_container_image: centos:8
|
|
||||||
tripleo_container_image_latest: test-latest
|
|
||||||
tripleo_container_cli: podman
|
|
||||||
- role: "tripleo-container-tag"
|
|
||||||
tripleo_container_image: centos:8
|
|
||||||
tripleo_container_image_latest: test-latest-2
|
|
||||||
tripleo_container_cli: podman
|
|
||||||
tripleo_container_pull_image: false
|
|
|
@ -1,32 +0,0 @@
|
||||||
---
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
- name: Prepare
|
|
||||||
hosts: all
|
|
||||||
become: true
|
|
||||||
gather_facts: true
|
|
||||||
vars:
|
|
||||||
required_packages:
|
|
||||||
- podman
|
|
||||||
roles:
|
|
||||||
- role: test_deps
|
|
||||||
post_tasks:
|
|
||||||
- name: Install podman
|
|
||||||
become: true
|
|
||||||
package:
|
|
||||||
name: "{{ required_packages }}"
|
|
||||||
state: latest
|
|
|
@ -1,37 +0,0 @@
|
||||||
# Molecule managed
|
|
||||||
# Copyright 2019 Red Hat, Inc.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
|
|
||||||
{% if item.registry is defined %}
|
|
||||||
FROM {{ item.registry.url }}/{{ item.image }}
|
|
||||||
{% else %}
|
|
||||||
FROM {{ item.image }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
|
|
||||||
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install sudo python*-devel python*-dnf bash {{ item.pkg_extras | default('') }} && dnf clean all; \
|
|
||||||
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl python-setuptools bash {{ item.pkg_extras | default('') }} && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
|
|
||||||
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml {{ item.pkg_extras | default('') }} && zypper clean -a; \
|
|
||||||
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates {{ item.pkg_extras | default('') }}; \
|
|
||||||
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates {{ item.pkg_extras | default('') }} && xbps-remove -O; fi
|
|
||||||
|
|
||||||
{% for pkg in item.easy_install | default([]) %}
|
|
||||||
# install pip for centos where there is no python-pip rpm in default repos
|
|
||||||
RUN easy_install {{ pkg }}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
|
||||||
CMD ["sh", "-c", "while true; do sleep 10000; done"]
|
|
|
@ -1,69 +1,48 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: delegated
|
||||||
|
options:
|
||||||
|
managed: false
|
||||||
|
login_cmd_template: >-
|
||||||
|
ssh
|
||||||
|
-o UserKnownHostsFile=/dev/null
|
||||||
|
-o StrictHostKeyChecking=no
|
||||||
|
-o Compression=no
|
||||||
|
-o TCPKeepAlive=yes
|
||||||
|
-o VerifyHostKeyDNS=no
|
||||||
|
-o ForwardX11=no
|
||||||
|
-o ForwardAgent=no
|
||||||
|
{instance}
|
||||||
|
ansible_connection_options:
|
||||||
|
ansible_connection: ssh
|
||||||
|
|
||||||
log: true
|
log: true
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: centos7
|
- name: instance
|
||||||
hostname: centos7
|
|
||||||
image: centos:7
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python-setuptools
|
|
||||||
easy_install:
|
|
||||||
- pip
|
|
||||||
environment: &env
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- ALL
|
|
||||||
volumes:
|
|
||||||
- /dev:/dev
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
|
|
||||||
- name: fedora28
|
|
||||||
hostname: fedora28
|
|
||||||
image: fedora:28
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python*-setuptools
|
|
||||||
environment:
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
privileged: true
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- ALL
|
|
||||||
volumes:
|
|
||||||
- /dev:/dev
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
config_options:
|
||||||
|
defaults:
|
||||||
|
fact_caching: jsonfile
|
||||||
|
fact_caching_connection: /tmp/molecule/facts
|
||||||
|
inventory:
|
||||||
|
hosts:
|
||||||
|
all:
|
||||||
|
hosts:
|
||||||
|
instance:
|
||||||
|
ansible_host: localhost
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
|
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
test_sequence:
|
test_sequence:
|
||||||
- destroy
|
|
||||||
- create
|
|
||||||
- prepare
|
- prepare
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
- verify
|
|
||||||
- destroy
|
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
- role: test_deps
|
- role: test_deps
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Install additional dependencies
|
- name: Install additional dependencies
|
||||||
|
become: true
|
||||||
package:
|
package:
|
||||||
name: kmod
|
name: kmod
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -1,69 +1,48 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: delegated
|
||||||
|
options:
|
||||||
|
managed: false
|
||||||
|
login_cmd_template: >-
|
||||||
|
ssh
|
||||||
|
-o UserKnownHostsFile=/dev/null
|
||||||
|
-o StrictHostKeyChecking=no
|
||||||
|
-o Compression=no
|
||||||
|
-o TCPKeepAlive=yes
|
||||||
|
-o VerifyHostKeyDNS=no
|
||||||
|
-o ForwardX11=no
|
||||||
|
-o ForwardAgent=no
|
||||||
|
{instance}
|
||||||
|
ansible_connection_options:
|
||||||
|
ansible_connection: ssh
|
||||||
|
|
||||||
log: true
|
log: true
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: centos7
|
- name: instance
|
||||||
hostname: centos7
|
|
||||||
image: centos:7
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python-setuptools
|
|
||||||
easy_install:
|
|
||||||
- pip
|
|
||||||
environment: &env
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- ALL
|
|
||||||
volumes:
|
|
||||||
- /dev:/dev
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
|
|
||||||
- name: fedora28
|
|
||||||
hostname: fedora28
|
|
||||||
image: fedora:28
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python*-setuptools
|
|
||||||
environment:
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
privileged: true
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- ALL
|
|
||||||
volumes:
|
|
||||||
- /dev:/dev
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
config_options:
|
||||||
|
defaults:
|
||||||
|
fact_caching: jsonfile
|
||||||
|
fact_caching_connection: /tmp/molecule/facts
|
||||||
|
inventory:
|
||||||
|
hosts:
|
||||||
|
all:
|
||||||
|
hosts:
|
||||||
|
instance:
|
||||||
|
ansible_host: localhost
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
|
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
test_sequence:
|
test_sequence:
|
||||||
- destroy
|
|
||||||
- create
|
|
||||||
- prepare
|
- prepare
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
- verify
|
|
||||||
- destroy
|
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
- role: test_deps
|
- role: test_deps
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Install additional dependencies
|
- name: Install additional dependencies
|
||||||
|
become: true
|
||||||
package:
|
package:
|
||||||
name: kmod
|
name: kmod
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -1,69 +1,49 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: delegated
|
||||||
|
options:
|
||||||
|
managed: false
|
||||||
|
login_cmd_template: >-
|
||||||
|
ssh
|
||||||
|
-o UserKnownHostsFile=/dev/null
|
||||||
|
-o StrictHostKeyChecking=no
|
||||||
|
-o Compression=no
|
||||||
|
-o TCPKeepAlive=yes
|
||||||
|
-o VerifyHostKeyDNS=no
|
||||||
|
-o ForwardX11=no
|
||||||
|
-o ForwardAgent=no
|
||||||
|
{instance}
|
||||||
|
ansible_connection_options:
|
||||||
|
ansible_connection: ssh
|
||||||
|
|
||||||
log: true
|
log: true
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: centos7
|
- name: instance
|
||||||
hostname: centos7
|
|
||||||
image: centos:7
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python-setuptools
|
|
||||||
easy_install:
|
|
||||||
- pip
|
|
||||||
environment: &env
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- ALL
|
|
||||||
volumes:
|
|
||||||
- /dev:/dev
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
|
|
||||||
- name: fedora28
|
|
||||||
hostname: fedora28
|
|
||||||
image: fedora:28
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
pkg_extras: python*-setuptools
|
|
||||||
environment:
|
|
||||||
http_proxy: "{{ lookup('env', 'http_proxy') }}"
|
|
||||||
https_proxy: "{{ lookup('env', 'https_proxy') }}"
|
|
||||||
command: /sbin/init
|
|
||||||
privileged: true
|
|
||||||
tmpfs:
|
|
||||||
- /run
|
|
||||||
- /tmp
|
|
||||||
capabilities:
|
|
||||||
- ALL
|
|
||||||
volumes:
|
|
||||||
- /dev:/dev
|
|
||||||
- /lib/modules:/lib/modules
|
|
||||||
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
|
config_options:
|
||||||
|
defaults:
|
||||||
|
fact_caching: jsonfile
|
||||||
|
fact_caching_connection: /tmp/molecule/facts
|
||||||
|
inventory:
|
||||||
|
hosts:
|
||||||
|
all:
|
||||||
|
hosts:
|
||||||
|
instance:
|
||||||
|
ansible_host: localhost
|
||||||
log: true
|
log: true
|
||||||
env:
|
env:
|
||||||
ANSIBLE_STDOUT_CALLBACK: yaml
|
ANSIBLE_STDOUT_CALLBACK: yaml
|
||||||
|
ANSIBLE_ROLES_PATH: "${ANSIBLE_ROLES_PATH}:${HOME}/zuul-jobs/roles"
|
||||||
|
|
||||||
scenario:
|
scenario:
|
||||||
|
name: remove_module
|
||||||
test_sequence:
|
test_sequence:
|
||||||
- destroy
|
|
||||||
- create
|
|
||||||
- prepare
|
- prepare
|
||||||
- converge
|
- converge
|
||||||
- check
|
- check
|
||||||
- verify
|
|
||||||
- destroy
|
|
||||||
|
|
||||||
lint:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
verifier:
|
verifier:
|
||||||
name: testinfra
|
name: testinfra
|
||||||
lint:
|
|
||||||
name: flake8
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
- role: test_deps
|
- role: test_deps
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Install additional dependencies
|
- name: Install additional dependencies
|
||||||
|
become: true
|
||||||
package:
|
package:
|
||||||
name: kmod
|
name: kmod
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
- tripleo-ansible-centos-8-molecule-aide
|
- tripleo-ansible-centos-8-molecule-aide
|
||||||
- tripleo-ansible-centos-8-molecule-test_deps
|
- tripleo-ansible-centos-8-molecule-test_deps
|
||||||
- tripleo-ansible-centos-8-molecule-test_package_action
|
- tripleo-ansible-centos-8-molecule-test_package_action
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-bootstrap
|
- tripleo-ansible-centos-8-molecule-tripleo-bootstrap
|
||||||
- tripleo-ansible-centos-8-molecule-tuned
|
- tripleo-ansible-centos-8-molecule-tuned
|
||||||
- tripleo-ansible-centos-8-role-addition
|
- tripleo-ansible-centos-8-role-addition
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-create-admin
|
- tripleo-ansible-centos-8-molecule-tripleo-create-admin
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-module-load
|
- tripleo-ansible-centos-8-molecule-tripleo-module-load
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-ssh-known-hosts
|
- tripleo-ansible-centos-8-molecule-tripleo-ssh-known-hosts
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-container-tag
|
- tripleo-ansible-centos-8-molecule-tripleo-container-tag
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-container-rm
|
- tripleo-ansible-centos-8-molecule-tripleo-container-rm
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-image-serve
|
- tripleo-ansible-centos-8-molecule-tripleo-image-serve
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-transfer
|
- tripleo-ansible-centos-8-molecule-tripleo-transfer
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-podman
|
- tripleo-ansible-centos-7-molecule-tripleo-podman
|
||||||
|
@ -52,14 +52,14 @@
|
||||||
- tripleo-ansible-centos-8-molecule-aide
|
- tripleo-ansible-centos-8-molecule-aide
|
||||||
- tripleo-ansible-centos-8-molecule-test_deps
|
- tripleo-ansible-centos-8-molecule-test_deps
|
||||||
- tripleo-ansible-centos-8-molecule-test_package_action
|
- tripleo-ansible-centos-8-molecule-test_package_action
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-bootstrap
|
- tripleo-ansible-centos-8-molecule-tripleo-bootstrap
|
||||||
- tripleo-ansible-centos-8-molecule-tuned
|
- tripleo-ansible-centos-8-molecule-tuned
|
||||||
- tripleo-ansible-centos-8-role-addition
|
- tripleo-ansible-centos-8-role-addition
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-create-admin
|
- tripleo-ansible-centos-8-molecule-tripleo-create-admin
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-module-load
|
- tripleo-ansible-centos-8-molecule-tripleo-module-load
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-ssh-known-hosts
|
- tripleo-ansible-centos-8-molecule-tripleo-ssh-known-hosts
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-container-tag
|
- tripleo-ansible-centos-8-molecule-tripleo-container-tag
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-container-rm
|
- tripleo-ansible-centos-8-molecule-tripleo-container-rm
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-image-serve
|
- tripleo-ansible-centos-8-molecule-tripleo-image-serve
|
||||||
- tripleo-ansible-centos-8-molecule-tripleo-transfer
|
- tripleo-ansible-centos-8-molecule-tripleo-transfer
|
||||||
- tripleo-ansible-centos-7-molecule-tripleo-podman
|
- tripleo-ansible-centos-7-molecule-tripleo-podman
|
||||||
|
@ -120,8 +120,8 @@
|
||||||
- job:
|
- job:
|
||||||
files:
|
files:
|
||||||
- ^tripleo_ansible/roles/tripleo-bootstrap/.*
|
- ^tripleo_ansible/roles/tripleo-bootstrap/.*
|
||||||
name: tripleo-ansible-centos-7-molecule-tripleo-bootstrap
|
name: tripleo-ansible-centos-8-molecule-tripleo-bootstrap
|
||||||
parent: tripleo-ansible-centos-7-base
|
parent: tripleo-ansible-centos-8-base
|
||||||
vars:
|
vars:
|
||||||
tripleo_role_name: tripleo-bootstrap
|
tripleo_role_name: tripleo-bootstrap
|
||||||
- job:
|
- job:
|
||||||
|
@ -152,8 +152,8 @@
|
||||||
- job:
|
- job:
|
||||||
files:
|
files:
|
||||||
- ^tripleo_ansible/roles/tripleo-module-load/.*
|
- ^tripleo_ansible/roles/tripleo-module-load/.*
|
||||||
name: tripleo-ansible-centos-7-molecule-tripleo-module-load
|
name: tripleo-ansible-centos-8-molecule-tripleo-module-load
|
||||||
parent: tripleo-ansible-centos-7-base
|
parent: tripleo-ansible-centos-8-base
|
||||||
vars:
|
vars:
|
||||||
tripleo_role_name: tripleo-module-load
|
tripleo_role_name: tripleo-module-load
|
||||||
- job:
|
- job:
|
||||||
|
@ -166,15 +166,15 @@
|
||||||
- job:
|
- job:
|
||||||
files:
|
files:
|
||||||
- ^tripleo_ansible/roles/tripleo-container-tag/.*
|
- ^tripleo_ansible/roles/tripleo-container-tag/.*
|
||||||
name: tripleo-ansible-centos-7-molecule-tripleo-container-tag
|
name: tripleo-ansible-centos-8-molecule-tripleo-container-tag
|
||||||
parent: tripleo-ansible-centos-7-base
|
parent: tripleo-ansible-centos-8-base
|
||||||
vars:
|
vars:
|
||||||
tripleo_role_name: tripleo-container-tag
|
tripleo_role_name: tripleo-container-tag
|
||||||
- job:
|
- job:
|
||||||
files:
|
files:
|
||||||
- ^tripleo_ansible/roles/tripleo-container-rm/.*
|
- ^tripleo_ansible/roles/tripleo-container-rm/.*
|
||||||
name: tripleo-ansible-centos-7-molecule-tripleo-container-rm
|
name: tripleo-ansible-centos-8-molecule-tripleo-container-rm
|
||||||
parent: tripleo-ansible-centos-7-base
|
parent: tripleo-ansible-centos-8-base
|
||||||
vars:
|
vars:
|
||||||
tripleo_role_name: tripleo-container-rm
|
tripleo_role_name: tripleo-container-rm
|
||||||
- job:
|
- job:
|
||||||
|
|
Loading…
Reference in New Issue