Skip to content

This is the setup for my homelab, I expand this as I expand my homelab.

License

Notifications You must be signed in to change notification settings

JanSolo1/homelab-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Setup Project

This project contains the Terraform and Terragrunt configurations for managing Homelab resources. Currently this is only for cloudflare records.

Terraform

The terraform directory contains the Terraform configurations for the Homelab resources and / or Cloud resources.

Terragrunt

The terragrunt directory contains the Terragrunt configurations. The dev and prod directories contain the environment-specific configurations, and the root-config.hcl file contains the root configuration.

Terragrunt Vars Usage

Example Usage

    your-project
    ├── terraform
    │   ├── app
    │   │   └── main.tf
    └── terragrunt
        ├── dev
        │   ├── app
        │   │   ├── terragrunt.hcl
        │   │   └── env.hcl
        │   └── stage.hcl
        │
        ├── prod
        │   ├── app
        │   │   ├── terragrunt.hcl
        │   │   └── env.hcl
        │   └── stage.hcl
        │ 
        ├── root-config.hcl
        └── vars-config.hcl

secrets.tfvars and vars-config.hcl are configuration files used in Terraform and Terragrunt respectively. They can be used as follow:

env.hcl

locals {
    secret_value = "your_code"
    top_secret_value = "your_code"
}

vars-config.hcl

locals {
    http_address = "http://myip:port/terraform/state"
    http_lock_address = "http://myip:port/terraform/lock"
    http_unlock_address = "http://myip:port/terraform/unlock"
}

About

This is the setup for my homelab, I expand this as I expand my homelab.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages