a276f088ce
This example seems broken. Though it will work if you change the auth_url to point to /v2.0 rather than /v3, it's better to make it work with v3 (the default now for all keystone deployments). Change-Id: I411a0f50ae50ee5b7c2564a7764ee9a01b00afea |
||
---|---|---|
.. | ||
init.d | ||
rc3.d | ||
cirros-hello-world.yaml | ||
README.rst |
Simple Cirros example
This directory contains a very simple proof-of-concept hook script and template which shows how you can use SoftwareDeployment resources with a cirros image (which doesn't contain cloud-init or python), which may be useful for testing.
Since cirros images don't currently support multi-part mime user-data, it's necessary to inject the hook script to the image and upload the modified image to glance:
- wget http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
- virt-copy-in -a cirros-0.3.2-x86_64-disk.img init.d/heat-deploy-hook /etc/init.d
- virt-copy-in -a cirros-0.3.2-x86_64-disk.img rc3.d/S99-heat-deploy-hook /etc/rc3.d
- openstack image create cirros-0.3.2-sc --disk-format=qcow2 --container-format=bare < cirros-0.3.2-x86_64-disk.img
- openstack stack create sc1 -t cirros-hello-world.yaml --parameter "image=cirros-0.3.2-sc"
NOTE: The hook script is very basic and has a number of TODO items related to security and functionality - please don't use it for "real" deployments, it's intended to enable easier testing and for developer experimentation only.