summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-07-26 13:54:56 -0400
committerScott Moser <smoser@ubuntu.com>2011-07-26 13:54:56 -0400
commitcf65c6c8e0da58698139223888f23adf7093d12f (patch)
tree8ea230e3727ba81ef065f6614327428370abfc60 /config
parent155e519a63703183823ef9368e2fdb3a6b7b0c0a (diff)
downloadvyos-cloud-init-cf65c6c8e0da58698139223888f23adf7093d12f.tar.gz
vyos-cloud-init-cf65c6c8e0da58698139223888f23adf7093d12f.zip
include-once: fixups found in testing
at this point, the following user-data file in /var/lib/cloud/seed/nocloud-net/user-data will do what you would expect: $ cat > /var/lib/cloud/seed/nocloud-net/user-data <<EOF #include-once http://169.254.169.254/2011-01-01/user-data EOF $ python -c \ 'import boto.utils, pprint; pprint.pprint(boto.utils.get_instance_metadata())' | sudo tee /var/lib/cloud/seed/nocloud-net/meta-data Then, $ sudo sh -c 'for i in /var/lib/cloud/*; do [ ${i##*/} = "seed" ] && continue; rm -Rf "$i"; done' $ sudo reboot You will then find a file in /var/lib/cloud/instance/data/urlcache/ that has the contents of user-data from the metadata service. It will not be downloaded again as long as that file is present.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions