node tipsΒΆ

When defining a value for the name: property of a firewall, load balancer, network, or server node in your templates you have a few options:

  1. Set the name: value of the node to a constant value.
node_templates:
 db_vm:
   type: dcm.nodes.Server
   properties:
     name: "db-server"
  1. Set the name: of the node to an input field value defined in your template inputs: section. The value for that input field entered by the DCM console user can be retrieved using the get_input function.
node_templates:
 db_vm:
   type: dcm.nodes.Server
   properties:
     name: { get_input: name }
  1. Set the name: of the node using the func_join string join function to a combination of an input field retrieved using the get_input function, and a constant.
node_templates:
 db_vm:
   type: dcm.nodes.Server
   properties:
     name: { func_join: ["-", [{ get_input: name }, "db-server"]] }