-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding a new Terraform module repo
Adding a new Terraform module repo to manage the home router.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
github/lazzurs/repos/terraform-routeros-home-router/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
terraform { | ||
source = "tfr:///mineiros-io/repository/github?version=0.18.0" | ||
} | ||
|
||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
# Indicate what region to deploy the resources into | ||
generate "provider" { | ||
path = "provider.tf" | ||
if_exists = "overwrite_terragrunt" | ||
contents = <<EOF | ||
provider "github" { | ||
owner = "${local.org_vars.github_owner}" | ||
} | ||
terraform { | ||
backend "s3" {} | ||
} | ||
EOF | ||
} | ||
|
||
locals { | ||
org_vars = yamldecode(file(find_in_parent_folders("org.yaml"))) | ||
repo_name = basename(get_terragrunt_dir()) | ||
} | ||
|
||
inputs = { | ||
name = local.repo_name | ||
license_template = "MIT" | ||
gitignore_template = "Terraform" | ||
vulnerability_alerts = true | ||
visibility = "public" | ||
description = "Terraform module for ${local.repo_name}" | ||
has_issues = true | ||
} |