Advertisement
Guest User

Untitled

a guest
Sep 27th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.28 KB | None | 0 0
  1. heat_template_version: 2015-04-30
  2.  
  3. description: Simple template to deploy a single compute instance
  4.  
  5. parameters:
  6.   key_name:
  7.     type: string
  8.     description: Name of an existing KeyPair to enable SSH access to the instances
  9.     default: id_rsa
  10.     constraints:
  11.       - custom_constraint: nova.keypair
  12.         description: Must already exist on your cloud
  13.  
  14.   flavor:
  15.     type: string
  16.     description: The flavor the application is to use
  17.     constraints:
  18.       - custom_constraint: nova.flavor
  19.         description: Must be a valid flavor provided by your cloud provider.
  20.  
  21.   image_id:
  22.     type: string
  23.     description: ID of the image to use to create the instance
  24.     constraints:
  25.       - custom_constraint: glance.image
  26.         description: Must be a valid image on your cloud
  27.  
  28.   faafo_source:
  29.     type: string
  30.     description: The http location of the faafo application install script
  31.     default: https://git.openstack.org/cgit/openstack/faafo/plain/contrib/install.sh
  32.  
  33. resources:
  34.   my_instance:
  35.     type: OS::Nova::Server
  36.     properties:
  37.       key_name: { get_param: key_name }
  38.       image: { get_param: image_id }
  39.       flavor: { get_param: flavor }
  40.       name: https://pastebin.com/raw/hVbif6z9
  41.       user_data:
  42.         get_file: https://pastebin.com/raw/hVbif6z9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement