Skip to content

Commit

Permalink
feat: upgrade script modules
Browse files Browse the repository at this point in the history
  • Loading branch information
KoLiBer committed Dec 13, 2023
1 parent 47ed7d2 commit 3e0477a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version: "17"
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: "1.1.4"
terraform_version: "1.6.5"
- uses: actions/cache@v2
with:
path: .terraform/
Expand Down
20 changes: 0 additions & 20 deletions .terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ locals {

module "install" {
source = "cktf/script/module"
version = "1.0.1"
version = "1.1.0"
for_each = local.servers

connection = each.value.connection
Expand All @@ -49,7 +49,7 @@ module "install" {

module "configs" {
source = "cktf/script/module"
version = "1.0.1"
version = "1.1.0"
for_each = local.servers
depends_on = [module.install]

Expand All @@ -63,7 +63,7 @@ module "configs" {

module "addons" {
source = "cktf/script/module"
version = "1.0.1"
version = "1.1.0"
for_each = var.addons
depends_on = [module.configs]

Expand Down
6 changes: 1 addition & 5 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
terraform {
required_version = ">= 0.14.0"
required_version = ">= 1.4.0"
required_providers {
ssh = {
source = "loafoe/ssh"
version = ">= 2.2.0"
}
null = {
source = "hashicorp/null"
version = ">= 3.0.0"
}
random = {
source = "hashicorp/random"
version = ">= 3.0.0"
Expand Down

0 comments on commit 3e0477a

Please sign in to comment.