summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-07-31 11:00:43 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-31 11:01:24 +0200
commit43fe8ffddf525d3e9620fa1280b3220cb7f94de8 (patch)
tree2d6884e7749f0f7ea5c2d39f5143a1b8f1614937
parent00e7ed1c2e5c4cd26aa91fe4e020b301250e252b (diff)
Add more config to installation
-rw-r--r--playbook.bash8
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"