mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-03-11 23:32:12 +01:00
Compare commits
3 Commits
903f302236
...
069b9b1371
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
069b9b1371 | ||
|
|
2d0716b91e | ||
|
|
fd026d656e |
28
.github/workflows/cache.yml
vendored
28
.github/workflows/cache.yml
vendored
@@ -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
|
||||||
|
|||||||
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -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
|
||||||
|
|||||||
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user