mirror of
https://github.com/kairos-io/provider-rke2.git
synced 2025-08-31 20:36:43 +00:00
using manual command for rke2 service restarts
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
This commit is contained in:
12
main.go
12
main.go
@@ -89,7 +89,7 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
|
||||
|
||||
stages := []yip.Stage{
|
||||
{
|
||||
Name: " Install RKE2 Configuration Files",
|
||||
Name: "Install RKE2 Configuration Files",
|
||||
Files: files,
|
||||
|
||||
Commands: []string{
|
||||
@@ -115,13 +115,9 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
|
||||
|
||||
stages = append(stages, yip.Stage{
|
||||
Name: "Enable Systemd Services",
|
||||
Systemctl: yip.Systemctl{
|
||||
Enable: []string{
|
||||
systemName,
|
||||
},
|
||||
Start: []string{
|
||||
systemName,
|
||||
},
|
||||
Commands: []string{
|
||||
fmt.Sprintf("systemctl enable %s", systemName),
|
||||
fmt.Sprintf("systemctl restart %s", systemName),
|
||||
},
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user