Configuration Templates

Ansible templates used for configuring infrastructure.

Configuration templates are used to configure infrastructure resources using Ansible. They are written in yaml, however, can utilise custom variables (covered here).

Default Configuration Templates

We understand that you might want to get started straight away. To do so, you can use the default configuration templates provided by Forge. These templates are designed to get you up and running quickly, with minimal changes required.

The default configuration templates available in Forge are outlined below.

NameDescription
Nginx InstallA template for installing and configuring nginx.
Sliver C2 InstallA template for installing and configuring sliver C2.
Mythic C2 InstallA template for installing and configuring Mythic C2.
Docker InstallA template for installing and configuring Docker.
Elastic Stack InstallA template for installing Elastic Stack. Requires docker install first.
Filebeat InstallA template for installing and configuring Filebeat.

Creating A Configuration Template

To create a new configuration template, follow these steps.

  1. Select your account in the bottom left corner of the Forge dashboard.
  2. Click the "Settings" button.
  3. Select the "Configuration Templates" tab, then "Create Template".
  4. Complete the form to add your new template.

Creating a new configuration template in Forge

Important Considerations

Whilst Forge aims to provide a seamless experience when applying configuration templates, it is important to note that some adjustments may be required when bringing your own configuration templates into Forge.

Important:

Failing to follow these guidelines may result in unexpected behavior or errors during deployment.

Hosts

There is no need to add the hosts block to your configuration templates. Forge will automatically manage this.

Inventory Files

Similar to above, Forge will automatically manage the assignment of hosts when configuring your infrastructure. Therefore, there is no need to create or modify inventory.yml files.

Configuration Template Variables

The following variables are available for use in configuration templates.

NameDescription
infrastructure-idA unique identifier assigned to the infrastructure created.
textBasic text
numberBasic number.
private-ipPrivate IP address of a host.
public-ipPublic IP address of a host.
tailscale-ipTailscale IP address of a host.
domainA domain tracked within Forge.
fileA file path, of a file created within Forge.