Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Basicly there is a block for inputs, a block for resources and a block for outputs.

Heat template for our common infrastructure

For our common infrastructure we do not need any inputs, but we would like to create som resources and give the ID of the created resources as output so that we can use them as inputs for other templates. This can result in a template looking like this:

...

Basically we are here telling heat to create a network for us (line 8-9) with a subnetwork connected to it (line 11-17). The subnetwork should use the address 192.168.0.0/24. Next up we create a router connected to the 'ntnu-internal' network, and attaching it to the newly created subnet. The final resource defined is a security-group allowing incoming ssh-connections from anywhere, incoming ICMP (ie: ping) from anywhere and incoming NFS-connections from any hosts at the supplied subnet.

Actually create the resources defined in our template


Displaying the status of the heat stack.

Student Lab