Moving chown step
This commit is contained in:
parent
427047c39c
commit
251f6d305d
1 changed files with 4 additions and 3 deletions
|
|
@ -76,6 +76,10 @@ resource "null_resource" "talos_cluster" {
|
||||||
--memory ${self.triggers.memory_mb} \
|
--memory ${self.triggers.memory_mb} \
|
||||||
--cpus ${self.triggers.vcpu_count} \
|
--cpus ${self.triggers.vcpu_count} \
|
||||||
--skip-kubeconfig
|
--skip-kubeconfig
|
||||||
|
|
||||||
|
# Change ownership of the generated files in ~/.talos and ~/.kube
|
||||||
|
sudo chown -R $(id -u):$(id -g) $HOME/.talos
|
||||||
|
sudo chown -R $(id -u):$(id -g) $HOME/.kube
|
||||||
|
|
||||||
# Apply our pre-generated configuration
|
# Apply our pre-generated configuration
|
||||||
echo "Applying Talos configuration..."
|
echo "Applying Talos configuration..."
|
||||||
|
|
@ -89,9 +93,6 @@ resource "null_resource" "talos_cluster" {
|
||||||
echo "Generating kubeconfig..."
|
echo "Generating kubeconfig..."
|
||||||
talosctl --talosconfig configs/talosconfig kubeconfig --nodes 10.5.0.2
|
talosctl --talosconfig configs/talosconfig kubeconfig --nodes 10.5.0.2
|
||||||
|
|
||||||
# Change ownership of the generated files in ~/.talos and ~/.kube
|
|
||||||
sudo chown -R $(id -u):$(id -g) $HOME/.talos
|
|
||||||
sudo chown -R $(id -u):$(id -g) $HOME/.kube
|
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue