few-coat-36487
05/06/2024, 9:10 AM[root@server4 ~]# curl --insecure -fL <https://192.168.137.50:8443/system-agent-install.sh> | sudo sh -s - --server <https://192.168.137.50:8443> --label '<http://cattle.io/os=linux|cattle.io/os=linux>' --token wxbqjcvjs8sp9k7k49qklh958btnf4t65b9f9756mlsjnrbwb8bbrk --ca-checksum 2ec3f6509b0ebcba9cce27a4711b8c12d6fcda0477c7194488393d0b37f15557 --etcd --controlplane --worker
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 30863 0 30863 0 0 1883k 0 --:--:-- --:--:-- --:--:-- 1883k
[INFO] Label: <http://cattle.io/os=linux|cattle.io/os=linux>
[INFO] Role requested: etcd
[INFO] Role requested: controlplane
[INFO] Role requested: worker
[INFO] Using default agent configuration directory /etc/rancher/agent
[INFO] Using default agent var directory /var/lib/rancher/agent
[INFO] Determined CA is necessary to connect to Rancher
[INFO] Successfully downloaded CA certificate
[INFO] Value from <https://192.168.137.50:8443/cacerts> is an x509 certificate
[INFO] Successfully tested Rancher connection
[INFO] Downloading rancher-system-agent binary from <https://192.168.137.50:8443/assets/rancher-system-agent-amd64>
[INFO] Successfully downloaded the rancher-system-agent binary.
[INFO] Downloading rancher-system-agent-uninstall.sh script from <https://192.168.137.50:8443/assets/system-agent-uninstall.sh>
[INFO] Successfully downloaded the rancher-system-agent-uninstall.sh script.
[INFO] Generating Cattle ID
[INFO] Cattle ID was already detected as b5f6037987a3a36531be7fc5ebf94afba7f9a61a4e812122a5fb4ad9629893e. Not generating a new one.
[INFO] Successfully downloaded Rancher connection information
[INFO] systemd: Creating service file
[INFO] Creating environment file /etc/systemd/system/rancher-system-agent.env
[INFO] Enabling rancher-system-agent.service
[INFO] Starting/restarting rancher-system-agent.service