1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

use DHCP for aws datasource

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-13 10:23:57 +10:00
parent 64949bb888
commit d65f9518df
4 changed files with 66 additions and 27 deletions

1
cmd/network/network.go Normal file → Executable file
View File

@@ -41,6 +41,7 @@ func ApplyNetworkConfig(cfg *config.CloudConfig) {
log.Error(err)
}
// TODO: seems wrong to do this outside netconf
userSetHostname := cfg.Hostname != ""
if err := netconf.RunDhcp(&cfg.Rancher.Network, !userSetHostname, !userSetDNS); err != nil {
log.Error(err)