On Saturday, 25 October 2014 20:33:32 UTC+1, Chris Church wrote:
>
> The file lookup plugin is your friend.
>

It is – if one wishes to supply text-based user data. Unfortunately, I have 
a requirement to provide a binary blob of user data, and the file lookup 
plugin does not seem to handle that – looking at the source code, it 
expects the file to be a UTF8-encoded text file.

What I’d like to do is make use of FreeBSD’s configinit capability, which 
can treat the user data as a tar file, extract it, and then process each of 
the contained files. This is documented here:

http://www.daemonology.net/blog/2013-12-09-FreeBSD-EC2-configinit.html

As I mention in the comments on that page, I did try passing the contents 
of a base64-encoded tar file (via the file lookup plugin) in as the 
user_data parameter, but (unsurprisingly), that gets passed-through as-is 
(i.e. still base64-encoded) to the ec2 instance user data, whereas I need 
the user data to be set to the raw binary data of the unencoded tar file.

Now, the Ansible ec2 module documentation specifically says that the 
user_data parameter is an ‘opaque blob of data which is made available to 
the ec2 instance’, so it is obviously anticipating that directly passing a 
binary blob should be possible. The question, though, is how?

Any help would be greatly appreciated. I am new to both Ansible and EC2, so 
it is entirely possible that I am missing something blindingly obvious.

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/231483e8-4713-4a37-b716-2df7f70646a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to