1
0
mirror of https://github.com/rancher/os.git synced 2025-08-19 07:19:05 +00:00

Run cloud-init after networking

This commit is contained in:
Darren Shepherd 2015-02-23 14:30:51 -07:00
parent f6b2c8489f
commit db94dfa2d1

View File

@ -69,6 +69,14 @@ func NewConfig() *Config {
"-v=/lib/modules:/lib/modules:ro " + "-v=/lib/modules:/lib/modules:ro " +
"udev", "udev",
}, },
{
Id: "network",
Cmd: "--name=network " +
"--cap-add=NET_ADMIN " +
"--net=host " +
"--rm " +
"network",
},
{ {
Id: "cloud-init", Id: "cloud-init",
Cmd: "--name=cloud-init " + Cmd: "--name=cloud-init " +
@ -80,14 +88,6 @@ func NewConfig() *Config {
"cloudinit", "cloudinit",
ReloadConfig: true, ReloadConfig: true,
}, },
{
Id: "network",
Cmd: "--name=network " +
"--cap-add=NET_ADMIN " +
"--net=host " +
"--rm " +
"network",
},
{ {
Id: "ntp", Id: "ntp",
Cmd: "--name=ntp " + Cmd: "--name=ntp " +