Here i uploaded Openstack Heat template files that can be used for WebRTC Gateway deployment in Openstack cloud. You need to make your gateway server pulls its configuration on boot using curl from the standard metadata service (URL: http://169.254.169.254/latest/meta-data/) and stores the configuration in its database.This is systemd oneshot script. Then the gateway service starts after the boot script.
The template creates autoscaling group with policies and alarms. DELETE action is deployed for clean shutdown so when the server is determined to be killed, it cleans itself and signal Heat on completion. The image is built with Heat agents using diskimage-builder which is licensed under the Apache License, Version 2.0. Here i wrote an article on how to build your image for use with Heat using diskimage-builder.
To execute the template you need to have Heat client installed:
- Source your keystone RC file
- Assuming all template files in the same directory. Execute this :
# heat stack-create Stack-01 -f MainTemplate.yaml -e environment.yaml
To know if the stack is successfully created or not, go to the control panel.Then click on the orchestration menu –> stacks.
You will have something like this:
The status must be Complete. This is a confirmation that all resources are created successfully.
Then to see more details, click on your stack. Now you can see the topology:
Click on “Overview” tab to get general information about the stack: name, id , description, status, outputs, stack parameters, and launch parameters.
Click on “Resources” tab to see the created resources:
The last tab is the “Events”: “Create In Progress”, “Create Complete”,…
You can get the same information using the heat client (python-heatclient).