Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heat_template_version: 2013-05-23
- description: Template basilare per creare una macchina virtuale connessa ad una LAN di progetto, con un floating IP e con un volume cinder collegato.
- resources:
- my_volume:
- type: OS::Cinder::Volume
- properties:
- name: "myVolume"
- size: 3
- my_instance:
- type: OS::Nova::Server
- properties:
- name: "myVM"
- key_name: KeyStudenteXY
- image: Ubuntu x86_64
- flavor: m1.small
- security_groups: [SSH-Ping]
- admin_pass: heattest
- networks: [{"network": NetStudenteXY, "fixed_ip": XYZ.XYZ.XYZ.XYZ}]
- my_volume_attachment:
- type: OS::Cinder::VolumeAttachment
- properties:
- volume_id: { get_resource: my_volume }
- instance_uuid: { get_resource: my_instance }
- my_fip:
- type: OS::Nova::FloatingIP
- properties:
- pool: External
- my_fip_association:
- type: OS::Nova::FloatingIPAssociation
- properties:
- floating_ip: { get_resource: my_fip }
- server_id: { get_resource: my_instance }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement