Skip to content

Commit

Permalink
feat(users): rename password variable INPRO-1449
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzlyn committed Dec 14, 2022
1 parent edad4f5 commit 9e29255
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ No resources.
| <a name="input_group_settings"></a> [group\_settings](#input\_group\_settings) | contains all defined group setting templates for Google Groups | n/a | yes |
| <a name="input_groups"></a> [groups](#input\_groups) | contains objects representing all defined Google Groups | n/a | yes |
| <a name="input_users"></a> [users](#input\_users) | contains objects representing all defined Google Users | n/a | yes |
| <a name="input_random_password"></a> [random\_password](#input\_random\_password) | contains a random password required for Users | `null` | no |
| <a name="input_password"></a> [password](#input\_password) | contains a given password required for Users | `null` | no |
| <a name="input_users_external"></a> [users\_external](#input\_users\_external) | contains objects representing all defined external Users | `{}` | no |

## Outputs
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ module "users" {
providers = {
googleworkspace = googleworkspace
}
user = each.value
random_password = var.random_password
user = each.value
password = var.password
}

module "users_external_to_groups" {
Expand Down
2 changes: 1 addition & 1 deletion modules/users/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "googleworkspace_user" "user" {
family_name = var.user.family_name
given_name = var.user.given_name
}
password = var.user.password != null ? var.user.password : var.random_password
password = var.user.password != null ? var.user.password : var.password

aliases = var.user.aliases
archived = var.user.archived
Expand Down
4 changes: 2 additions & 2 deletions modules/users/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ variable "user" {
})
}

variable "random_password" {
description = "contains a random password required for Users"
variable "password" {
description = "contains a given password required for Users"
type = string
default = null
}
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ variable "users" {
}))
}

variable "random_password" {
description = "contains a random password required for Users"
variable "password" {
description = "contains a given password required for Users"
type = string
default = null
}
Expand Down

0 comments on commit 9e29255

Please sign in to comment.