Couple tiny fixes for deploy-env role

- typo in the setup of wireguard tunnel
- wrong home directory when setup k8s client for root user

Change-Id: Ia50f9f631b56538f72843112745525bc074e7948
This commit is contained in:
Vladimir Kozhukalov 2024-06-25 14:25:42 -05:00
parent 1fc147ae50
commit 41358ff8b2
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
wg set client-wg listen-port 51820 private-key /root/wg-private-key peer {{ client_wg_public_key }} allowed-ips {{ tunnel_network_cidr }} endpoint {{ client_default_ip }}:51820
ip link set client-wg up
iptables -t filter -P FORWARD ACCEPT
iptables -t filter -I FORWARD -o client-gw -j ACCEPT
iptables -t filter -I FORWARD -o client-wg -j ACCEPT
EOF
chmod +x /tmp/configure_cluster_tunnel.sh
/tmp/configure_cluster_tunnel.sh

View File

@ -40,7 +40,7 @@
- name: "Set kubconfig file ownership for {{ kubectl.user }} user"
shell: |
chown -R {{ kubectl.user }}:{{ kubectl.group }} /home/{{ kubectl.user }}/.kube
chown -R {{ kubectl.user }}:{{ kubectl.group }} {{ user_home_directory }}/.kube
- name: Deploy Helm
block: