Created
August 6, 2020 05:03
-
-
Save cloudqubes/0e68b93d294d01aed950eaac1230877c 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: 2016-04-08 | |
description: | |
A VM with two volumes | |
parameters: | |
stack_name: | |
type: string | |
default: test_app | |
OAM_Network: | |
type: string | |
default: oam_net | |
OAM_SubNetwork: | |
type: string | |
default: oam_net_v4 | |
Image: | |
type: string | |
default: bionic-server-cloudimg-amd64 | |
resources: | |
flavor: | |
type: OS::Nova::Flavor | |
properties: | |
name: { get_param: stack_name } | |
vcpus: 16 | |
ram: 16384 | |
disk: 50 | |
extra_specs: { "hw:cpu_policy" : "dedicated", "hw:mem_page_size": "1048576" } | |
vm_test_1: | |
type: OS::Nova::Server | |
properties: | |
name: | |
list_join: ['-', [{get_param: stack_name}, '1']] | |
block_device_mapping_v2: | |
- device_name: vda | |
boot_index: 0 | |
delete_on_termination: False | |
volume_id : "c9c44eae-b5b2-43dd-92c8-47e53eb8bff0" | |
availability_zone: "zone-A" | |
flavor: { get_resource: flavor } | |
networks: | |
- port: { get_resource: vm_test_oam_port_1 } | |
vm_test_oam_port_1: | |
type: OS::Neutron::Port | |
properties: | |
name: | |
list_join: ['-', [{get_param: stack_name}, '1', '1']] | |
network: { get_param: OAM_Network } | |
fixed_ips: | |
- ip_address: "10.10.1.2" | |
port_security_enabled: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment