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

HTTP proxy settings can be set in cloud config

This commit is contained in:
Josh Curl
2016-05-06 16:25:07 -07:00
parent acc2ee297a
commit ae543ab167
11 changed files with 238 additions and 104 deletions

View File

@@ -14,6 +14,7 @@ import (
"github.com/rancher/docker-from-scratch"
"github.com/rancher/os/config"
"github.com/rancher/os/util"
"github.com/rancher/os/util/network"
)
const (
@@ -223,6 +224,10 @@ func RunInit() error {
func(c *config.CloudConfig) (*config.CloudConfig, error) {
return c, dockerlaunch.PrepareFs(&mountConfig)
},
func(c *config.CloudConfig) (*config.CloudConfig, error) {
network.SetProxyEnvironmentVariables(c)
return c, nil
},
initializeSelinux,
sysInit,
}