-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbootstrap-rubrik-cloud-cluster.tf.example
More file actions
28 lines (24 loc) · 1.11 KB
/
bootstrap-rubrik-cloud-cluster.tf.example
File metadata and controls
28 lines (24 loc) · 1.11 KB
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
# Currently the Terraform Rubrik provider requires Terraform v0.11.
# This is incompatable with the current Terraform script. This example of using
# the Terraform provider for Rubrik has been moved here for reference.
######################################
# Bootstrap the Rubrik Cloud Cluster #
######################################
provider "rubrik" {
node_ip = "${aws_instance.rubrik_cluster.0.private_ip}"
username = ""
password = ""
}
resource "rubrik_bootstrap" "bootstrap_rubrik" {
cluster_name = "${var.cluster_name}"
admin_email = "${var.admin_email}"
admin_password = "${var.admin_password}"
management_gateway = "${cidrhost(data.aws_subnet.rubrik_cloud_cluster.cidr_block, 1)}"
management_subnet_mask = "${cidrnetmask(data.aws_subnet.rubrik_cloud_cluster.cidr_block)}"
dns_search_domain = "${var.dns_search_domain}"
dns_name_servers = "${var.dns_name_servers}"
ntp_servers = "${var.ntp_servers}"
enable_encryption = false
node_config = "${zipmap(local.cluster_node_name, local.cluster_node_ips)}"
timeout = "${var.timeout}"
}