Merge pull request #417 from mslacken/pretty-host-overlays

enable host overlays, inform users if not enabled
This commit is contained in:
Christian Goll
2022-05-06 16:46:46 +02:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ warewulf:
secure: false
update interval: 60
autobuild overlays: true
host overlay: false
host overlay: true
syslog: false
datastore: ""
dhcp:
@@ -22,7 +22,6 @@ tftp:
systemd name: tftp
nfs:
enabled: true
exports: []
export paths:
- path: /home
export options: rw,sync

View File

@@ -42,6 +42,8 @@ func Dhcp() error {
if err != nil {
wwlog.Printf(wwlog.WARN, "host overlay could not be built: %s\n", err)
}
} else {
wwlog.Printf(wwlog.INFO, "host overlays are disabled, did not modify/create dhcpd configuration")
}
fmt.Printf("Enabling and restarting the DHCP services\n")
err = util.SystemdStart(controller.Dhcp.SystemdName)

View File

@@ -32,6 +32,8 @@ func NFS() error {
if err != nil {
wwlog.Printf(wwlog.WARN, "host overlay could not be built: %s\n", err)
}
} else {
wwlog.Printf(wwlog.INFO, "host overlays are disabled, did not modify exports")
}
fmt.Printf("Enabling and restarting the NFS services\n")
if controller.Nfs.SystemdName == "" {