-
Notifications
You must be signed in to change notification settings - Fork 9
/
variables.tf
74 lines (58 loc) · 1.69 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
# User/Tenant authentication variables
variable "tenancy_ocid" {
description = "OCI Tenancy ID for Free-Tier Account"
}
variable "user_ocid" {
description = "OCI User ID for Free-Tier Account"
}
variable "fingerprint" {
description = "OCI Fingerprint ID for Free-Tier Account"
}
variable "private_key_path" {
description = "Local path to the OCI private key file"
}
# Network Configuration Variables
variable "oci_vcn_cidr_block" {
default = "10.2.0.0/16"
description = "CIDR Address range for OCI Networks"
}
variable "oci_vcn_cidr_subnet" {
default = "10.2.1.0/24"
description = "CIDR Address range for OCI Networks"
}
variable "oci_os_image" {
default = "oraclelinux8"
description = "Default OS Image From the Local Vars"
}
variable "ampere_a1_shape" {
default = "VM.Standard.A1.Flex"
}
# Virtual Machine Configuration Variables
variable "instance_prefix" {
description = "Name prefix for vm instances"
default = "ampere-a1-"
}
# OCI Free Tier Ampere A1 provides 4 cores and 24G of memory.
# This can be broken up between up to 4 virtual machines.
# * 1 vm 24G 4 cores
# * 2 vm 16G 2 cores
# * 4 vm 6G 1 cores
variable "oci_vm_count" {
description = "OCI Free Tier Ampere A1 is two instances"
default = 1
}
variable "ampere_a1_vm_memory" {
default = "24"
description = "Default RAM in GB for Ampere A1 instances in OCI Free Tier"
type = string
}
variable "ampere_a1_cpu_core_count" {
default = "4"
description = "Default core count for Ampere A1 instances in OCI Free Tier"
type = string
}
variable "cloud_init_template_file" {
default = null
description = "Optional path for a cloud-init file"
type = string
}