-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
86 lines (62 loc) · 3.27 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
###
## Variables.tf for Terraform
###
variable "tenancy_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
variable "private_key_path" {}
variable "region" { default = "us-phoenix-1" }
variable "compartment_ocid" {}
variable "ssh_public_key" {}
variable "ssh_private_key" {}
variable "ssh_private_key_path" {}
# For instances created using Oracle Linux and CentOS images, the user name opc is created automatically.
# For instances created using the Ubuntu image, the user name ubuntu is created automatically.
# The ubuntu user has sudo privileges and is configured for remote access over the SSH v2 protocol using RSA keys. The SSH public keys that you specify while creating instances are added to the /home/ubuntu/.ssh/authorized_keys file.
# For more details: https://docs.cloud.oracle.com/iaas/Content/Compute/References/images.htm#one
variable "ssh_user" { default = "opc" }
# For Ubuntu images, set to ubuntu.
# variable "ssh_user" { default = "ubuntu" }
variable "AD" { default = "2" }
variable "VPC-CIDR" { default = "10.0.0.0/16" }
variable "InstanceImageOCID" {
type = "map"
default = {
// See https://docs.us-phoenix-1.oraclecloud.com/images/ or https://docs.cloud.oracle.com/iaas/images/
// Oracle-provided image "CentOS-7-2018.08.15-0"
eu-frankfurt-1 = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaatz6zixwltzswnmzi2qxdjcab6nw47xne4tco34kn6hltzdppmada"
us-ashburn-1 = "ocid1.image.oc1.iad.aaaaaaaah6ui3hcaq7d43esyrfmyqb3mwuzn4uoxjlbbdwoiicdmntlvwpda"
uk-london-1 = "ocid1.image.oc1.uk-london-1.aaaaaaaai3czrt22cbu5uytpci55rcy4mpi4j7wm46iy5wdieqkestxve4yq"
us-phoenix-1 = "ocid1.image.oc1.phx.aaaaaaaarbacra7juwrie5idcadtgbj3llxcu7p26rj4t3xujyqwwopy2wva"
}
}
# Compute Instance counts
# Bastion server count. 1 should be enough
variable "BastionNodeCount" { default = "1" }
variable "BastionNodeShape" { default = "VM.Standard2.1" }
variable "ibm_ss_version" { default = "5.0.2.0" }
# Should be a http/https link which is accessible from the compute instances we will create. You can use OCI Object Storage bucket with pre-authenticated URL.
variable "software_download_url" { default = "http://somehost.com" }
# example: https://objectstorage.us-phoenix-1.oraclecloud.com/p/B_xxxxxx-xxxxxx/n/tenancyname/b/bucketname/o/Scale_dme_install-5.0.2.0_x86_64.tar
# File System Configurations
variable "BlockSize" { default = "256K" }
variable "DataReplica" { default = "1" }
variable "GpfsMountPoint" { default = "/gpfs/fs1" }
# NSD Configurations
variable "DiskPerNode" { default = "4" }
variable "DiskSize" { default = "700" }
# NSD/Server Node Configurations
variable "ServerNodeCount" { default = "2" }
#variable "ServerNodeShape" { default = "VM.Standard2.1" }
variable "ServerNodeShape" { default = "BM.DenseIO2.52" } # BM.DenseIO2.52
variable "ServerNodeHostnamePrefix" { default = "ss-server-" }
# Client/Compute Node Configurations
variable "ComputeNodeCount" { default = "3" }
variable "ComputeNodeShape" { default = "BM.DenseIO2.52" }
variable "ComputeNodeHostnamePrefix" { default = "ss-compute-" }
variable "InstallerNode" { default = "1" }
# Callhome Configuration
variable "CompanyName" { default = "Company Name" }
variable "CompanyID" { default = "1234567" }
variable "CountryCode" { default = "US" }
variable "EmailAddress" { default = "[email protected]" }