Configuring Infrastructure
How to configure infrastructure within Lodestar Forge.
After your infrastructure has been created by Forge, it will only include Tailscale and any tools you defined within a custom user-data script. Therefore, how can you configure your infrastructure?
The configuration process involves using Ansible to automate the setup and configuration of your infrastructure. Here's a step-by-step guide on how to configure your infrastructure using Ansible.
Prerequisites
Before you can configure your infrastructure, ensure that you have the following prerequisites:
- The necessary configuration templates within your Forge instance (more information here).
- Infrastructure is created and has the "Running" status.
- A Tailscale IP has been assigned to your infrastructure.
Note:
You can view the tailscale IP address of your infrastructure in the "Networking" section of the infrastructure overview.
Adding Configurations
Once the above prerequisites are met, you can proceed to add configurations to your infrastructure. Here's how.
- With a project selected, select the "Deployments" tab in the sidebar.
- Select the deployment from the deployments table.
- Select the infrastructure you wish to configure from the infrastructure table.
- Click "Edit" then "Add configuration template" in the "Configuration" section.
- Complete the form to add your configuration.
- Click "Save" to confirm the configurations added.
Applying Configurations
Once you have added your configurations, you must apply them to your infrastructure. Below are the steps on how to do this.
- With a project selected, select the "Deployments" tab in the sidebar.
- Select the deployment from the deployments table.
- Click the "Configure" button in the "Deployment Status" section.
- Wait for the configurations to be applied.