Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reproducer-clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
- deepscrub
delegate_to: localhost
ansible.builtin.file:
path: "{{ lookup('env', 'HOME') }}/ci-framework-data/ci-reproducer"
path: "{{ ansible_user_dir }}/ci-framework-data/ci-reproducer"
state: absent

- name: Remove basedir
Expand Down
1 change: 0 additions & 1 deletion roles/adoption_osp_deploy/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
cifmw_adoption_osp_deploy_repos: []
cifmw_adoption_source_scenario_path: "."
cifmw_basedir: "{{ playbook_dir }}"
ansible_user_dir: "{{ lookup('env', 'HOME') }}"

tasks:
- name: Gather stack nodes and facts
Expand Down
1 change: 0 additions & 1 deletion roles/build_containers/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data/"
roles:
- role: test_deps
Expand Down
1 change: 0 additions & 1 deletion roles/build_containers/molecule/hotfix/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data/"
roles:
- role: test_deps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Converge
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ cifmw_project_dir_absolute }}"
cifmw_bop_openstack_release: master
cifmw_bop_dlrn_baseurl: https://trunk.rdoproject.org/centos9-master
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ cifmw_project_dir_absolute }}"
roles:
- role: test_deps
Expand Down
6 changes: 3 additions & 3 deletions roles/cert_manager/tasks/validate_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

- name: Create $HOME/bin dir
ansible.builtin.file:
path: "{{ lookup('env', 'HOME') }}/bin"
path: "{{ ansible_user_dir }}/bin"
state: directory
mode: '0755'

Expand All @@ -30,11 +30,11 @@
_arch: "{{ lookup('pipe', 'go env GOARCH') }}"
ansible.builtin.get_url:
url: "https://github.com/cert-manager/cmctl/releases/{{ cifmw_cert_manager_version }}/download/cmctl_{{ _os }}_{{ _arch }}"
dest: "{{ lookup('env', 'HOME') }}/bin/cmctl"
dest: "{{ ansible_user_dir }}/bin/cmctl"
mode: "0755"

- name: Verify cert_manager api
environment:
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
PATH: "{{ cifmw_path }}"
ansible.builtin.command: "{{ lookup('env', 'HOME') }}/bin/cmctl check api --wait=2m"
ansible.builtin.command: "{{ ansible_user_dir }}/bin/cmctl check api --wait=2m"
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
vars:
cifmw_ci_gen_kustomize_values_src_dir: >-
{{
(lookup('env', 'HOME'),
(ansible_user_dir,
'ci-framework-data',
'artifacts', 'ci_k8s_snippets') | path_join
}}
Expand Down
1 change: 0 additions & 1 deletion roles/cifmw_setup/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
---
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
openstack_namespace: openstack
2 changes: 0 additions & 2 deletions roles/compliance/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@
- name: Converge test of controller tasks
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_compliance_dry_run: true
roles:
- role: "compliance"

- name: Converge test of compute tasks
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_compliance_dry_run: true
roles:
- role: "compliance"
Expand Down
1 change: 0 additions & 1 deletion roles/devscripts/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
hosts: all

vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
cifmw_use_libvirt: true

Expand Down
1 change: 0 additions & 1 deletion roles/edpm_build_images/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Converge
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_edpm_build_images_dry_run: true
cifmw_edpm_build_images_via_rpm: false
roles:
Expand Down
1 change: 0 additions & 1 deletion roles/edpm_deploy/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Converge
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_edpm_deploy_dryrun: true
roles:
- role: "edpm_deploy"
1 change: 0 additions & 1 deletion roles/edpm_deploy/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_install_yamls_defaults:
NAMESPACE: openstack
Expand Down
1 change: 0 additions & 1 deletion roles/edpm_deploy_baremetal/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
roles:
Expand Down
1 change: 0 additions & 1 deletion roles/edpm_prepare/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
cifmw_install_yamls_defaults:
Expand Down
1 change: 0 additions & 1 deletion roles/hci_prepare/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
- name: Converge
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_path: "/path/to/bin"
cifmw_openshift_kubeconfig: "path/to/kubeconfig"
Expand Down
1 change: 0 additions & 1 deletion roles/hive/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
hosts: all

vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
cifmw_hive_artifacts_dir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_hive_kubeconfig: test_path
Expand Down
1 change: 0 additions & 1 deletion roles/hive/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
hosts: all

vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"

roles:
Expand Down
2 changes: 0 additions & 2 deletions roles/install_ca/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

- name: Converge
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
tasks:
- name: Run role without any CA
ansible.builtin.include_role:
Expand Down
1 change: 0 additions & 1 deletion roles/install_ca/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_install_yamls_defaults:
NAMESPACE: openstack
roles:
Expand Down
1 change: 0 additions & 1 deletion roles/install_yamls/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
cifmw_install_yamls_vars:
namespace: foobar
openstack_ctlplane: controlplane-yaml-file.yaml
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_install_yamls_repo: "{{ cifmw_installyamls_repos }}"
zuul:
branch: main
Expand Down
2 changes: 1 addition & 1 deletion roles/libvirt_manager/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cifmw_libvirt_manager_configuration:
memory: "{{ cifmw_libvirt_manager_compute_memory }}"
cpus: "{{ cifmw_libvirt_manager_compute_cpus }}"

cifmw_libvirt_manager_crc_pool: "{{ cifmw_crc_pool | default(lookup('env', 'HOME')) ~ '/.crc/machines/crc' }}"
cifmw_libvirt_manager_crc_pool: "{{ cifmw_crc_pool | default(ansible_user_dir ~ '/.crc/machines/crc') }}"
cifmw_libvirt_manager_vol_prefix: ''
cifmw_libvirt_manager_pool:
cifmw_libvirt_manager_pool_dir: "{{ cifmw_libvirt_manager_basedir }}/volumes"
Expand Down
1 change: 0 additions & 1 deletion roles/libvirt_manager/molecule/boot_order/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
vars_files:
- vars/net-def.yml
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "/opt/basedir"
cifmw_libvirt_manager_configuration:
vms:
Expand Down
1 change: 0 additions & 1 deletion roles/libvirt_manager/molecule/check_dns/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
hosts: instance
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "/opt/basedir"
_cifmw_libvirt_manager_layout:
vms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
hosts: instance
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "/opt/basedir"
cifmw_libvirt_manager_vm_net_ip_set:
compute: 100
Expand Down
1 change: 0 additions & 1 deletion roles/libvirt_manager/molecule/ocp_layout/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
gather_facts: true
vars:
cifmw_run_id: aabbcc11
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "/opt/basedir"
_cifmw_libvirt_manager_layout:
vms:
Expand Down
1 change: 0 additions & 1 deletion roles/libvirt_manager/molecule/spine_leaf/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
hosts: instance
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "/opt/basedir"
cifmw_libvirt_manager_spineleaf_setup: true
cifmw_libvirt_manager_network_interface_types:
Expand Down
1 change: 0 additions & 1 deletion roles/libvirt_manager/molecule/spine_leaf/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
hosts: instance
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "/opt/basedir"
compare_nets: >-
{{
Expand Down
4 changes: 2 additions & 2 deletions roles/libvirt_manager/tasks/clean_layout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
vars:
vm: "{{ item | replace('cifmw-', '') }}"
ansible.builtin.blockinfile:
path: "{{ lookup('env', 'HOME') }}/.ssh/config"
path: "{{ ansible_user_dir }}/.ssh/config"
marker: "## {mark} {{ vm }} {{ inventory_hostname }}"
state: absent
create: true
Expand Down Expand Up @@ -332,7 +332,7 @@
- name: Clean local ssh config
vars:
cifmw_ssh_jumper_target: 'localhost'
cifmw_ssh_jumper_config_dir: "{{ lookup('env', 'HOME') }}/.ssh"
cifmw_ssh_jumper_config_dir: "{{ ansible_user_dir }}/.ssh"
ansible.builtin.include_role:
name: "ssh_jumper"
tasks_from: "cleanup.yml"
Expand Down
2 changes: 1 addition & 1 deletion roles/libvirt_manager/tasks/manage_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
target: localhost
proxy_host: "{{ ansible_host | default(inventory_hostname) }}"
proxy_user: "{{ ansible_user | default(lookup('env', 'USER')) }}"
ssh_dir: "{{ lookup('env', 'HOME') }}/.ssh"
ssh_dir: "{{ ansible_user_dir }}/.ssh"
ssh_ident:
identity_file: >-
{{
Expand Down
2 changes: 0 additions & 2 deletions roles/nat64_appliance/molecule/default/cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
- name: Cleanup
hosts: instance
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
tasks:
- name: "Destroy the test-node"
community.libvirt.virt:
Expand Down
1 change: 0 additions & 1 deletion roles/nat64_appliance/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
- name: Converge
hosts: instance
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
tasks:
- name: Crate SSH keypair
Expand Down
1 change: 0 additions & 1 deletion roles/nat64_appliance/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
pre_tasks:
- name: Create custom basedir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
hosts: all
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir ~ '/.crc/bin:' ~ ansible_user_dir ~ '/.crc/bin/oc:' ~ ansible_user_dir ~ '/bin:' ~ ansible_env.PATH }}"
cifmw_opn_dry_run: true
cifmw_use_opn: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
hosts: all
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
cifmw_use_libvirt_manager: true
Expand Down
3 changes: 1 addition & 2 deletions roles/reproducer/tasks/parse_cifmw_job_uri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

- name: Extract job id for later reference
vars:
user_dir: "{{ lookup('env', 'HOME') }}"
basedir: "{{ user_dir ~ '/ci-framework-data' }}"
basedir: "{{ ansible_user_dir ~ '/ci-framework-data' }}"
job_id: "{{ _matched_url| basename }}"
ansible.builtin.set_fact:
cacheable: true
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/add_crc_creds/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
hosts: all
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
tasks:
- name: Verify crc creds playbook
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/binary/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
tasks:
- name: Cleanup RHOL/CRC after tests
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/default/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
tasks:
- name: Cleanup CRC
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
hosts: all
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
cifmw_manage_secrets_pullsecret_content: >
{"auths":{"fake":{"auth": "Zm9vOmJhcgo="}}}
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
async_duration: 6000
tasks:
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/find_crc/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
tasks:
- name: Cleanup RHOL/CRC after tests
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/get_versions/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- name: Prepare
hosts: all
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
tasks:
- name: Cleanup RHOL/CRC after tests
Expand Down
1 change: 0 additions & 1 deletion roles/rhol_crc/molecule/get_versions/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
hosts: all
gather_facts: true
vars:
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
tasks:
- name: Get CRC and openshift versions
Expand Down
Loading
Loading