How to Deploy OpenStack Heat Templates¶
Use the instructions provided here to deploy any of the templates in F5’s heat orchestration template library.
OpenStack CLI¶
Platform Requirements
- python-openstackclient configured with the
python-heatclient
plugin - F5 Heat Plugins for OpenStack
The OpenStack Heat documentation extensively covers creation and management of Heat stacks. This document describes F5’s OpenStack development team’s preferred means of stack creation:
- define a Heat template’s required parameters in a YAML file, and
- deploy the template via the command line.
Note
This example uses the F5-supported Deploy basic load balancer template.
Download the template you want to deploy from the F5-Supported Heat templates library.
Save the definition for each of the template’s required configuration parameters in an environment file.
Example: Environment file for thedeploy-lb
Heat template¶1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
parameters: client_server_image: <image-name> client_server_flavor: <nova-flavor> key_name: <ssh-hey-name> client_server_sec_group: open client_network: <client_vlan> server_network: <server_vlan> bigip_un: $BIGIP_USER bigip_pw: $BIGIP_PASS vs_name: virtual_server1 pool_name: pool1 bigip_fip: vs_vip: vs_port: 443 pool_member_port: 8080
Replace the following parameters with the appropriate values for your environment.
image
flavor
ssh-key
security group
network
Tip
Protect your BIG-IP login information.
Store your username and password as environment variables and reference them in your environment file.
Create the Heat stack.
openstack stack create -f deploy-lb.yaml -e deploy-lb.params.yaml
OpenStack Horizon¶
Follow the directions below to deploy a Heat stack using the OpenStack Horizon dashboard.
- Go to .
- Click Launch Stack.
- Choose the Template File from its location on your machine, then click Next.
- Provide the information required for the Heat engine to build your stack.
- Click Launch.
Hint
In the Stacks table, the status changes to Create complete when the deployment finishes.