summaryrefslogtreecommitdiffstats
path: root/src/config/general.h
diff options
context:
space:
mode:
authorMichael Brown2017-01-23 15:41:22 +0100
committerMichael Brown2017-01-23 15:43:20 +0100
commitde85336abb7861e4ea4df2e296eb33d179c7c9bd (patch)
treed155d26521ee1a4ae45e3baeaa099756ffcf43bc /src/config/general.h
parent[virtio] Use separate RX and TX empty header buffers (diff)
downloadipxe-de85336abb7861e4ea4df2e296eb33d179c7c9bd.tar.gz
ipxe-de85336abb7861e4ea4df2e296eb33d179c7c9bd.tar.xz
ipxe-de85336abb7861e4ea4df2e296eb33d179c7c9bd.zip
[cloud] Add ability to retrieve Google Compute Engine metadata
For some unspecified "security" reason, the Google Compute Engine metadata server will refuse any requests that do not include the non-standard HTTP header "Metadata-Flavor: Google". Attempt to autodetect such requests (by comparing the hostname against "metadata.google.internal"), and add the "Metadata-Flavor: Google" header if applicable. Enable this feature in the CONFIG=cloud build, and include a sample embedded script allowing iPXE to boot from a script configured as metadata via e.g. # Create shared boot image make bin/ipxe.usb CONFIG=cloud EMBED=config/cloud/gce.ipxe # Configure per-instance boot script gcloud compute instances add-metadata <instance> \ --metadata-from-file ipxeboot=boot.ipxe Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config/general.h')
-rw-r--r--src/config/general.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/general.h b/src/config/general.h
index be0845f6..fb1ac93f 100644
--- a/src/config/general.h
+++ b/src/config/general.h
@@ -78,6 +78,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#define HTTP_AUTH_BASIC /* Basic authentication */
#define HTTP_AUTH_DIGEST /* Digest authentication */
//#define HTTP_ENC_PEERDIST /* PeerDist content encoding */
+//#define HTTP_HACK_GCE /* Google Compute Engine hacks */
/*
* 802.11 cryptosystems and handshaking protocols