mirror of
https://github.com/rancher/os.git
synced 2025-08-17 06:17:35 +00:00
Use System Docker during Packet install
This commit is contained in:
parent
897cbb9e9f
commit
e89f4f27e0
@ -6,7 +6,7 @@ INSTALLER_IMAGE=rancher/os:v0.7.0-rc1
|
|||||||
|
|
||||||
tinkerbell_post()
|
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
|
tinkerbell_post 104
|
||||||
@ -106,7 +106,7 @@ umount /mnt/oem
|
|||||||
|
|
||||||
tinkerbell_post 106
|
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.addresses[] | select(.address_family == 4 and .public) | "ADDRESS=\(.address)/\(.cidr)\nGATEWAY=\(.gateway)"')
|
||||||
eval $(echo ${METADATA} | jq -r '.network.interfaces[0] | "MAC=\(.mac)"')
|
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"
|
NETWORK_ARGS="rancher.network.interfaces.bond0.address=$ADDRESS rancher.network.interfaces.bond0.gateway=$GATEWAY rancher.network.interfaces.mac:${MAC}.bond=bond0"
|
||||||
|
Loading…
Reference in New Issue
Block a user