PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
640 stars 135 forks source link

feat: implement config.yaml.d #149

Closed onedr0p closed 3 years ago

onedr0p commented 3 years ago

feat: implement config.yaml.d

Summary

Yey! more undocumented features of k3s, the PR was created here

https://github.com/k3s-io/k3s/pull/3162/files

Implements 2 new variables that can configure k3s settings with adding files to the config.yaml.d directory.

There are two variables that will allow for customizing the server or agents

# A list of templates used for configuring the server.
k3s_server_config_yaml_d_files: []

# A list of templates used for configuring the agent.
k3s_agent_config_yaml_d_files: []

When templates are provided they are copied into the special /etc/rancher/k3s/config.yaml.d directory

Fixes https://github.com/PyratLabs/ansible-role-k3s/issues/148

Issue type

Test instructions

Add templates to the above variables with k3s server or agent configuration options.

Acceptance Criteria

onedr0p commented 3 years ago

Looking for feedback @xanmanning let me know if you want vars renamed or order of operations in which this happens changed.