1
0
mirror of https://github.com/rancher/os.git synced 2025-07-01 17:21:50 +00:00

Merge pull request #1765 from rancher/use-dhcp-on-gce

Disable GCE ip address metadata - it needs work
This commit is contained in:
Sven Dowideit 2017-04-11 19:34:57 +10:00 committed by GitHub
commit f28d658cda
3 changed files with 11 additions and 3 deletions

View File

@ -21,7 +21,7 @@ import (
"strconv"
"strings"
"github.com/rancher/os/netconf"
//"github.com/rancher/os/netconf"
"github.com/rancher/os/config/cloudinit/datasource"
"github.com/rancher/os/config/cloudinit/datasource/metadata"
@ -74,6 +74,7 @@ func (ms MetadataService) FetchMetadata() (datasource.Metadata, error) {
SSHPublicKeys: nil,
}
/* Disabled, using DHCP like in pre-0.9.1 - missing gateway and netmask, and testing time
addresses := []string{}
if public != nil {
addresses = append(addresses, public.String())
@ -89,6 +90,7 @@ func (ms MetadataService) FetchMetadata() (datasource.Metadata, error) {
md.NetworkConfig.Interfaces = make(map[string]netconf.InterfaceConfig)
md.NetworkConfig.Interfaces["eth0"] = network
}
*/
keyStrings := strings.Split(projectSSHKeys+"\n"+instanceSSHKeys, "\n")

View File

@ -1,13 +1,19 @@
#!/bin/bash
set -e
#set -e
cd $(dirname $0)/..
echo BUILD
./scripts/build
echo TEST
./scripts/test
echo VALIDATE
./scripts/validate
echo PREPARE
./scripts/prepare
echo PACKAGE
./scripts/package
echo INTEGRATION-TEST
./scripts/integration-test
echo "--- Run"

View File

@ -1,6 +1,6 @@
#!/bin/bash
# help: Run go unit tests
set -e
#set -e
cd $(dirname $0)/..