Skip to content

Commit

Permalink
EC2: Don't blackhole 169.254.169.254
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jun 30, 2015
1 parent 16406e6 commit 32b9ca3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions nixos/modules/virtualisation/ec2-data.nix
Expand Up @@ -31,8 +31,6 @@ with lib;

script =
''
ip route del blackhole 169.254.169.254/32 || true
wget="wget -q --retry-connrefused -O -"
${optionalString (config.networking.hostName == "") ''
Expand Down Expand Up @@ -67,14 +65,6 @@ with lib;
(umask 077; echo "$key" > /etc/ssh/ssh_host_dsa_key)
echo "$key_pub" > /etc/ssh/ssh_host_dsa_key.pub
fi
${optionalString (! config.ec2.metadata) ''
# Since the user data is sensitive, prevent it from
# being accessed from now on. FIXME: remove at some
# point, since current NixOps no longer relies on
# metadata secrecy.
ip route add blackhole 169.254.169.254/32
''}
'';

serviceConfig.Type = "oneshot";
Expand Down

0 comments on commit 32b9ca3

Please sign in to comment.