Skip to content

Instantly share code, notes, and snippets.

@michalskalski
Last active April 6, 2017 09:48
Show Gist options
  • Save michalskalski/989e1791b8582ce7fe93 to your computer and use it in GitHub Desktop.
Save michalskalski/989e1791b8582ce7fe93 to your computer and use it in GitHub Desktop.
description: "Stack built by the yardstick framework for michal on host devel 2016-02-16\
\ 21:03:33.\n All referred generated resources are prefixed with the\
\ template\n name (i.e. demo)."
heat_template_version: '2013-05-23'
outputs:
ares.demo:
description: VM UUID
value: {get_resource: ares.demo}
ares.demo-test-port:
description: Address for interface ares.demo-test-port
value:
get_attr: [ares.demo-test-port, fixed_ips, 0, ip_address]
athena.demo:
description: VM UUID
value: {get_resource: athena.demo}
athena.demo-fip:
description: floating ip athena.demo-fip
value:
get_attr: [athena.demo-fip, ip]
athena.demo-test-port:
description: Address for interface athena.demo-test-port
value:
get_attr: [athena.demo-test-port, fixed_ips, 0, ip_address]
demo-secgroup:
description: ID of Security Group
value: {get_resource: demo-secgroup}
demo-test-subnet:
description: subnet demo-test-subnet ID
value: {get_resource: demo-test-subnet}
resources:
ares.demo:
depends_on: [ares.demo-test-port]
properties:
admin_user: cirros
config_drive: true
flavor: m1.tiny
image: cirros-0.3.3
key_name: {get_resource: demo-key}
name: ares.demo
networks:
- port: {get_resource: ares.demo-test-port}
type: OS::Nova::Server
ares.demo-test-port:
depends_on: [demo-test-subnet, demo-secgroup]
properties:
fixed_ips:
- subnet: {get_resource: demo-test-subnet}
name: ares.demo-test-port
network_id: {get_resource: demo-test}
replacement_policy: AUTO
security_groups: [demo-secgroup]
type: OS::Neutron::Port
athena.demo:
depends_on: [athena.demo-test-port]
properties:
admin_user: cirros
config_drive: true
flavor: m1.tiny
image: cirros-0.3.3
key_name: {get_resource: demo-key}
name: athena.demo
networks:
- port: {get_resource: athena.demo-test-port}
scheduler_hints:
different_host: {get_resource: ares.demo}
type: OS::Nova::Server
athena.demo-fip:
depends_on: [athena.demo-test-port, demo-test-router-if0, demo-secgroup]
properties:
pool: admin_floating_net
type: OS::Nova::FloatingIP
athena.demo-test-port:
depends_on: [demo-test-subnet, demo-secgroup]
properties:
fixed_ips:
- subnet: {get_resource: demo-test-subnet}
name: athena.demo-test-port
network_id: {get_resource: demo-test}
replacement_policy: AUTO
security_groups: [demo-secgroup]
type: OS::Neutron::Port
association:
type: OS::Nova::FloatingIPAssociation
properties:
floating_ip: { get_resource: athena.demo-fip }
server_id: { get_resource: athena.demo }
demo-key:
properties: {name: demo-key, public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0RkXfW6pksd1cZmXuvXZF/Mlqqq3ahIGcGoULOC97XMpu0vdxMpcUwdjwGqMwEXTVyfHidu0l99bLqOCpSUKCmbWx3ONJ+1kqFx4HwsKEWLiyDYqsuMrDeZT1eFjC5avCoTcrIw2wq5NaBb00lDGagNZOeopaL5YIa4+PizEY23+cir24D67NU21Fg3JE92AIeGlNa4j66L3a+lL0hZq74Dilmp42wm4GsbplRO6KJfyaraowHb1X+TmhCjBgHk6M/OJ9yPAroZyJNcwjMAuuxhAYWRuT3SdbnoUR0RG2VhfDh0qNid7vOqLbhKPeaLLFmzkN+9w3WdCp6LbSYt87
yardstick@yardstick.opnfv.org
'}
type: OS::Nova::KeyPair
demo-secgroup:
properties:
description: Group allowing icmp and upd/tcp on all ports
name: demo-secgroup
rules:
- {port_range_max: '65535', port_range_min: '1', protocol: tcp, remote_ip_prefix: 0.0.0.0/0}
- {port_range_max: '65535', port_range_min: '1', protocol: udp, remote_ip_prefix: 0.0.0.0/0}
- {protocol: icmp, remote_ip_prefix: 0.0.0.0/0}
type: OS::Neutron::SecurityGroup
demo-test:
properties: {name: demo-test}
type: OS::Neutron::Net
demo-test-router:
depends_on: [demo-test-subnet]
properties:
external_gateway_info: {network: admin_floating_net}
name: demo-test-router
type: OS::Neutron::Router
demo-test-router-if0:
depends_on: [demo-test-router, demo-test-subnet]
properties:
router_id: {get_resource: demo-test-router}
subnet_id: {get_resource: demo-test-subnet}
type: OS::Neutron::RouterInterface
demo-test-subnet:
depends_on: demo-test
properties:
cidr: 10.0.1.0/24
name: demo-test-subnet
network_id: {get_resource: demo-test}
type: OS::Neutron::Subnet
description: "Stack built by the yardstick framework for michal on host devel 2016-02-16\
\ 21:03:33.\n All referred generated resources are prefixed with the\
\ template\n name (i.e. demo)."
heat_template_version: '2013-05-23'
outputs:
ares.demo:
description: VM UUID
value: {get_resource: ares.demo}
ares.demo-test-port:
description: Address for interface ares.demo-test-port
value:
get_attr: [ares.demo-test-port, fixed_ips, 0, ip_address]
athena.demo:
description: VM UUID
value: {get_resource: athena.demo}
athena.demo-fip:
description: floating ip athena.demo-fip
value:
get_attr: [athena.demo-fip, floating_ip_address]
athena.demo-test-port:
description: Address for interface athena.demo-test-port
value:
get_attr: [athena.demo-test-port, fixed_ips, 0, ip_address]
demo-secgroup:
description: ID of Security Group
value: {get_resource: demo-secgroup}
demo-test-subnet:
description: subnet demo-test-subnet ID
value: {get_resource: demo-test-subnet}
resources:
ares.demo:
depends_on: [ares.demo-test-port]
properties:
admin_user: cirros
config_drive: true
flavor: m1.tiny
image: cirros-0.3.3
key_name: {get_resource: demo-key}
name: ares.demo
networks:
- port: {get_resource: ares.demo-test-port}
type: OS::Nova::Server
ares.demo-test-port:
depends_on: [demo-test-subnet, demo-secgroup]
properties:
fixed_ips:
- subnet: {get_resource: demo-test-subnet}
name: ares.demo-test-port
network_id: {get_resource: demo-test}
replacement_policy: AUTO
security_groups: [demo-secgroup]
type: OS::Neutron::Port
athena.demo:
depends_on: [athena.demo-test-port]
properties:
admin_user: cirros
config_drive: true
flavor: m1.tiny
image: cirros-0.3.3
key_name: {get_resource: demo-key}
name: athena.demo
networks:
- port: {get_resource: athena.demo-test-port}
scheduler_hints:
different_host: {get_resource: ares.demo}
type: OS::Nova::Server
athena.demo-fip:
depends_on: [athena.demo-test-port, demo-test-router-if0, demo-secgroup]
properties:
floating_network: admin_floating_net
port_id: {get_resource: athena.demo-test-port}
type: OS::Neutron::FloatingIP
athena.demo-test-port:
depends_on: [demo-test-subnet, demo-secgroup]
properties:
fixed_ips:
- subnet: {get_resource: demo-test-subnet}
name: athena.demo-test-port
network_id: {get_resource: demo-test}
replacement_policy: AUTO
security_groups: [demo-secgroup]
type: OS::Neutron::Port
demo-key:
properties: {name: demo-key, public_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0RkXfW6pksd1cZmXuvXZF/Mlqqq3ahIGcGoULOC97XMpu0vdxMpcUwdjwGqMwEXTVyfHidu0l99bLqOCpSUKCmbWx3ONJ+1kqFx4HwsKEWLiyDYqsuMrDeZT1eFjC5avCoTcrIw2wq5NaBb00lDGagNZOeopaL5YIa4+PizEY23+cir24D67NU21Fg3JE92AIeGlNa4j66L3a+lL0hZq74Dilmp42wm4GsbplRO6KJfyaraowHb1X+TmhCjBgHk6M/OJ9yPAroZyJNcwjMAuuxhAYWRuT3SdbnoUR0RG2VhfDh0qNid7vOqLbhKPeaLLFmzkN+9w3WdCp6LbSYt87
yardstick@yardstick.opnfv.org
'}
type: OS::Nova::KeyPair
demo-secgroup:
properties:
description: Group allowing icmp and upd/tcp on all ports
name: demo-secgroup
rules:
- {port_range_max: '65535', port_range_min: '1', protocol: tcp, remote_ip_prefix: 0.0.0.0/0}
- {port_range_max: '65535', port_range_min: '1', protocol: udp, remote_ip_prefix: 0.0.0.0/0}
- {protocol: icmp, remote_ip_prefix: 0.0.0.0/0}
type: OS::Neutron::SecurityGroup
demo-test:
properties: {name: demo-test}
type: OS::Neutron::Net
demo-test-router:
depends_on: [demo-test-subnet]
properties:
external_gateway_info: {network: admin_floating_net}
name: demo-test-router
type: OS::Neutron::Router
demo-test-router-if0:
depends_on: [demo-test-router, demo-test-subnet]
properties:
router_id: {get_resource: demo-test-router}
subnet_id: {get_resource: demo-test-subnet}
type: OS::Neutron::RouterInterface
demo-test-subnet:
depends_on: demo-test
properties:
cidr: 10.0.1.0/24
name: demo-test-subnet
network_id: {get_resource: demo-test}
type: OS::Neutron::Subnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment