mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +00:00
make cloud-config the configuration mechanism for RancherOS
This commit is contained in:
@@ -20,14 +20,14 @@ import (
|
||||
func Main() {
|
||||
args := os.Args
|
||||
if len(args) > 1 {
|
||||
fmt.Println("call " + args[0] + " to load network config from rancher.yml config file")
|
||||
fmt.Println("call " + args[0] + " to load network config from cloud-config.yml")
|
||||
return
|
||||
}
|
||||
cfg, err := config.LoadConfig()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
ApplyNetworkConfigs(&cfg.Network)
|
||||
ApplyNetworkConfigs(&cfg.Rancher.Network)
|
||||
}
|
||||
|
||||
func createInterfaces(netCfg *config.NetworkConfig) error {
|
||||
|
Reference in New Issue
Block a user