1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 23:34:57 +00:00

added google cloud config

This commit is contained in:
Bill Maxwell
2015-04-03 15:01:19 -07:00
parent 15bd54a841
commit 33a19f7ac1
2 changed files with 149 additions and 0 deletions

View File

@@ -277,6 +277,15 @@ func getDatasources(cfg *rancherConfig.Config) []datasource.Datasource {
} else {
enableDoLinkLocal()
}
case "gce":
if network {
gceCloudConfigFile, err := GetAndCreateGceDataSourceFilename()
if err != nil {
log.Errorf("Could not retrieve GCE CloudConfig %s", err)
continue
}
dss = append(dss, file.NewDatasource(gceCloudConfigFile))
}
}
}