Compare commits

..

3 Commits

Author SHA1 Message Date
Timothy Stewart
069b9b1371 fix(ci): self-hosted 2024-01-23 18:43:42 -06:00
Timothy Stewart
2d0716b91e fix(ci): self-hosted 2024-01-23 18:33:34 -06:00
Timothy Stewart
fd026d656e fix(ci): self-hosted 2024-01-23 18:18:57 -06:00
6 changed files with 40 additions and 40 deletions

View File

@@ -5,7 +5,7 @@ on:
jobs: jobs:
molecule: molecule:
name: cache name: cache
runs-on: ubuntu-latest runs-on: self-hosted
env: env:
PYTHON_VERSION: "3.11" PYTHON_VERSION: "3.11"
@@ -30,15 +30,15 @@ jobs:
# restore-keys: | # restore-keys: |
# ansible- # ansible-
- name: Install dependencies # - name: Install dependencies
run: | # run: |
echo "::group::Upgrade pip" # echo "::group::Upgrade pip"
python3 -m pip install --upgrade pip # python3 -m pip install --upgrade pip
echo "::endgroup::" # echo "::endgroup::"
echo "::group::Install Python requirements from requirements.txt" # echo "::group::Install Python requirements from requirements.txt"
python3 -m pip install -r requirements.txt # python3 -m pip install -r requirements.txt
echo "::endgroup::" # echo "::endgroup::"
# - name: Install ansible dependencies # - name: Install ansible dependencies
# if: steps.cache-ansible.outputs.cache-hit != 'true' # only run if false since this is just a cache step # if: steps.cache-ansible.outputs.cache-hit != 'true' # only run if false since this is just a cache step
@@ -58,11 +58,11 @@ jobs:
restore-keys: | restore-keys: |
vagrant-boxes vagrant-boxes
- name: install apt packages # - name: install apt packages
run: | # run: |
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg # wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list # echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt -y install vagrant virtualbox # sudo apt update && sudo apt -y install vagrant virtualbox
# - name: Configure Homebrew cache # - name: Configure Homebrew cache

View File

@@ -5,7 +5,7 @@ on:
jobs: jobs:
pre-commit-ci: pre-commit-ci:
name: Pre-Commit name: Pre-Commit
runs-on: ubuntu-latest runs-on: self-hosted
env: env:
PYTHON_VERSION: "3.11" PYTHON_VERSION: "3.11"
@@ -42,7 +42,7 @@ jobs:
ensure-pinned-actions: ensure-pinned-actions:
name: Ensure SHA Pinned Actions name: Ensure SHA Pinned Actions
runs-on: ubuntu-latest runs-on: self-hosted
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0 uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0

View File

@@ -5,7 +5,7 @@ on:
jobs: jobs:
molecule: molecule:
name: Molecule name: Molecule
runs-on: ubuntu-latest runs-on: self-hosted
strategy: strategy:
matrix: matrix:
scenario: scenario:
@@ -58,11 +58,11 @@ jobs:
# vagrant --version # vagrant --version
# vboxmanage --version # vboxmanage --version
- name: install apt packages # - name: install apt packages
run: | # run: |
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg # wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list # echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt -y install vagrant virtualbox # sudo apt update && sudo apt -y install vagrant virtualbox
- name: Restore vagrant Boxes cache - name: Restore vagrant Boxes cache
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0

View File

@@ -9,8 +9,8 @@ platforms:
- name: control1 - name: control1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -25,8 +25,8 @@ platforms:
- name: control2 - name: control2
box: generic/debian11 box: generic/debian11
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -36,8 +36,8 @@ platforms:
- name: control3 - name: control3
box: generic/rocky9 box: generic/rocky9
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -47,8 +47,8 @@ platforms:
- name: node1 - name: node1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- node - node
@@ -63,8 +63,8 @@ platforms:
- name: node2 - name: node2
box: generic/rocky9 box: generic/rocky9
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- node - node

View File

@@ -8,8 +8,8 @@ driver:
platforms: platforms:
- name: control1 - name: control1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -24,8 +24,8 @@ platforms:
- name: control2 - name: control2
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -40,8 +40,8 @@ platforms:
- name: node1 - name: node1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 512 memory: 4096
cpus: 1 cpus: 4
groups: groups:
- k3s_cluster - k3s_cluster
- node - node

View File

@@ -8,8 +8,8 @@ driver:
platforms: platforms:
- name: control1 - name: control1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 512 memory: 8192
cpus: 1 cpus: 8
config_options: config_options:
# We currently can not use public-key based authentication on Ubuntu 22.04, # We currently can not use public-key based authentication on Ubuntu 22.04,
# see: https://github.com/chef/bento/issues/1405 # see: https://github.com/chef/bento/issues/1405