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

Merge pull request #917 from joshwget/proxy-settings

HTTP proxy settings can be set in cloud config
This commit is contained in:
Darren Shepherd
2016-05-07 12:56:52 -07:00
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,
func(c *config.CloudConfig) (*config.CloudConfig, error) {
return c, syscall.Mount("", "/", "", syscall.MS_SHARED|syscall.MS_REC, "")