* refactor!: flux is required again Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: delimiter that chomps Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: bootstrap_cloudflare logic Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: update tests Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: remove last quote Signed-off-by: Devin Buhl <devin@buhl.casa> * chore: update readme Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
24 lines
689 B
YAML
24 lines
689 B
YAML
---
|
|
kubernetes:
|
|
children:
|
|
controllers:
|
|
hosts:
|
|
#% for item in bootstrap_node_inventory %#
|
|
#% if item.controller %#
|
|
"#{ item.name }#":
|
|
ansible_user: "#{ item.ssh_user }#"
|
|
ansible_host: "#{ item.address }#"
|
|
#% endif %#
|
|
#% endfor %#
|
|
#% if bootstrap_node_inventory | selectattr('controller', 'equalto', False) | list | length %#
|
|
workers:
|
|
hosts:
|
|
#% for item in bootstrap_node_inventory %#
|
|
#% if not item.controller %#
|
|
"#{ item.name }#":
|
|
ansible_user: "#{ item.ssh_user }#"
|
|
ansible_host: "#{ item.address }#"
|
|
#% endif %#
|
|
#% endfor %#
|
|
#% endif %#
|