f3dc4c9380
Disables cloud-init from querying EC2 metadata, or any cloud metadata service. It keeps only the Nocloud and None data sources, which are both expected to be "baked in" to an image. This speeds up boot by 2 minutes on hosts where cloud-init cannot reach the EC2 metadata service. Change-Id: I43522c4a442c0f2fc2044d4898768ceb4f839099
6 lines
201 B
Bash
Executable file
6 lines
201 B
Bash
Executable file
#!/bin/bash
|
|
|
|
printf "%s\t%s\t%s\t%s\n" \
|
|
cloud-init cloud-init/datasources multiselect "NoCloud, None" | \
|
|
debconf-set-selections
|
|
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure cloud-init
|