diff --git a/.cirrus.yml b/.cirrus.yml index 9dbf04d0..31560176 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -5,21 +5,23 @@ low_scale_task: image: family/fedora-cloud-35 platform: linux memory: 8G + use_static_ip: true env: DEPENDENCIES: git ansible podman podman-docker - PHYS_DEPLOYMENT: ${CIRRUS_WORKING_DIR}/physical-deployments/localhost.yml + PHYS_DEPLOYMENT: ${CIRRUS_WORKING_DIR}/physical-deployments/ci.yml runtime_cache: folder: runtime-cache configure_ssh_script: + - export IP_ADDR=$(ip route get 8.8.8.8 | head -1 | sed 's/.*src \([0-9\.]*\).*/\1/') - mkdir -p /root/.ssh/ - ssh-keygen -t rsa -N '' -q -f /root/.ssh/id_rsa - - ssh-keyscan localhost >> /root/.ssh/known_hosts + - ssh-keyscan ${IP_ADDR} >> /root/.ssh/known_hosts - cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys - chmod og-wx /root/.ssh/authorized_keys - - ssh root@localhost -v echo Hello + - ssh root@${IP_ADDR} -v echo Hello install_dependencies_script: - dnf install -y ${DEPENDENCIES} @@ -30,6 +32,8 @@ low_scale_task: - tar -xzf runtime-cache/runtime.tar.gz || true install_script: + - export IP_ADDR=$(ip route get 8.8.8.8 | head -1 | sed 's/.*src \([0-9\.]*\).*/\1/') + - 'sed -i "s//${IP_ADDR}/g" ${PHYS_DEPLOYMENT}' - ./do.sh install pack_caches_script: diff --git a/physical-deployments/ci.yml b/physical-deployments/ci.yml new file mode 100644 index 00000000..9d67bbe0 --- /dev/null +++ b/physical-deployments/ci.yml @@ -0,0 +1,12 @@ +registry-node: +internal-iface: eno1 + +central-node: + name: + +tester-node: + name: + ssh_key: /root/.ssh/id_rsa + +worker-nodes: + - diff --git a/physical-deployments/localhost.yml b/physical-deployments/localhost.yml deleted file mode 100644 index a8d0708b..00000000 --- a/physical-deployments/localhost.yml +++ /dev/null @@ -1,8 +0,0 @@ -registry-node: localhost -internal-iface: lo - -central-node: - name: localhost - -worker-nodes: - - localhost