-
Notifications
You must be signed in to change notification settings - Fork 2
/
default-vars.tf
134 lines (108 loc) · 2.74 KB
/
default-vars.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Rancher Variables
variable "use_letsencyrpt" {
description = "Enable Letsencrpt vs self signed cert for rancher server"
default = "false"
}
variable "rancher_version" {
description = "rancher/rancher image tag to use"
default = "latest"
}
variable "count_agent_all_nodes" {
description = "Count of agent nodes with role all"
default = 1
}
variable "count_agent_etcd_nodes" {
description = "Count of agent nodes with role etcd"
default = 0
}
variable "count_agent_controlplane_nodes" {
description = "Count of agent nodes with role controlplane"
default = 0
}
variable "count_agent_worker_nodes" {
description = "Count of agent nodes with role worker"
default = 0
}
variable "admin_password" {
description = "Admin password to access Rancher"
}
variable "cluster_name" {
description = "Rancher cluster name"
default = "default"
}
variable "docker_version_server" {
description = "Docker version of host running `rancher/rancher`"
default = "17.03"
}
variable "docker_version_agent" {
description = "Docker version of host being added to a cluster (running `rancher/rancher-agent`)"
default = "17.03"
}
# Power DNS Variables
variable "pdns_api_key" {
description = "Power DNS API Key"
}
variable "pdns_server_url" {
description = "Power DNS API Endpoint"
default = "http://127.0.0.1:8081/"
}
# Libvirt Variables
variable "libvirt_uri" {
description = "URI of server running libvirtd"
default = "qemu:///system"
}
variable "prefix" {
description = "Resources will be prefixed with this to avoid clashing names"
default = "k8s"
}
variable "svr_name" {
description = "hostname for Rancher Server"
default = "rancher"
}
variable "domain" {
description = "Domain name for servers"
default = "xip.io"
}
variable "user_name" {
description = "OS username"
default = "ubuntu"
}
variable "ssh_authorized-key" {
description = "SSH public key used for os login"
}
variable "libvirt_volume_source" {
description = "Volume Image Source"
default = "https://cloud-images.ubuntu.com/releases/xenial/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img"
}
variable "libvirt_volume_pool" {
description = "Volume Storage Pool"
default = "default"
}
variable "libvirt_volume_svr_size" {
description = "Volume Size in Bytes (Default is 10G)"
default = 10737418240
}
variable "libvirt_volume_node_size" {
description = "Volume Size in Bytes (Default is 10G)"
default = 10737418240
}
variable "svr_memory" {
default = 4096
}
variable "node_memory" {
default = 4096
}
variable "svr_vcpu" {
default = 1
}
variable "node_vcpu" {
default = 2
}
variable "network" {
description = "Name of Libvirt Network"
default = "default"
}
variable "port_group" {
description = "Namve of OVS Port Group"
default = "default"
}