Ask Your Question
0

How to attached binary file as a userdata

asked 2016-03-22 00:24:10 -0600

Kalaivanan gravatar image

Hi all,

I had usecase where I need to attached binary file as a userdata. But When I tried to attach the binary file I am getting following error,

"There was a problem parsing the script: 'ascii' codec can't decode byte 0x82 in position 1: ordinal not in range(128)"

-Kalaivanan.L

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-22 12:32:18 -0600

Davide gravatar image

Hi,

there are a two ways to pass a binary file to cloud-init, take a look at this:

http://cloudinit.readthedocs.org/en/l...

edit flag offensive delete link more

Comments

HI Davide, when i give "write_files:" in cloud config it will write a file to mentioned path in the instance which i have brought up. But my requirement is i have to upload binary file into userdata, on instance start i will do wget to ip 169.x.x.x to get that binary file.

Kalaivanan gravatar imageKalaivanan ( 2016-03-23 05:36:43 -0600 )edit

Hi Davide "Writing out arbitrary files" is the one way to pass binary file, and what is the another way ?

Kalaivanan gravatar imageKalaivanan ( 2016-03-23 23:35:25 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-03-22 00:24:10 -0600

Seen: 332 times

Last updated: Mar 22 '16