mirror of
https://github.com/kairos-io/provider-rke2.git
synced 2025-08-01 22:08:11 +00:00
Merge pull request #57 from kairos-io/systemctl
using manual command for rke2 service restarts
This commit is contained in:
commit
2bc17d752e
12
main.go
12
main.go
@ -89,7 +89,7 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
|
|||||||
|
|
||||||
stages := []yip.Stage{
|
stages := []yip.Stage{
|
||||||
{
|
{
|
||||||
Name: " Install RKE2 Configuration Files",
|
Name: "Install RKE2 Configuration Files",
|
||||||
Files: files,
|
Files: files,
|
||||||
|
|
||||||
Commands: []string{
|
Commands: []string{
|
||||||
@ -115,13 +115,9 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
|
|||||||
|
|
||||||
stages = append(stages, yip.Stage{
|
stages = append(stages, yip.Stage{
|
||||||
Name: "Enable Systemd Services",
|
Name: "Enable Systemd Services",
|
||||||
Systemctl: yip.Systemctl{
|
Commands: []string{
|
||||||
Enable: []string{
|
fmt.Sprintf("systemctl enable %s", systemName),
|
||||||
systemName,
|
fmt.Sprintf("systemctl restart %s", systemName),
|
||||||
},
|
|
||||||
Start: []string{
|
|
||||||
systemName,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user