1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

Added tftp datasource for cloud config.

This commit is contained in:
Morten Møller Riis
2019-03-12 11:37:08 +01:00
committed by niusmallnan
parent 8b75752225
commit 66c5f6130a
18 changed files with 2252 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ import (
"github.com/rancher/os/config/cloudinit/datasource/metadata/gce"
"github.com/rancher/os/config/cloudinit/datasource/metadata/packet"
"github.com/rancher/os/config/cloudinit/datasource/proccmdline"
"github.com/rancher/os/config/cloudinit/datasource/tftp"
"github.com/rancher/os/config/cloudinit/datasource/url"
"github.com/rancher/os/config/cloudinit/datasource/vmware"
"github.com/rancher/os/config/cloudinit/pkg"
@@ -237,6 +238,8 @@ func getDatasources(datasources []string) []datasource.Datasource {
if root != "" {
dss = append(dss, file.NewDatasource(root))
}
case "tftp":
dss = append(dss, tftp.NewDatasource(root))
case "url":
if root != "" {
dss = append(dss, url.NewDatasource(root))