threefoldtech / terraform-provider-grid

Apache License 2.0
8 stars 5 forks source link

Add mycelium changes #888

Closed rawdaGastan closed 4 months ago

rawdaGastan commented 6 months ago

Updated in go client

rawdaGastan commented 5 months ago
$ terraform apply

Apply complete! Resources: 3 added, 0 changed, 0 destroyed.

Outputs:

vm1_ip = "10.1.2.2"
vm1_mycelium_ip = "48a:2ac9:935:9f12:ff0f:b60f:2b7e:c39c"
$ ssh root@48a:2ac9:935:9f12:ff0f:b60f:2b7e:c39c

Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <http://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.

vm1:~# 
rawdaGastan commented 5 months ago
$ terraform apply
Apply complete! Resources: 3 added, 0 changed, 0 destroyed.

Outputs:

computed_master_mycelium_ip = "48a:2ac9:935:9f12:ff0f:b60f:2b7e:c39c"
computed_worker1_mycelium_ip = "445:5594:4d90:378:ff0f:9f50:592d:6b55"
computed_worker2_mycelium_ip = "5b2:4f10:b15a:d7fd:ff0f:d04c:42aa:2a1a"
computed_worker3_mycelium_ip = "446:1237:4364:3a85:ff0f:60a9:601d:738d"
master_console_url = "10.1.3.0:20002"
wg_config = <<EOT

[Interface]
Address = 100.64.1.2
PrivateKey = aIYcjURcDCgj7tQsBzDGXT/geOifYhZBUb7WVe0zIH4=
[Peer]
PublicKey = jejSjbPzXiLolnDYql4rrstPm86vD/piDiZY7z85J0I=
AllowedIPs = 10.1.0.0/16, 100.64.0.0/16
PersistentKeepalive = 25
Endpoint = 185.206.122.32:25129

EOT
$ ssh root@48a:2ac9:935:9f12:ff0f:b60f:2b7e:c39c

Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@mr:~# kubectl get node
NAME   STATUS   ROLES                  AGE   VERSION
mr     Ready    control-plane,master   84s   v1.26.0+k3s1
w0     Ready    <none>                 79s   v1.26.0+k3s1
w3     Ready    <none>                 79s   v1.26.0+k3s1
w2     Ready    <none>                 65s   v1.26.0+k3s1
$ ssh root@445:5594:4d90:378:ff0f:9f50:592d:6b55
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
Last login: Tue Mar  5 12:49:03 2024 from 5af:9f9c:fb8:fd12:8072:3f65:79f8:c157
root@w0:~# 
$ ssh root@5b2:4f10:b15a:d7fd:ff0f:d04c:42aa:2a1a
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
Last login: Tue Mar  5 12:49:41 2024 from 5af:9f9c:fb8:fd12:8072:3f65:79f8:c157
root@w2:~# 
$ ssh root@446:1237:4364:3a85:ff0f:60a9:601d:738d
Welcome to Ubuntu 20.04.5 LTS (GNU/Linux 6.1.21 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
Last login: Tue Mar  5 12:49:41 2024 from 5af:9f9c:fb8:fd12:8072:3f65:79f8:c157
root@w3:~#