¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
[HOT Template] instance_floatingip_create
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2016-06-28 (È­) 17:43 Á¶È¸ : 2002
                                
# cat > instance_floatingip_create.yaml
heat_template_version: 2015-10-15
description: A load-balancer server
parameters:
  image:
    type: string
    description: Image used for servers
    default: ${IMAGE_ID}
  flavor:
    type: string
    description: flavor used by the servers
    default: ${FLAVOR_ID}
  networks:
    type: string
    description: as_private_net
    default: ${Private_NET_ID}
  subnet:
    type: string
    description: private_subnet
    default: ${SUBNET_ID}
  public_net_id:
    type: string
    description: public_net_id
    default: ${Public_ID}

resources:
  server:
    type: OS::Nova::Server
    properties:
      flavor: {get_param: flavor}
      image: {get_param: image}
      networks:
        - port: { get_resource: public_port }

  public_port:
    type: OS::Neutron::Port
    properties:
      network_id: { get_param: networks }
      fixed_ips:
      - subnet_id: { get_param: subnet }

  floating_ip:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: { get_param: public_net_id }
      port_id: { get_resource: public_port }

outputs:
  server_ip:
    description: IP Address of the load-balanced server.
    value: { get_attr: [server, first_address] }
  floating_ip:
    description: assigned public ip
    value: { get_attr: [ floating_ip, floating_ip_address ] }


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.