Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

example metadata #14

Closed
bu3alwa opened this issue Jul 11, 2019 · 3 comments
Closed

example metadata #14

bu3alwa opened this issue Jul 11, 2019 · 3 comments

Comments

@bu3alwa
Copy link

bu3alwa commented Jul 11, 2019

Just a heads up to this command

$(sed 's~NETWORK_CONFIG~'"$(gzip -c9 <network.config.yaml | \ base64)"'~' <metadata.json | gzip -9 | base64)

it was causing me issues and took me a while to figure it out. base64 needs a flag -w0 or else it might error out for some people.

@akutz
Copy link
Contributor

akutz commented Jul 11, 2019

Hi @madmanali93,

Thanks! What it really needs to be is:

$(sed 's~NETWORK_CONFIG~'"$(gzip -c9 <network.config.yaml | { base64 -w0 2>/dev/null || base64; } )"'~' <metadata.json | gzip -9 | { base64 -w0 2>/dev/null || base64; })

That way it works on both Linux and macOS.

@bu3alwa
Copy link
Author

bu3alwa commented Jul 11, 2019

Thanks I'll start using that. Hope you could update the readme for other people that might get the issue.

@akutz
Copy link
Contributor

akutz commented Aug 11, 2021

This issue is being closed because this datasource has been merged into cloud-init (canonical/cloud-init#953):

Component Source Tests
Datasource DataSourceVMware.py test_vmware.py
Identification ds-identify test_ds_identify.py
Documentation vmware.rst

In order to participate in the growth of this datasource moving forward, please:

Once again, many thanks to the wonderful community that has grown around this datasource, and I look forward to seeing everyone in the new cloud-init forums!

@akutz akutz closed this as completed Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants