-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
112 lines (96 loc) · 2.23 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
107
108
109
110
111
112
/*
Terraform module for creating Hetzner cloud compatible user-data file
Copyright (C) 2023 Wojciech Szychta
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
variable "server_type" {
type = string
default = ""
}
variable "server_image" {
type = string
default = ""
}
variable "additional_users" {
type = list(object({
username = string
sudo_options = string
ssh_public_keys = list(string)
}))
default = []
}
variable "private_networks_only" {
type = bool
default = false
}
variable "private_networks_settings" {
type = list(object(
{
network_id = string
ip = string
alias_ips = list(string)
routes = map(list(string))
nameservers = object(
{
addresses = list(string)
search = list(string)
}
)
}
))
default = []
}
variable "additional_write_files" {
type = list(object({
content = string
owner_user = string
owner_group = string
destination = string
permissions = string
}))
default = []
}
variable "additional_hosts_entries" {
type = list(object({
ip = string
hostnames = list(string)
}))
default = []
}
variable "additional_run_commands" {
type = list(string)
default = []
}
variable "additional_packages" {
type = list(string)
default = []
}
variable "upgrade_all_packages" {
type = bool
default = true
}
variable "reboot_instance" {
type = bool
default = true
}
variable "timezone" {
type = string
default = "Europe/Berlin"
}
variable "yq_version" {
type = string
default = "v4.30.5"
}
variable "yq_binary" {
type = string
default = "yq_linux_amd64"
}