Created
October 12, 2017 13:07
-
-
Save chrigl/733239487a5ec82da2264aa5f1f8e324 to your computer and use it in GitHub Desktop.
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: 2015-04-30 | |
resources: | |
network: | |
type: OS::Neutron::Net | |
properties: | |
name: ceph_dev_net | |
subnet: | |
type: OS::Neutron::Subnet | |
properties: | |
name: ceph_dev_subnet | |
dns_nameservers: | |
- 8.8.8.8 | |
- 8.8.4.4 | |
network_id: {get_resource: network} | |
ip_version: 4 | |
cidr: 10.0.0.0/24 | |
allocation_pools: | |
- {start: 10.0.0.100, end: 10.0.0.250} | |
router: | |
type: OS::Neutron::Router | |
properties: | |
external_gateway_info: | |
network: 54258498-a513-47da-9369-1a644e4be692 | |
name: ceph_dev_router | |
router_subnet_bridge: | |
type: OS::Neutron::RouterInterface | |
depends_on: subnet | |
properties: | |
router_id: { get_resource: router } | |
subnet: { get_resource: subnet } | |
secgrp_ssh_icmp: | |
type: OS::Neutron::SecurityGroup | |
properties: | |
description: allow incoming ssh and icmp traffic from anywhere. | |
name: allow incoming | |
rules: | |
- { direction: ingress, remote_ip_prefix: 0.0.0.0/0, port_range_min: 22, port_range_max: 22, protocol: tcp } | |
- { direction: ingress, protocol: icmp } | |
port: | |
type: OS::Neutron::Port | |
properties: | |
network_id: { get_resource: network } | |
fixed_ips: | |
- subnet_id: { get_resource: subnet } | |
security_groups: [ {get_resource: secgrp_ssh_icmp }, default ] | |
fip: | |
type: OS::Neutron::FloatingIP | |
properties: | |
floating_network: provider | |
fip2server1: | |
type: OS::Neutron::FloatingIPAssociation | |
properties: | |
floatingip_id: { get_resource: fip } | |
port_id: { get_resource: port } | |
volume1: | |
type: OS::Cinder::Volume | |
properties: | |
name: geht_nicht1 | |
size: 1 | |
volume2: | |
type: OS::Cinder::Volume | |
properties: | |
name: geht_nicht2 | |
size: 2 | |
volume3: | |
type: OS::Cinder::Volume | |
properties: | |
name: geht_nicht3 | |
size: 3 | |
volume2server_1: | |
type: OS::Cinder::VolumeAttachment | |
properties: | |
instance_uuid: { get_resource: server1 } | |
volume_id: { get_resource: volume1 } | |
depends_on: volume2server_2 | |
volume2server_2: | |
type: OS::Cinder::VolumeAttachment | |
properties: | |
instance_uuid: { get_resource: server1 } | |
volume_id: { get_resource: volume2 } | |
depends_on: volume2server_3 | |
volume2server_3: | |
type: OS::Cinder::VolumeAttachment | |
properties: | |
instance_uuid: { get_resource: server1 } | |
volume_id: { get_resource: volume3 } | |
server1: | |
type: OS::Nova::Server | |
properties: | |
image: Ubuntu 16.04 Xenial Xerus - Latest | |
flavor: m1.small | |
name: server1 | |
key_name: cg | |
networks: | |
- port: { get_resource: port } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment