Skip to content

Templates

Dune deployments are done through yaml templates (IaC). For better reusability there are two types templates which can be composed together. The templates are versioned and stored in Dune for easy selection when someone want to rollout a new deployment.

Deployment Template

The deployment template bundles one or more Resource Group Templates and describes the complete deployment (Application infrastructure)

Example:

  • The Booking App Deployment template combines two Resource Group Templates Booking Web and Generic Sql Server (see Resource Group Templates) which together describe the application infrastructure for the Bookings App.

Allowed Environments

Every Deployment template needs to specify which environments it allows. If the allowed environments are Dev and Test, Dune will only allow deployment of the template to resource providers which support Dev and Test.

More about Environments

Allowed Resource Providers

Every Deployment template needs to specify which resource providers it allows. Deployments of the template are only possible to allowed Resource Providers which also support an environment specified in the template allowed environments.

More about Resource Providers

Resource Group Template

The resource group template defines one or more resources like VirtualMachines, ServiceAccounts, Groups, etc.

Example:

  • The Booking Web Resource Group Template describes a Virtual machine with an IIS which runs a booking website
  • The Generic Sql Server Resource Group Template describes a Virtual machine with an installed MSSQL instance. This template is universal a can be used in many Deployment Templates

Tip

Interested in more details about templating and the detailed yaml schema? Read on in our template section