forked from mineiros-io/terraform-github-organization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
106 lines (87 loc) · 3.08 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# ---------------------------------------------------------------------------------------------------------------------
# ENVIRONMENT VARIABLES
# Define these secrets as environment variables.
# ---------------------------------------------------------------------------------------------------------------------
# GITHUB_ORGANIZATION
# GITHUB_TOKEN
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# These variables must be set when using this module.
# ---------------------------------------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL VARIABLES
# These variables have defaults, but may be overridden.
# ---------------------------------------------------------------------------------------------------------------------
variable "all_members_team_name" {
description = "(Optional) The name of the team that contains all members of the organization."
type = string
default = null
}
variable "all_members_team_visibility" {
description = "(Optional) The level of privacy for the team. Must be one of 'secret' or 'closed'."
type = string
default = "secret"
}
variable "blocked_users" {
description = "(Optional) A list of usernames to be blocked from a GitHub organization."
type = set(string)
#
# Example:
#
# blocked_users = [
# "blocked-user"
# ]
#
default = []
}
variable "members" {
type = set(string)
description = "(Optional) A list of users to be added to your organization with member role. When applied, an invitation will be sent to the user to become part of the organization. When destroyed, either the invitation will be cancelled or the user will be removed."
#
# Example:
#
# members = [
# "admin",
# "another-admin"
# ]
#
default = []
}
variable "admins" {
type = set(string)
description = "(Optional) A list of users to be added to your organization with admin role. When applied, an invitation will be sent to the user to become part of the organization. When destroyed, either the invitation will be cancelled or the user will be removed."
#
# Example:
#
# admins = [
# "admin",
# "another-admin"
# ]
#
default = []
}
variable "projects" {
type = list(any)
# We can't use a detailed type specification due to a terraform limitation. However, this might be changed in a future
# Terraform version. See https://github.com/hashicorp/terraform/issues/19898 and https://github.com/hashicorp/terraform/issues/22449
#
# type = list(object({
# name = string
# body = optional(string)
# }))
description = "(Optional) Create and manage projects for the GitHub organization."
#
# Example:
#
# projects = [
# {
# name = "Test Project"
# body = "This is a test project created by Terraform"
# },
# {
# name = "Test Project without a body"
# }
# ]
#
default = []
}