@@ -13,33 +13,29 @@ jobs:
1313 shellcheck :
1414 runs-on : ubuntu-latest
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
1717 - name : Install ShellCheck
1818 run : sudo apt-get install shellcheck
1919 - name : Run ShellCheck
20- run : shellcheck tasks/*.sh
20+ run : shellcheck -x tasks/*.sh files /*.sh
2121
2222 test-install-task-on-ubuntu :
2323 strategy :
2424 matrix :
2525 os-details :
26- - os : ubuntu-20.04
27- codename : focal
2826 - os : ubuntu-22.04
2927 codename : jammy
28+ # - os: ubuntu-24.04
29+ # codename: noble
3030 # Perforce hasn't yet released bolt on 24.04.
3131 runs-on : ${{ matrix.os-details.os }}
3232 needs : shellcheck
3333 steps :
3434 - uses : actions/checkout@v4
35- - name : Install Bolt
36- run : |-
37- wget https://apt.puppet.com/puppet-tools-release-${{ matrix.os-details.codename }}.deb
38- sudo dpkg -i puppet-tools-release-${{ matrix.os-details.codename }}.deb
39- sudo apt update
40- sudo apt install -y puppet-bolt
41- - name : Install module dependencies
42- run : bolt module install
35+ - id : install-bolt
36+ uses : ./.github/actions/bolt
37+ with :
38+ os-codename : ${{ matrix.os-details.codename }}
4339 - name : Run openvox-agent install task
4440 run : bolt task run openvox_bootstrap::install --targets localhost --run-as root
4541 - name : Verify openvox-agent is installed
@@ -55,49 +51,25 @@ jobs:
5551 - debian:10
5652 - debian:11
5753 - debian:12
54+ - fedora:42
55+ - ubuntu:24.04
5856 # Need to pull in the repo GPG keys for sles
5957 # - registry.suse.com/suse/sle15:15.6
6058 needs : shellcheck
6159 runs-on : ubuntu-latest
6260 container : ${{ matrix.image }}
6361 steps :
64- - uses : actions/checkout@v4
6562 - uses : actions/checkout@v4
6663 with :
67- repository : puppetlabs/puppetlabs-facts
68- path : facts
69- - name : debugging
70- run : |
71- pwd
72- echo "Running on ${{ matrix.image }}"
73- ls -l
74- echo "${GITHUB_WORKSPACE}"
75- ls -l "${GITHUB_WORKSPACE}/.."
76- - name : Ensure wget is installed (apt)
77- if : startsWith(matrix.image, 'debian')
78- run : |
79- if ! command -v wget &> /dev/null; then
80- apt update
81- apt install -y wget
82- fi
83- - name : Ensure wget is installed (dnf)
84- if : startsWith(matrix.image, 'rocky')
85- run : |
86- if ! command -v wget &> /dev/null; then
87- dnf install -y wget
88- fi
89- - name : Ensure wget is installed (zypper)
90- if : contains(matrix.image, 'suse')
91- run : |
92- if ! command -v wget &> /dev/null; then
93- zypper install -y wget
94- fi
64+ path : openvox_bootstrap
65+ - id : prep
66+ uses : ./openvox_bootstrap/.github/actions/container_task_prep
9567 - name : Run openvox-agent install task manually
9668 env :
9769 PT__installdir : ${{ github.workspace }}
9870 PT_collection : openvox8
9971 PT_apt_source : " https://apt.overlookinfratech.com"
10072 PT_yum_source : " https://yum.overlookinfratech.com"
101- run : ./tasks/install_linux.sh
73+ run : ./openvox_bootstrap/ tasks/install_linux.sh
10274 - name : Verify openvox-agent is installed
10375 run : /opt/puppetlabs/bin/puppet --version | grep -E '[0-9]+\.[0-9]+'
0 commit comments