FatmanUK / k3s_playground

0 stars 0 forks source link

Consolidate bootstrap phase #246

Closed athajaerel closed 8 months ago

athajaerel commented 8 months ago

Lots of roles not doing very much and doing it badly. Review the design of this phase and consolidate some roles?

athajaerel commented 8 months ago
first primary:
- k3s_token_create

rhel/masters:
- rhel_bootstrap

void/masters:
- void_bootstrap

all masters:
- slow reboot

first primary:
- k3s_install
- k3s_patch

rhel/agents:
- rhel_bootstrap

void/agents:
- void_bootstrap

all agents:
- slow reboot
- apply labels

wtf, guy? BETTER:

first primary:
- server_token_generate

rhel:
- server_token_install
- rhel_enable (meta_server_token_slurp)

void:
- server_token_install
- void_enable (meta_server_token_slurp)

first primary:
- api_tokens_generate

primary/masters:
- cluster_reboot (meta_api_tokens_slurp)

secondary/masters and agents:
- cluster_reboot (meta_api_tokens_slurp)

first primary:
- k3s_install
- k3s_patch

rhel_enable and void_enable will still do the bootstrap stuff but use different vars from groups, eg. primary_masters (and the other group will be in defaults).