Skip to content

Commit 30f8080

Browse files
committed
feat: update lock files using tofu and change on modules
1 parent 7c2e607 commit 30f8080

8 files changed

Lines changed: 53 additions & 27 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repos:
66
- id: check-yaml
77
- id: end-of-file-fixer
88
- id: trailing-whitespace
9+
- id: detect-private-key
910
- repo: https://github.com/gitleaks/gitleaks
1011
rev: v8.30.0
1112
hooks:
@@ -14,10 +15,11 @@ repos:
1415
rev: v1.99.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
1516
hooks:
1617
- id: terraform_validate
18+
args:
19+
- --hook-config=--tf-path=tofu
1720
- id: terraform_fmt
21+
- id: terraform_tflint
1822
args:
23+
- --hook-config=--tf-path=tofu
1924
- --args=-no-color
2025
- --args=-diff
21-
- id: terraform_docs
22-
args:
23-
- --args=--output-mode=replace

.terraform.lock.hcl

Lines changed: 12 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ plugin "azurerm" {
1515
source = "github.com/terraform-linters/tflint-ruleset-azurerm"
1616
}
1717

18-
# FIXME: USE rules to overide the warnings
18+
# FIXME: USE rules to override the warnings
1919
# Overriding the terraform_required_version
2020
rule "terraform_required_version" {
2121
enabled = false

mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[tools]
22
terragrunt = "0.99.4"
3+
opentofu = "1.11.5"

modules/az_network/providers.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa
2+
terraform {
3+
required_version = ">= 1.6.0"
4+
5+
required_providers {
6+
azurerm = {
7+
source = "hashicorp/azurerm"
8+
version = "~> 4.58.0"
9+
}
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa
2+
terraform {
3+
required_version = ">= 1.6.0"
4+
5+
required_providers {
6+
azurerm = {
7+
source = "hashicorp/azurerm"
8+
version = "~> 4.58.0"
9+
}
10+
}
11+
}

providers.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ terraform {
99
}
1010
}
1111
}
12-
13-
provider "azurerm" {
14-
features {}
15-
}

terragrunt.hcl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ terraform {
2828
}
2929
}
3030
}
31-
32-
provider "azurerm" {
33-
features {}
34-
}
3531
EOF
3632
}
3733

@@ -41,3 +37,15 @@ generate "providers" {
4137
if_exists = "overwrite_terragrunt"
4238
contents = local.azure_provider_config
4339
}
40+
41+
generate "provider-az-network" {
42+
path = "modules/az_network/providers.tf"
43+
if_exists = "overwrite_terragrunt"
44+
contents = local.azure_provider_config
45+
}
46+
47+
generate "provider-az-virtual-machine" {
48+
path = "modules/az_virtual_machine/providers.tf"
49+
if_exists = "overwrite_terragrunt"
50+
contents = local.azure_provider_config
51+
}

0 commit comments

Comments
 (0)