Getting Started with Forge
This guide will help you get started with Forge and run your first automation task.
Prerequisites
- Forge installed and running (see Installation Guide)
- Access to the Forge web UI
- Admin user account created
Key Concepts
Before we begin, let's understand some key Forge concepts:
Projects
Projects are containers for organizing your automation work. All resources (templates, tasks, inventories, keys) belong to a project.
Task Templates
Reusable definitions of tasks that can be executed. Templates define what to run (Ansible playbook, Terraform code, script, etc.) and how to run it.
Tasks
Specific instances of task template execution. Each time you run a template, it creates a task with logs and results.
Inventories
Collections of target hosts where tasks will execute. Can be static (file-based) or dynamic (API-based).
Key Store
Secure storage for credentials, SSH keys, and secrets. All credentials are encrypted.
Variable Groups
Environment variables and secrets that can be used by tasks during execution.
Step 1: Create Your First Project
- Log in to Forge
- Click New Project (or Projects → New Project)
- Fill in project details:
- Name: "My First Project"
- Description: (optional)
- Click Create
Step 2: Add Credentials
Before running tasks, you need to add credentials for accessing your systems.
- In your project, navigate to Key Store
- Click New Key
- Choose key type:
- SSH Key - For SSH access to Linux servers
- Login with password - For password-based authentication
- AWS - For AWS cloud access
- Azure - For Azure cloud access
- GCP - For Google Cloud access
- Fill in the required information
- Click Save
Step 3: Add an Inventory
Define the hosts where your tasks will run.
- Navigate to Inventories
- Click New Inventory
- Choose inventory type:
- Static - File-based inventory
- Dynamic - API-based (NetBox, etc.)
- Add hosts manually or import from file
- Click Save
Step 4: Connect a Repository (Optional)
If your playbooks or scripts are in Git:
- Navigate to Repositories
- Click New Repository
- Enter repository URL
- Select authentication method (SSH key, access token, etc.)
- Click Save
Step 5: Create a Task Template
Let's create a simple task template:
- Navigate to Task Templates
- Click New Template
- Choose template type (e.g., Ansible, Shell, Terraform)
- Configure the template:
- Name: "Hello World"
- Repository: (select if using Git)
- Playbook/File: Path to your playbook or script
- Inventory: Select your inventory
- Key: Select your SSH key
- Click Save
Step 6: Run Your First Task
- Find your task template in the list
- Click Run (or Build/ Deploy button)
- Review task parameters
- Click Run Task
- Watch the task execute in real-time
- View logs and results when complete
Next Steps
Now that you've run your first task, explore more features:
- Projects - Learn more about project management
- Task Templates - Create more complex templates
- Compliance - Manage STIG compliance
- Golden Images - Build hardened images
- Schedules - Automate task execution
Common Workflows
Running an Ansible Playbook
- Create project
- Add repository with playbook
- Add inventory with target hosts
- Add SSH key for access
- Create Ansible task template
- Run the template
Building Infrastructure with Terraform
- Create project
- Add repository with Terraform code
- Add cloud provider credentials (AWS, Azure, GCP)
- Create Terraform task template
- Run
terraform planto preview - Run
terraform applyto deploy
Building a Golden Image
- Create project
- Add cloud provider credentials
- Navigate to Golden Images
- Use Visual Builder or import Packer template
- Configure STIG hardening (optional)
- Build the image
- View in Image Catalog
Getting Help
- User Guide - Comprehensive feature documentation
- Administration Guide - System administration
- FAQ - Common questions and troubleshooting