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:
@@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user