* feat: add advanced features to config Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: only enable longhorn if distro is k3s or k0s Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: update ansible lint Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
22 lines
585 B
YAML
22 lines
585 B
YAML
#% if bootstrap_distribution in ['k3s', 'k0s'] %#
|
|
---
|
|
kubernetes:
|
|
children:
|
|
master:
|
|
hosts:
|
|
#% for item in bootstrap_nodes.master %#
|
|
"#{ item.name }#":
|
|
ansible_user: "#{ item.username }#"
|
|
ansible_host: "#{ item.address }#"
|
|
#% endfor %#
|
|
#% if bootstrap_nodes.worker|default([]) | length > 0 %#
|
|
worker:
|
|
hosts:
|
|
#% for item in bootstrap_nodes.worker %#
|
|
"#{ item.name }#":
|
|
ansible_user: "#{ item.username }#"
|
|
ansible_host: "#{ item.address }#"
|
|
#% endfor %#
|
|
#% endif %#
|
|
#% endif %#
|