heat_template_version: 2013-05-23 description: > F21, for doing backports parameters: key_name: type: string default: default description : Name of a KeyPair to enable SSH access to the instance instance_type: type: string description: Instance type for Fedora server default: m1.medium constraints: - allowed_values: [m1.small, m1.medium, m1.large] description: instance_type must be one of m1.small, m1.medium or m1.large image_id: type: string description: > Name or ID of the image to use for the fedora default: f21 resources: fedora_instance: type: OS::Nova::Server properties: image: { get_param: image_id } flavor: { get_param: instance_type } key_name: { get_param: key_name } user_data: | #!/bin/bash -v # Add rhpkg and rdopkg repos curl -o /etc/yum.repos.d/rhpkg.repo http://download.devel.redhat.com/rel-eng/dist-git/fedora/rhpkg.repo curl -o /etc/yum.repos.d/rdopkg.repo http://jruzicka01.lab.eng.brq.redhat.com/repos/rdopkg/rdopkg-fedora.repo # Install packages required for build and test yum install -y vim gcc python-devel mariadb-devel libxml2-devel libxslt-devel libffi-devel mongodb-server python-pymongo python-tox gettext python-pip git git-review rhpkg krb5-workstation rdopkg rdopkg-bsources # Bring the world up to date yum -y update # Load in the backporting script mkdir /home/ec2-user/bin curl -o /home/ec2-user/bin/makeenv.sh https://tank.peermore.com/tanks/cdent-rhat/makeenv.sh chown ec2-user /home/ec2-user/bin/makeenv.sh chmod 755 /home/ec2-user/bin/makeenv.sh outputs: ServerIP: description: IP value: str_replace: template: host params: host: { get_attr: [fedora_instance, first_address] }