Compare commits

...

2 Commits

Author SHA1 Message Date
Dov Benyomin Sohacheski
16fb511d49 🚚 Move to use meta files for roles 2024-05-21 09:23:52 +03:00
Dov Benyomin Sohacheski
62b80237ef Add default values to roles 2024-05-12 12:42:51 +03:00
7 changed files with 92 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
---
argument_specs:
main:
short_description: Manage the downloading of K3S binaries
options:
k3s_version:
description: The desired version of K3S
required: true

View File

@@ -0,0 +1,5 @@
---
is_pxe_booted: false
extra_agent_args: ""
group_name_master: master
systemd_dir: /etc/systemd/system

View File

@@ -0,0 +1,29 @@
---
argument_specs:
main:
short_description: Setup k3s agents
options:
apiserver_endpoint:
description: Virtual ip-address configured on each master
required: true
extra_agent_args:
description: Virtual ip-address configured on each master
default: Arguments passed to the systemd service
group_name_master:
description: Name of the master group
default: master
proxy_env:
type: dict
description: Internet proxy configurations
default: ~
options:
HTTP_PROXY:
HTTPS_PROXY:
NO_PROXY:
systemd_dir:
description: Path to systemd services
default: /etc/systemd/system

View File

@@ -0,0 +1,19 @@
---
argument_specs:
main:
short_description: Configure the use of a custom container registry
options:
custom_registries_yaml:
description:
- YAML block defining custom registries.
- >
The following is an example that pulls all images used in
this playbook through your private registries.
- >
It also allows you to pull your own images from your private
registry, without having to use imagePullSecrets in your
deployments.
- >
If all you need is your own images and you don't care about
caching the docker/quay/ghcr.io images, you can just remove
those from the mirrors: section.

View File

@@ -2,9 +2,9 @@
# If you want to explicitly define an interface that ALL control nodes
# should use to propagate the VIP, define it here. Otherwise, kube-vip
# will determine the right interface automatically at runtime.
kube_vip_iface: null
kube_vip_iface: ~
# Name of the master group
kube_vip_cloud_provider_tag_version: main
group_name_master: master
# yamllint disable rule:line-length
@@ -18,3 +18,5 @@ server_init_args: >-
--token {{ k3s_token }}
{% endif %}
{{ extra_server_args | default('') }}
systemd_dir: /etc/systemd/system

View File

@@ -0,0 +1,25 @@
---
argument_specs:
main:
short_description: Setup k3s servers
options:
group_name_master:
description: Name of the master group
default: master
kube_vip_cloud_provider_tag_version:
description: Tag for kube-vip-cloud-provider manifest when enabled
default: main
kube_vip_lb_ip_range:
description: IP range for kube-vip load balancer
default: ~
proxy_env:
type: dict
description: Internet proxy configurations
default: ~
options:
HTTP_PROXY:
HTTPS_PROXY:
NO_PROXY:

View File

@@ -0,0 +1,2 @@
---
systemd_dir: /etc/systemd/system