mirror of
https://github.com/kairos-io/provider-k3s.git
synced 2025-06-01 11:05:14 +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{
|
yip.Stage{
|
||||||
Name: "Enable Systemd Services",
|
Name: "Enable Systemd Services",
|
||||||
If: "[ -x /bin/systemctl ]",
|
If: "[ -x /bin/systemctl ]",
|
||||||
Systemctl: yip.Systemctl{
|
Commands: []string{
|
||||||
Enable: []string{
|
fmt.Sprintf("systemctl enable %s", systemName),
|
||||||
systemName,
|
fmt.Sprintf("systemctl restart %s", systemName),
|
||||||
},
|
|
||||||
Start: []string{
|
|
||||||
systemName,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
})
|
},
|
||||||
|
)
|
||||||
|
|
||||||
cfg := yip.YipConfig{
|
cfg := yip.YipConfig{
|
||||||
Name: "K3s Kairos Cluster Provider",
|
Name: "K3s Kairos Cluster Provider",
|
||||||
|
Loading…
Reference in New Issue
Block a user