Well that's strange, so tried to multipart it so that it would be able to curl local. But now cloud-init never seems to finish and the host is inaccessible to me.
mutlipart config
Content-Type: multipart/mixed; boundary="===============0432566452=="
MIME-Version: 1.0
--===============0432566452==
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="boot.txt"
#!/bin/sh
- Grab the curl_s3 file in order to grab the protected cloud config
curl -O "http://bucket.s3-us-west-1.amazonaws.com/Public/curl_s3"
- run the referenced curl_s3 to grab our prod-cloud configuration from a private bucket
sh curl_s3 "IAM role" "bucket/Prod/cloud-minimal" "/tmp/prod-cloud"
echo "hello tory" > /tmp/tory
--===============0432566452==
Content-Type: text/x-include-url; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="include.txt"
file:///tmp/prod-cloud
===============0432566452==
And the host based on system log, does not complete it's cloud-init and thus doesn't create the SSH user/key, so I can't access the node, keeps prompting for password, which we know is not set
system.log
#####################
[[32m OK
0m Started Initial cloud-init job (pre-networking).
Starting Initial cloud-init job (metadata service crawler)...
http:// 24.582846 cloud-init
2056: Cloud-init v. 0.7.5 running 'init' at Sun, 15 May 2016 04:10:38 +0000. Up 24.52 seconds.
http:// 24.693352 cloud-init
2056: ci-info: +++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++
http:// 24.697890 cloud-init
2056: ci-info: +--------+------+---------------+---------------+-------------------+
http:// 24.702682 cloud-init
2056: ci-info: | Device | Up | Address | Mask | Hw-Address |
http:// 24.708158 cloud-init
2056: ci-info: +--------+------+---------------+---------------+-------------------+
http:// 24.711779 cloud-init
2056: ci-info: | lo: | True | 127.0.0.1 | 255.0.0.0 | . |
http:// 24.719429 cloud-init
2056: ci-info: | eth0: | True | 100.99.64.170 | 255.255.255.0 | 06:ed:33:a2:ee:f1 |
http:// 24.723517 cloud-init
2056: ci-info: +--------+------+---------------+---------------+-------------------+
http:// 24.727215 cloud-init
2056: ci-info: +++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++++++++++
http:// 24.739695 cloud-init
2056: ci-info: +-------+-------------+-------------+---------------+-----------+-------+
http:// 24.743364 cloud-init
2056: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
http:// 24.747123 cloud-init
2056: ci-info: +-------+-------------+-------------+---------------+-----------+-------+
http:// 24.755840 cloud-init
2056: ci-info: | 0 | 0.0.0.0 | 100.99.64.1 | 0.0.0.0 | eth0 | UG |
http:// 24.759509 cloud-init
2056: ci-info: | 1 | 100.99.64.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U |
http:// 24.763795 cloud-init
2056: ci-info: +-------+-------------+-------------+---------------+-----------+-------+
CentOS Linux 7 (Core)
Kernel 3.10.0-327.10.1.el7.x86_64 on an x86_64
ip-100-99-64-170 login:
##################################
So as you can see cloud-init has not finished and based on the last 7 instances and 2 hours of watching, it never will and thus this is busted.
So what is holding it up, my cloud-minimal is as simple as
###
#cloud-config
output: {all: ">> /var/log/cloud-init-output.log"}
packages:
- wget
#####
No reason that won't work!! hahahaha , there is an answer in here some where!!
Tory