#include to grab local file via file:///path/file
Not even sure if this is still monitored, nothing local but I've been banging my head.
I figured based on looking at some source, that #include does various curl commands to grab the url
#include
http://
I'm been attempting this
#include
file:///tmp/config <--- is a #cloud-config file
but am getting errors like so
/var/lib/
2016-05-15 06:06:40,324 - util.py[WARNING]: Failed running /var/lib/
2016-05-15 06:06:40,325 - cc_scripts_
2016-05-15 06:06:40,325 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.
Cloud-init v. 0.7.5 finished at Sun, 15 May 2016 06:06:40 +0000. Datasource DataSourceEc2. Up 547.18 seconds
I can absolutely run curl file:///tmp/config from the command line and it gives me my file as expected. But with cloud-init 0.7.5 it actually crashes the process and the instance will not come up (it does not allow for the process to complete ). This partially is explained in "https:/
My multipart file looks like so:
Content-Type: multipart/mixed; boundary=
MIME-Version: 1.0
--=====
Content-Type: text/x-shellscript; charset="us-ascii"
MIME-Version: 1.0
Content-
Content-
#!/bin/sh
# Grab the curl_s3 file in order to grab the protected cloud config
curl -O "http://
# run the referenced curl_s3 to grab our prod-cloud configuration from a private bucket
sh curl_s3 "IAM ROLE" "bucketProd/
--=====
Content-Type: text/x-include-url; charset="us-ascii"
MIME-Version: 1.0
Content-
Content-
file:///tmp/config
--=====
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: