mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-29 20:22:39 +01:00
Compare commits
1 Commits
8ac3c9a44f
...
a7bc477dc7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7bc477dc7 |
4
.github/workflows/cache.yml
vendored
4
.github/workflows/cache.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the codebase
|
- name: Check out the codebase
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache Vagrant boxes
|
- name: Cache Vagrant boxes
|
||||||
id: cache-vagrant
|
id: cache-vagrant
|
||||||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0.2
|
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0
|
||||||
with:
|
with:
|
||||||
lookup-only: true #if it exists, we don't need to restore and can skip the next step
|
lookup-only: true #if it exists, we don't need to restore and can skip the next step
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the codebase
|
- name: Check out the codebase
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
cache: 'pip' # caching pip dependencies
|
cache: 'pip' # caching pip dependencies
|
||||||
|
|
||||||
- name: Restore Ansible cache
|
- name: Restore Ansible cache
|
||||||
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0.2
|
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0
|
||||||
with:
|
with:
|
||||||
path: ~/.ansible/collections
|
path: ~/.ansible/collections
|
||||||
key: ansible-${{ hashFiles('collections/requirements.yml') }}
|
key: ansible-${{ hashFiles('collections/requirements.yml') }}
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
|
||||||
- name: Ensure SHA pinned actions
|
- name: Ensure SHA pinned actions
|
||||||
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@2f2ebc6d914ab515939dc13f570f91baeb2c194c # 3.0.6
|
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@2f2ebc6d914ab515939dc13f570f91baeb2c194c # 3.0.6
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the codebase
|
- name: Check out the codebase
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
cache: 'pip' # caching pip dependencies
|
cache: 'pip' # caching pip dependencies
|
||||||
|
|
||||||
- name: Restore vagrant Boxes cache
|
- name: Restore vagrant Boxes cache
|
||||||
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0.2
|
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # 4.0
|
||||||
with:
|
with:
|
||||||
path: ~/.vagrant.d/boxes
|
path: ~/.vagrant.d/boxes
|
||||||
key: vagrant-boxes-${{ hashFiles('**/molecule.yml') }}
|
key: vagrant-boxes-${{ hashFiles('**/molecule.yml') }}
|
||||||
|
|||||||
@@ -32,4 +32,3 @@ argument_specs:
|
|||||||
systemd_dir:
|
systemd_dir:
|
||||||
description: Path to systemd services
|
description: Path to systemd services
|
||||||
default: /etc/systemd/system
|
default: /etc/systemd/system
|
||||||
required: true
|
|
||||||
|
|||||||
@@ -83,4 +83,3 @@ argument_specs:
|
|||||||
systemd_dir:
|
systemd_dir:
|
||||||
description: Path to systemd services
|
description: Path to systemd services
|
||||||
default: /etc/systemd/system
|
default: /etc/systemd/system
|
||||||
required: true
|
|
||||||
|
|||||||
@@ -2,18 +2,11 @@
|
|||||||
bpf_lb_algorithm: maglev
|
bpf_lb_algorithm: maglev
|
||||||
bpf_lb_mode: hybrid
|
bpf_lb_mode: hybrid
|
||||||
|
|
||||||
calico_blockSize: 26
|
|
||||||
calico_ebpf: false
|
calico_ebpf: false
|
||||||
calico_encapsulation: VXLANCrossSubnet
|
|
||||||
calico_natOutgoing: Enabled
|
|
||||||
calico_nodeSelector: all()
|
|
||||||
calico_tag: v3.27.2
|
calico_tag: v3.27.2
|
||||||
|
|
||||||
cilium_bgp: false
|
cilium_bgp: false
|
||||||
cilium_exportPodCIDR: true
|
cilium_exportPodCIDR: true
|
||||||
cilium_bgp_my_asn: 64513
|
|
||||||
cilium_bgp_peer_asn: 64512
|
|
||||||
cilium_bgp_lb_cidr: 192.168.31.0/24
|
|
||||||
cilium_hubble: true
|
cilium_hubble: true
|
||||||
cilium_mode: native
|
cilium_mode: native
|
||||||
|
|
||||||
@@ -25,4 +18,3 @@ group_name_master: master
|
|||||||
metal_lb_mode: layer2
|
metal_lb_mode: layer2
|
||||||
metal_lb_available_timeout: 240s
|
metal_lb_available_timeout: 240s
|
||||||
metal_lb_controller_tag_version: v0.14.3
|
metal_lb_controller_tag_version: v0.14.3
|
||||||
metal_lb_ip_range: 192.168.30.80-192.168.30.90
|
|
||||||
|
|||||||
@@ -15,28 +15,11 @@ argument_specs:
|
|||||||
description: BPF lb mode
|
description: BPF lb mode
|
||||||
default: hybrid
|
default: hybrid
|
||||||
|
|
||||||
calico_blockSize:
|
|
||||||
description: IP pool block size
|
|
||||||
type: int
|
|
||||||
default: 26
|
|
||||||
|
|
||||||
calico_ebpf:
|
calico_ebpf:
|
||||||
description: Use eBPF dataplane instead of iptables
|
description: Use eBPF dataplane instead of iptables
|
||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
calico_encapsulation:
|
|
||||||
description: IP pool encapsulation
|
|
||||||
default: VXLANCrossSubnet
|
|
||||||
|
|
||||||
calico_natOutgoing:
|
|
||||||
description: IP pool NAT outgoing
|
|
||||||
default: Enabled
|
|
||||||
|
|
||||||
calico_nodeSelector:
|
|
||||||
description: IP pool node selector
|
|
||||||
default: all()
|
|
||||||
|
|
||||||
calico_iface:
|
calico_iface:
|
||||||
description: The network interface used for when Calico is enabled
|
description: The network interface used for when Calico is enabled
|
||||||
default: ~
|
default: ~
|
||||||
@@ -52,24 +35,6 @@ argument_specs:
|
|||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
cilium_bgp_my_asn:
|
|
||||||
description: Local ASN for BGP peer
|
|
||||||
type: int
|
|
||||||
default: 64513
|
|
||||||
|
|
||||||
cilium_bgp_peer_asn:
|
|
||||||
description: BGP peer ASN
|
|
||||||
type: int
|
|
||||||
default: 64512
|
|
||||||
|
|
||||||
cilium_bgp_peer_address:
|
|
||||||
description: BGP peer address
|
|
||||||
default: ~
|
|
||||||
|
|
||||||
cilium_bgp_lb_cidr:
|
|
||||||
description: BGP load balancer IP range
|
|
||||||
default: 192.168.31.0/24
|
|
||||||
|
|
||||||
cilium_exportPodCIDR:
|
cilium_exportPodCIDR:
|
||||||
description: Export pod CIDR
|
description: Export pod CIDR
|
||||||
type: bool
|
type: bool
|
||||||
@@ -117,10 +82,6 @@ argument_specs:
|
|||||||
description: Wait for MetalLB resources
|
description: Wait for MetalLB resources
|
||||||
default: 240s
|
default: 240s
|
||||||
|
|
||||||
metal_lb_ip_range:
|
|
||||||
description: MetalLB ip range for load balancer
|
|
||||||
default: 192.168.30.80-192.168.30.90
|
|
||||||
|
|
||||||
metal_lb_controller_tag_version:
|
metal_lb_controller_tag_version:
|
||||||
description: Image tag for MetalLB
|
description: Image tag for MetalLB
|
||||||
default: v0.14.3
|
default: v0.14.3
|
||||||
@@ -131,15 +92,3 @@ argument_specs:
|
|||||||
choices:
|
choices:
|
||||||
- bgp
|
- bgp
|
||||||
- layer2
|
- layer2
|
||||||
|
|
||||||
metal_lb_bgp_my_asn:
|
|
||||||
description: BGP ASN configurations
|
|
||||||
default: ~
|
|
||||||
|
|
||||||
metal_lb_bgp_peer_asn:
|
|
||||||
description: BGP peer ASN configurations
|
|
||||||
default: ~
|
|
||||||
|
|
||||||
metal_lb_bgp_peer_address:
|
|
||||||
description: BGP peer address
|
|
||||||
default: ~
|
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ spec:
|
|||||||
calicoNetwork:
|
calicoNetwork:
|
||||||
# Note: The ipPools section cannot be modified post-install.
|
# Note: The ipPools section cannot be modified post-install.
|
||||||
ipPools:
|
ipPools:
|
||||||
- blockSize: {{ calico_blockSize }}
|
- blockSize: {{ calico_blockSize | default('26') }}
|
||||||
cidr: {{ cluster_cidr }}
|
cidr: {{ cluster_cidr | default('10.52.0.0/16') }}
|
||||||
encapsulation: {{ calico_encapsulation }}
|
encapsulation: {{ calico_encapsulation | default('VXLANCrossSubnet') }}
|
||||||
natOutgoing: {{ calico_natOutgoing }}
|
natOutgoing: {{ calico_natOutgoing | default('Enabled') }}
|
||||||
nodeSelector: {{ calico_nodeSelector }}
|
nodeSelector: {{ calico_nodeSelector | default('all()') }}
|
||||||
nodeAddressAutodetectionV4:
|
nodeAddressAutodetectionV4:
|
||||||
interface: {{ calico_iface }}
|
interface: {{ calico_iface }}
|
||||||
linuxDataplane: {{ 'BPF' if calico_ebpf else 'Iptables' }}
|
linuxDataplane: {{ 'BPF' if calico_ebpf else 'Iptables' }}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
argument_specs:
|
|
||||||
main:
|
|
||||||
short_description: Configure LXC
|
|
||||||
options:
|
|
||||||
custom_reboot_command:
|
|
||||||
default: ~
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
secure_path:
|
secure_path:
|
||||||
RedHat: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
RedHat: '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin'
|
||||||
Suse: /usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin
|
Suse: '/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin'
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
argument_specs:
|
|
||||||
main:
|
|
||||||
short_description: Prerequisites
|
|
||||||
options:
|
|
||||||
system_timezone:
|
|
||||||
description: Timezone to be set on all nodes
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
argument_specs:
|
|
||||||
main:
|
|
||||||
short_description: Reset all nodes
|
|
||||||
options:
|
|
||||||
systemd_dir:
|
|
||||||
description: Path to systemd services
|
|
||||||
default: /etc/systemd/system
|
|
||||||
required: true
|
|
||||||
Reference in New Issue
Block a user