diff options
author | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-01-04 16:50:05 +0100 |
---|---|---|
committer | AmineChikhaoui <amine.chikhaoui91@gmail.com> | 2018-01-04 16:50:05 +0100 |
commit | 5dba59d494b12c9f759fb7b01859d45e597a049b (patch) | |
tree | 96c1f1de92d1393dc458f727594aa12f5db6eae6 | |
parent | b85c083c995cfedbaf128fbfb17364013e90856b (diff) | |
download | nixlib-5dba59d494b12c9f759fb7b01859d45e597a049b.tar nixlib-5dba59d494b12c9f759fb7b01859d45e597a049b.tar.gz nixlib-5dba59d494b12c9f759fb7b01859d45e597a049b.tar.bz2 nixlib-5dba59d494b12c9f759fb7b01859d45e597a049b.tar.lz nixlib-5dba59d494b12c9f759fb7b01859d45e597a049b.tar.xz nixlib-5dba59d494b12c9f759fb7b01859d45e597a049b.tar.zst nixlib-5dba59d494b12c9f759fb7b01859d45e597a049b.zip |
Fixes https://github.com/NixOS/nixops/issues/756.
Seems the google compute metadata service behavior changed a bit recently which caused this issue ? see: https://cloud.google.com/compute/docs/storing-retrieving-metadata
-rw-r--r-- | nixos/modules/virtualisation/google-compute-image.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/google-compute-image.nix b/nixos/modules/virtualisation/google-compute-image.nix index e3b3e6a5f4ab..4e137e6c3121 100644 --- a/nixos/modules/virtualisation/google-compute-image.nix +++ b/nixos/modules/virtualisation/google-compute-image.nix @@ -211,7 +211,7 @@ in echo "Obtaining SSH keys..." mkdir -m 0700 -p /root/.ssh AUTH_KEYS=$(${mktemp}) - ${wget} -O $AUTH_KEYS http://metadata.google.internal/computeMetadata/v1/project/attributes/sshKeys + ${wget} -O $AUTH_KEYS --header="Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/sshKeys if [ -s $AUTH_KEYS ]; then # Read in key one by one, split in case Google decided |