Merge pull request #57 from kairos-io/systemctl

using manual command for rke2 service restarts
This commit is contained in:
Santhosh 2023-10-20 14:44:10 -07:00 committed by GitHub
commit 2bc17d752e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
main.go
View File

@ -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),
},
})