heat-templates/hot/software-config/example-templates/cirros-example
rabi a276f088ce Make cirros-example v3 compatible
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
2017-08-01 14:42:43 +05:30
..
init.d Make cirros-example v3 compatible 2017-08-01 14:42:43 +05:30
rc3.d Add example of SoftwareDeployments with cirros 2014-07-14 22:52:32 +01:00
cirros-hello-world.yaml Add example of SoftwareDeployments with cirros 2014-07-14 22:52:32 +01:00
README.rst Use 'openstack' commands instead in docs 2017-01-03 06:42:36 +00:00

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:

  1. wget http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
  2. virt-copy-in -a cirros-0.3.2-x86_64-disk.img init.d/heat-deploy-hook /etc/init.d
  3. virt-copy-in -a cirros-0.3.2-x86_64-disk.img rc3.d/S99-heat-deploy-hook /etc/rc3.d
  4. openstack image create cirros-0.3.2-sc --disk-format=qcow2 --container-format=bare < cirros-0.3.2-x86_64-disk.img
  5. 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.