Skip to content

Commit

Permalink
Update Molecule config for local use
Browse files Browse the repository at this point in the history
- Change container name to instance to match what runs in CI so
  scenarios can be written to run locally and in CI without tweaks
- Remove unused TRIPLEO_ANSIBLE overrides
- Remove unused YAML anchors
  • Loading branch information
lewisdenny authored and openshift-merge-bot[bot] committed Oct 30, 2024
1 parent ce1929a commit 6f73675
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .config/molecule/config_podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,30 @@ driver:
log: true

platforms:
- name: centos
hostname: centos
image: ${TRIPLEO_ANSIBLE_MOLECULE_IMAGE:-"ubi9/ubi-init"}
- name: instance
hostname: instance
image: "ubi9/ubi-init"
registry:
url: ${TRIPLEO_ANSIBLE_MOLECULE_REGISTRY:-"registry.access.redhat.com"}
dockerfile: Dockerfile.j2
pkg_extras: python*setuptools
command: ${TRIPLEO_ANSIBLE_MOLECULE_COMMAND:-"/sbin/init"}
volumes: ${TRIPLEO_ANSIBLE_MOLECULE_VOLUMES:-['/etc/ci/mirror_info.sh:/etc/ci/mirror_info.sh:ro','/etc/pki/rpm-gpg:/etc/pki/rpm-gpg:O','/opt/yum.repos.d:/etc/yum.repos.d:O','/etc/dnf/vars:/etc/dnf/vars:O']}
url: "registry.access.redhat.com"
command: "sleep infinity"
privileged: true
environment: &env
environment:
http_proxy: "{{ lookup('env', 'http_proxy') }}"
https_proxy: "{{ lookup('env', 'https_proxy') }}"
ulimits: &ulimit
ulimits:
- host

provisioner:
inventory:
hosts:
all:
hosts:
centos:
instance:
ansible_python_interpreter: /usr/bin/python3
name: ansible
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}"
ANSIBLE_FILTER_PLUGINS: "${ANSIBLE_FILTER_PLUGINS:-/usr/share/ansible/plugins/filter}"
config_options:
defaults:
remote_tmp: /tmp

scenario:
test_sequence:
- prepare
- converge
- cleanup

0 comments on commit 6f73675

Please sign in to comment.