1
0
mirror of https://github.com/rancher/os.git synced 2025-09-12 21:23:13 +00:00

Remove waagent datasource

use os-services waagent instead
This commit is contained in:
Jason-ZW
2018-12-14 11:34:12 +08:00
parent 95077cef94
commit 03c090ed86
3 changed files with 0 additions and 310 deletions

View File

@@ -97,23 +97,6 @@ func saveCloudConfig() error {
return nil
}
func RequiresNetwork(datasource string) bool {
// TODO: move into the datasources (and metadatasources)
// and then we can enable that platforms defaults..
parts := strings.SplitN(datasource, ":", 2)
requiresNetwork, ok := map[string]bool{
"ec2": true,
"file": false,
"url": true,
"cmdline": true,
"configdrive": false,
"digitalocean": true,
"gce": true,
"packet": true,
}[parts[0]]
return ok && requiresNetwork
}
func saveFiles(cloudConfigBytes, scriptBytes []byte, metadata datasource.Metadata) error {
os.MkdirAll(rancherConfig.CloudConfigDir, os.ModeDir|0600)