diff options
Diffstat (limited to 'playbook.bash')
-rw-r--r-- | playbook.bash | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/playbook.bash b/playbook.bash index e00ed1b..74f11ec 100644 --- a/playbook.bash +++ b/playbook.bash @@ -23,9 +23,11 @@ playbook_add() { mkdir -pv -- /etc/rancher/k3s cat <<-EOF > /etc/rancher/k3s/config.yaml node-name: "${BASHTARD_PLATFORM[fqdn]}" - cluster-cidr: 172.19.0.0/16 - service-cidr: 172.20.0.0/16 - cluster-domain: cluster.local + node-ip: "$(config "$BASHTARD_PLAYBOOK.node-ip" "$(config "bashtard.ssh.host")")" + cluster-cidr: "$(config "$BASHTARD_PLAYBOOK.cluster-cidr" "172.19.0.0/16")" + service-cidr: "$(config "$BASHTARD_PLAYBOOK.service-cidr" "172.20.0.0/16")" + cluster-domain: "$(config "$BASHTARD_PLAYBOOK.cluster-domain" "cluster.local")" + service-node-port-range: "$(config "$BASHTARD_PLAYBOOK.service-node-port-min" "30000")-$(config "$BASHTARD_PLAYBOOK.service-node-port-max" "32767")" EOF info "$BASHTARD_PLAYBOOK" "Installing k3s" |