Skip to content

Commit

Permalink
using manual command for rke2 service restarts
Browse files Browse the repository at this point in the history
Signed-off-by: Piyush Kumar <[email protected]>
  • Loading branch information
kpiyush17 committed Oct 20, 2023
1 parent 9abb3db commit db91435
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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),
},
})

Expand Down

0 comments on commit db91435

Please sign in to comment.