mirror of
https://github.com/kairos-io/provider-k3s.git
synced 2025-05-10 00:46:32 +00:00
Merge pull request #72 from kairos-io/systemctl
using manual command for k3s service restarts
This commit is contained in:
commit
065f6ecf7f
13
main.go
13
main.go
@ -137,15 +137,12 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
|
||||
yip.Stage{
|
||||
Name: "Enable Systemd Services",
|
||||
If: "[ -x /bin/systemctl ]",
|
||||
Systemctl: yip.Systemctl{
|
||||
Enable: []string{
|
||||
systemName,
|
||||
},
|
||||
Start: []string{
|
||||
systemName,
|
||||
},
|
||||
Commands: []string{
|
||||
fmt.Sprintf("systemctl enable %s", systemName),
|
||||
fmt.Sprintf("systemctl restart %s", systemName),
|
||||
},
|
||||
})
|
||||
},
|
||||
)
|
||||
|
||||
cfg := yip.YipConfig{
|
||||
Name: "K3s Kairos Cluster Provider",
|
||||
|
Loading…
Reference in New Issue
Block a user