mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 11:42:37 +01:00
Compare commits
11 Commits
5b934dd156
...
d5a5fcf5f5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5a5fcf5f5 | ||
|
|
4707002267 | ||
|
|
ffcc79300a | ||
|
|
0ae666dfe5 | ||
|
|
b9d94f3675 | ||
|
|
8acec7055a | ||
|
|
fc8ab77be4 | ||
|
|
f7869f447d | ||
|
|
eb89255d59 | ||
|
|
4b8c97c715 | ||
|
|
5a36416ccb |
2
.github/workflows/cache.yml
vendored
2
.github/workflows/cache.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
id: cache-ansible
|
||||
with:
|
||||
path: ~/.ansible/collections
|
||||
key: ansible-${{ hashFiles('collections/requirements.txt') }}
|
||||
key: ansible-${{ hashFiles('collections/requirements.yml') }}
|
||||
restore-keys: |
|
||||
ansible-
|
||||
|
||||
|
||||
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
@@ -5,7 +5,7 @@ on:
|
||||
jobs:
|
||||
pre-commit-ci:
|
||||
name: Pre-Commit
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: macos-13
|
||||
env:
|
||||
PYTHON_VERSION: "3.11"
|
||||
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||
with:
|
||||
path: ~/.ansible/collections
|
||||
key: ansible-${{ hashFiles('collections/requirements.txt') }}
|
||||
key: ansible-${{ hashFiles('collections/requirements.yml') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
|
||||
ensure-pinned-actions:
|
||||
name: Ensure SHA Pinned Actions
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0
|
||||
|
||||
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -22,12 +22,6 @@ jobs:
|
||||
with:
|
||||
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
|
||||
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||
with:
|
||||
@@ -67,14 +61,6 @@ jobs:
|
||||
python3 -m pip install -r requirements.txt
|
||||
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
|
||||
run: molecule test --scenario-name ${{ matrix.scenario }}
|
||||
timeout-minutes: 90
|
||||
|
||||
3
Brewfile
3
Brewfile
@@ -1,4 +1,5 @@
|
||||
tap "homebrew/bundle"
|
||||
tap "homebrew/cask-versions"
|
||||
cask "virtualbox6"
|
||||
|
||||
cask "virtualbox"
|
||||
cask "vagrant"
|
||||
|
||||
@@ -7,8 +7,8 @@ platforms:
|
||||
|
||||
- name: control1
|
||||
box: generic/ubuntu2204
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- master
|
||||
@@ -23,8 +23,8 @@ platforms:
|
||||
|
||||
- name: control2
|
||||
box: generic/debian11
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- master
|
||||
@@ -34,8 +34,8 @@ platforms:
|
||||
|
||||
- name: control3
|
||||
box: generic/rocky9
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- master
|
||||
@@ -45,8 +45,8 @@ platforms:
|
||||
|
||||
- name: node1
|
||||
box: generic/ubuntu2204
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- node
|
||||
@@ -61,8 +61,8 @@ platforms:
|
||||
|
||||
- name: node2
|
||||
box: generic/rocky9
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- node
|
||||
@@ -72,6 +72,8 @@ platforms:
|
||||
|
||||
provisioner:
|
||||
name: ansible
|
||||
env:
|
||||
ANSIBLE_VERBOSITY: 3
|
||||
playbooks:
|
||||
converge: ../resources/converge.yml
|
||||
side_effect: ../resources/reset.yml
|
||||
|
||||
@@ -6,8 +6,8 @@ driver:
|
||||
platforms:
|
||||
- name: control1
|
||||
box: generic/ubuntu2204
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- master
|
||||
@@ -22,8 +22,8 @@ platforms:
|
||||
|
||||
- name: control2
|
||||
box: generic/ubuntu2204
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- master
|
||||
@@ -38,8 +38,8 @@ platforms:
|
||||
|
||||
- name: node1
|
||||
box: generic/ubuntu2204
|
||||
memory: 1024
|
||||
cpus: 2
|
||||
memory: 512
|
||||
cpus: 1
|
||||
groups:
|
||||
- k3s_cluster
|
||||
- node
|
||||
@@ -53,6 +53,8 @@ platforms:
|
||||
ssh.password: "vagrant"
|
||||
provisioner:
|
||||
name: ansible
|
||||
env:
|
||||
ANSIBLE_VERBOSITY: 3
|
||||
playbooks:
|
||||
converge: ../resources/converge.yml
|
||||
side_effect: ../resources/reset.yml
|
||||
|
||||
@@ -6,8 +6,8 @@ driver:
|
||||
platforms:
|
||||
- name: control1
|
||||
box: generic/ubuntu2204
|
||||
memory: 4096
|
||||
cpus: 4
|
||||
memory: 512
|
||||
cpus: 1
|
||||
config_options:
|
||||
# We currently can not use public-key based authentication on Ubuntu 22.04,
|
||||
# see: https://github.com/chef/bento/issues/1405
|
||||
@@ -21,6 +21,8 @@ platforms:
|
||||
ip: 192.168.30.50
|
||||
provisioner:
|
||||
name: ansible
|
||||
env:
|
||||
ANSIBLE_VERBOSITY: 3
|
||||
playbooks:
|
||||
converge: ../resources/converge.yml
|
||||
side_effect: ../resources/reset.yml
|
||||
|
||||
Reference in New Issue
Block a user