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

Use System Docker during Packet install

This commit is contained in:
Josh Curl 2016-10-05 13:45:13 -07:00
parent 897cbb9e9f
commit e89f4f27e0
No known key found for this signature in database
GPG Key ID: 82B504B9BCCFA677

View File

@ -6,7 +6,7 @@ INSTALLER_IMAGE=rancher/os:v0.7.0-rc1
tinkerbell_post()
{
docker run rancher/curl -X POST -H "Content-Type: application/json" -d "{'type':'provisioning.$1'}" ${TINKERBELL_URL}
system-docker run rancher/curl -X POST -H "Content-Type: application/json" -d "{'type':'provisioning.$1'}" ${TINKERBELL_URL}
}
tinkerbell_post 104
@ -106,7 +106,7 @@ umount /mnt/oem
tinkerbell_post 106
METADATA=$(docker run rancher/curl -sL https://metadata.packet.net/metadata)
METADATA=$(system-docker run rancher/curl -sL https://metadata.packet.net/metadata)
eval $(echo ${METADATA} | jq -r '.network.addresses[] | select(.address_family == 4 and .public) | "ADDRESS=\(.address)/\(.cidr)\nGATEWAY=\(.gateway)"')
eval $(echo ${METADATA} | jq -r '.network.interfaces[0] | "MAC=\(.mac)"')
NETWORK_ARGS="rancher.network.interfaces.bond0.address=$ADDRESS rancher.network.interfaces.bond0.gateway=$GATEWAY rancher.network.interfaces.mac:${MAC}.bond=bond0"