Compare commits

...

11 Commits

Author SHA1 Message Date
Techno Tim
d5a5fcf5f5 Merge 4707002267 into edf0c9eebd 2024-01-22 04:35:57 +00:00
Timothy Stewart
4707002267 fix(ci): adjusting cache steps 2024-01-21 22:35:47 -06:00
Timothy Stewart
ffcc79300a fix(ci): adjusting cache steps 2024-01-21 22:25:22 -06:00
Timothy Stewart
0ae666dfe5 fix(post): Fix liquid formatting 2024-01-21 22:04:09 -06:00
Timothy Stewart
b9d94f3675 fix(ci): adjusting cache steps 2024-01-21 21:13:24 -06:00
Timothy Stewart
8acec7055a fix(ci): adjusting cache steps 2024-01-21 19:59:25 -06:00
Timothy Stewart
fc8ab77be4 fix(ci): adjusting cache steps 2024-01-21 18:42:29 -06:00
Timothy Stewart
f7869f447d fix(ci): adjusting cache steps 2024-01-21 18:32:57 -06:00
Timothy Stewart
eb89255d59 fix(ci): adjusting cache steps 2024-01-21 18:28:51 -06:00
Timothy Stewart
4b8c97c715 fix(ci): adjusting cache steps 2024-01-21 18:01:02 -06:00
Timothy Stewart
5a36416ccb fix(ci): adjusting cache steps 2024-01-21 17:54:20 -06:00
7 changed files with 30 additions and 37 deletions

View File

@@ -26,7 +26,7 @@ jobs:
id: cache-ansible id: cache-ansible
with: with:
path: ~/.ansible/collections path: ~/.ansible/collections
key: ansible-${{ hashFiles('collections/requirements.txt') }} key: ansible-${{ hashFiles('collections/requirements.yml') }}
restore-keys: | restore-keys: |
ansible- ansible-

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: macos-13
env: env:
PYTHON_VERSION: "3.11" PYTHON_VERSION: "3.11"
@@ -25,7 +25,7 @@ jobs:
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with: with:
path: ~/.ansible/collections path: ~/.ansible/collections
key: ansible-${{ hashFiles('collections/requirements.txt') }} key: ansible-${{ hashFiles('collections/requirements.yml') }}
- name: Install dependencies - name: Install dependencies
run: | run: |
@@ -46,7 +46,7 @@ jobs:
ensure-pinned-actions: ensure-pinned-actions:
name: Ensure SHA Pinned Actions name: Ensure SHA Pinned Actions
runs-on: ubuntu-latest runs-on: macos-13
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

@@ -22,12 +22,6 @@ jobs:
with: with:
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- name: Restore Ansible cache
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with:
path: ~/.ansible/collections
key: ansible-${{ hashFiles('collections/requirements.txt') }}
- name: Restore Homebrew cache - name: Restore Homebrew cache
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0 uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with: with:
@@ -67,14 +61,6 @@ jobs:
python3 -m pip install -r requirements.txt python3 -m pip install -r requirements.txt
echo "::endgroup::" echo "::endgroup::"
- name: Cache Ansible
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
with:
path: ~/.ansible/collections
key: ansible-${{ hashFiles('collections/requirements.txt') }}
restore-keys: |
${{ runner.os }}-ansible-
- name: Test with molecule - name: Test with molecule
run: molecule test --scenario-name ${{ matrix.scenario }} run: molecule test --scenario-name ${{ matrix.scenario }}
timeout-minutes: 90 timeout-minutes: 90

View File

@@ -1,4 +1,5 @@
tap "homebrew/bundle" tap "homebrew/bundle"
tap "homebrew/cask-versions" tap "homebrew/cask-versions"
cask "virtualbox6"
cask "virtualbox"
cask "vagrant" cask "vagrant"

View File

@@ -7,8 +7,8 @@ platforms:
- name: control1 - name: control1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -23,8 +23,8 @@ platforms:
- name: control2 - name: control2
box: generic/debian11 box: generic/debian11
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -34,8 +34,8 @@ platforms:
- name: control3 - name: control3
box: generic/rocky9 box: generic/rocky9
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -45,8 +45,8 @@ platforms:
- name: node1 - name: node1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- node - node
@@ -61,8 +61,8 @@ platforms:
- name: node2 - name: node2
box: generic/rocky9 box: generic/rocky9
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- node - node
@@ -72,6 +72,8 @@ platforms:
provisioner: provisioner:
name: ansible name: ansible
env:
ANSIBLE_VERBOSITY: 3
playbooks: playbooks:
converge: ../resources/converge.yml converge: ../resources/converge.yml
side_effect: ../resources/reset.yml side_effect: ../resources/reset.yml

View File

@@ -6,8 +6,8 @@ driver:
platforms: platforms:
- name: control1 - name: control1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -22,8 +22,8 @@ platforms:
- name: control2 - name: control2
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- master - master
@@ -38,8 +38,8 @@ platforms:
- name: node1 - name: node1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 1024 memory: 512
cpus: 2 cpus: 1
groups: groups:
- k3s_cluster - k3s_cluster
- node - node
@@ -53,6 +53,8 @@ platforms:
ssh.password: "vagrant" ssh.password: "vagrant"
provisioner: provisioner:
name: ansible name: ansible
env:
ANSIBLE_VERBOSITY: 3
playbooks: playbooks:
converge: ../resources/converge.yml converge: ../resources/converge.yml
side_effect: ../resources/reset.yml side_effect: ../resources/reset.yml

View File

@@ -6,8 +6,8 @@ driver:
platforms: platforms:
- name: control1 - name: control1
box: generic/ubuntu2204 box: generic/ubuntu2204
memory: 4096 memory: 512
cpus: 4 cpus: 1
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
@@ -21,6 +21,8 @@ platforms:
ip: 192.168.30.50 ip: 192.168.30.50
provisioner: provisioner:
name: ansible name: ansible
env:
ANSIBLE_VERBOSITY: 3
playbooks: playbooks:
converge: ../resources/converge.yml converge: ../resources/converge.yml
side_effect: ../resources/reset.yml side_effect: ../resources/reset.yml