-
Notifications
You must be signed in to change notification settings - Fork 20
/
variables.tf
105 lines (87 loc) · 3.52 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# These variables must be set when using this module.
# ---------------------------------------------------------------------------------------------------------------------
variable "name" {
description = "(Required) The name of the team."
type = string
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL VARIABLES
# These variables have defaults, but may be overridden.
# ---------------------------------------------------------------------------------------------------------------------
variable "description" {
description = "(Optional) A description of the team."
type = string
default = ""
}
variable "privacy" {
description = "(Optional) The level of privacy for the team. Must be one of secret or closed."
type = string
default = "secret"
}
variable "parent_team_id" {
description = "(Optional) The ID of the parent team, if this is a nested team."
type = number
default = null
}
variable "ldap_dn" {
description = "(Optional) The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise."
type = string
default = null
}
variable "maintainers" {
description = "(Optional) A list of users that will be added to the current team with maintainer permissions."
type = set(string)
default = []
}
variable "members" {
description = "(Optional) A list of users that will be added to the current team with member permissions."
type = set(string)
default = []
}
variable "create_default_maintainer" {
type = string
description = "(Optional) Adds the creating user to the team when set to `true`."
default = false
}
variable "admin_repositories" {
description = "(Optional) A list of repository names the current team should get admin (full) permission to."
type = set(string)
default = []
}
variable "maintain_repositories" {
description = "(Optional) A list of repository names the current team should get push (maintain) permission to."
type = set(string)
default = []
}
variable "push_repositories" {
description = "(Optional) A list of repository names the current team should get push (read-write) permission to."
type = set(string)
default = []
}
variable "triage_repositories" {
description = "(Optional) A list of repository names the current team should get push (triage) permission to."
type = set(string)
default = []
}
variable "pull_repositories" {
description = "(Optional) A list of repository names the current team should get pull (read-only) permission to."
type = set(string)
default = []
}
# ------------------------------------------------------------------------------
# MODULE CONFIGURATION PARAMETERS
# These variables are used to configure the module.
# See https://medium.com/mineiros/the-ultimate-guide-on-how-to-write-terraform-modules-part-1-81f86d31f024
# ------------------------------------------------------------------------------
variable "module_enabled" {
type = bool
description = "(Optional) Whether or not to create resources within the module."
default = true
}
variable "module_depends_on" {
type = any
description = "(Optional) A list of external resources the module depends_on. Default is []."
default = []
}