heat_template_version: 2015-10-15 description: This is a Heat template parameters: key_name: type: string description : Name of a key pair to enable SSH access to instances. default: my_key flavor: type: string description: Flavor to use for the WordPress server. constraints: - custom_constraint: nova.flavor default: 4 GB Performance image: type: string description: > Name or ID of the image to use for the LAMP server. The image must have the software config agents baked-in. default: f4bbbce2-50b0-4b07-bf09-96c175a45f4b resources: lamp_config: type: OS::Heat::SoftwareConfig properties: group: script config: | #!/bin/bash -v export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -y apache2 mysql-server-5.5 php5 php-pear php5-mysql echo "" > /var/www/html/info.php lamp_deploy: type: OS::Heat::SoftwareDeployment properties: signal_transport: TEMP_URL_SIGNAL config: get_resource: lamp_config server: get_resource: lamp_server lamp_server: type: OS::Nova::Server properties: image: {get_param: image} flavor: 2 GB Performance key_name: {get_param: key_name} software_config_transport: POLL_TEMP_URL user_data_format: SOFTWARE_CONFIG config_drive: True outputs: server_php_info: description: URL for PHP info on LAMP server value: str_replace: template: http://host/info.php params: host: {get_attr: [lamp_server, accessIPv4]}