/one-vm-initial.yml Secret
Last active
October 22, 2015 13:02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
# Copyright 2014 Zuercher Hochschule fuer Angewandte Wissenschaften | |
# All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
# License for the specific language governing permissions and limitations | |
# under the License. | |
description: | | |
Deploys the RCB service instance resources. | |
parameters: | |
image: | |
type: string | |
description: Server image id to use | |
default: monasca-agent-ubu14.04 | |
flavor: | |
description: Server flavor id to use | |
type: string | |
default: m1.small | |
constraints: | |
- allowed_values: | |
- m1.tiny | |
- m1.small | |
- m1.medium | |
description: must be a valid OpenStack flavor. | |
sshkey: | |
description: The ssh key name to use with all SM VMs | |
type: string | |
default: dudo | |
label: SSH Key | |
network_id: | |
description: The network to attach the RCB service to | |
type: string | |
default: 89c0261f-7351-42db-b6c7-80f0cea03c75 | |
label: Network ID | |
public_net: | |
type: string | |
description: > | |
ID of public network net04_ext | |
default: 77e659dd-f1b4-430c-ac6f-d92ec0137c85 | |
username: | |
type: string | |
description: > | |
username for monasca | |
password: | |
type: string | |
description: > | |
password for monasca | |
tenant: | |
type: string | |
description: > | |
tenant for monasca | |
service_id: | |
type: string | |
description: > | |
unique identifier of a service instance (e.g. uuid) | |
resources: | |
rcb_si_security_group: | |
type: "AWS::EC2::SecurityGroup" | |
properties: | |
GroupDescription: "RCB SI public ports" | |
SecurityGroupIngress: | |
- {"CidrIp": 0.0.0.0/0, "FromPort": "22", "ToPort": "22", "IpProtocol": "tcp"} | |
rcb_port_mgmt: | |
type: OS::Neutron::Port | |
properties: | |
network_id: { get_param: network_id } | |
security_groups: [{ get_resource: rcb_si_security_group }] | |
rcb_floating_ip: | |
type: OS::Neutron::FloatingIP | |
properties: | |
floating_network_id: { get_param: public_net } | |
port_id: { get_resource: rcb_port_mgmt } | |
rcb_si: | |
type: OS::Nova::Server | |
properties: | |
name: host1 | |
image: { get_param: image } | |
flavor: { get_param: flavor } | |
key_name: { get_param: sshkey } | |
networks: | |
- port : { get_resource: rcb_port_mgmt } | |
user_data_format: RAW | |
user_data: | |
str_replace: | |
template: | | |
#!/bin/sh | |
monasca-setup --username monasca_username --password monasca_password --project_name monasca_tenant --service service_id --keystone_url http://bart.cloudcomplab.ch:35357/v3 | |
params: | |
monasca_username: { get_param: username } | |
monasca_password: { get_param: password } | |
monasca_tenant: { get_param: tenant } | |
service_id: { get_param: service_id } | |
outputs: | |
mcn.endpoint.rcb.dashboard: | |
description: "IP addresses of the RCB service." | |
value: sample |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment