Advertisement
alvise72

Esercitazione Heat: esempio base

Oct 1st, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.86 KB | None | 0 0
  1. heat_template_version: 2013-05-23
  2.  
  3. description: Template basilare per creare due macchine virtuali connesse ad una LAN di progetto. Cambiare XY col numero della propria postazione; cambiare XYZ.XYZ.XYZ.XYZ con un IP a scelta appartenente alla propria subnet.
  4.  
  5. resources:
  6.   my_instance_1:
  7.     type: OS::Nova::Server
  8.     properties:
  9.       name: "myVM 1"
  10.       admin_pass: heattest1
  11.       key_name: KeyStudenteXY
  12.       image: "Fedora x86_64"
  13.       flavor: m1.small
  14.       security_groups: [default, SSH-Ping]
  15.       networks:
  16.           - network: NetStudenteXY
  17.  
  18.   my_instance_2:
  19.     type: OS::Nova::Server
  20.     properties:
  21.       name: "myVM 2"
  22.       admin_pass: heattest2
  23.       key_name: KeyStudenteXY
  24.       image: "Ubuntu x86_64"
  25.       flavor: m1.medium
  26.       security_groups: [SSH-Ping]
  27.       networks: [{"network": NetStudenteXY, "fixed_ip": XYZ.XYZ.XYZ.XYZ}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement