github.com/loicalbertin/terraform@v0.6.15-0.20170626182346-8e2583055467/examples/azure-spark-and-cassandra-on-centos/variables.tf (about)

     1  variable "resource_group" {
     2    description = "Resource group name into which your Spark and Cassandra deployment will go."
     3  }
     4  
     5  variable "location" {
     6    description = "The location/region where the virtual network is created. Changing this forces a new resource to be created."
     7    default     = "southcentralus"
     8  }
     9  
    10  variable "unique_prefix" {
    11    description = "This prefix is used for names which need to be globally unique."
    12  }
    13  
    14  variable "storage_master_type" {
    15    description = "Storage type that is used for master Spark node.  This storage account is used to store VM disks. Allowed values: Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS"
    16    default     = "Standard_LRS"
    17  }
    18  
    19  variable "storage_slave_type" {
    20    description = "Storage type that is used for each of the slave Spark node.  This storage account is used to store VM disks. Allowed values : Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS"
    21    default     = "Standard_LRS"
    22  }
    23  
    24  variable "storage_cassandra_type" {
    25    description = "Storage type that is used for Cassandra.  This storage account is used to store VM disks. Allowed values: Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS"
    26    default     = "Standard_LRS"
    27  }
    28  
    29  variable "vm_master_vm_size" {
    30    description = "VM size for master Spark node.  This VM can be sized smaller. Allowed values: Standard_D1_v2, Standard_D2_v2, Standard_D3_v2, Standard_D4_v2, Standard_D5_v2, Standard_D11_v2, Standard_D12_v2, Standard_D13_v2, Standard_D14_v2, Standard_A8, Standard_A9, Standard_A10, Standard_A11"
    31    default     = "Standard_D1_v2"
    32  }
    33  
    34  variable "vm_number_of_slaves" {
    35    description = "Number of VMs to create to support the slaves.  Each slave is created on it's own VM.  Minimum of 2 & Maximum of 200 VMs. min = 2, max = 200"
    36    default     = 2
    37  }
    38  
    39  variable "vm_slave_vm_size" {
    40    description = "VM size for slave Spark nodes.  This VM should be sized based on workloads. Allowed values: Standard_D1_v2, Standard_D2_v2, Standard_D3_v2, Standard_D4_v2, Standard_D5_v2, Standard_D11_v2, Standard_D12_v2, Standard_D13_v2, Standard_D14_v2, Standard_A8, Standard_A9, Standard_A10, Standard_A11"
    41    default     = "Standard_D3_v2"
    42  }
    43  
    44  variable "vm_cassandra_vm_size" {
    45    description = "VM size for Cassandra node.  This VM should be sized based on workloads. Allowed values: Standard_D1_v2, Standard_D2_v2, Standard_D3_v2, Standard_D4_v2, Standard_D5_v2, Standard_D11_v2, Standard_D12_v2, Standard_D13_v2, Standard_D14_v2, Standard_A8, Standard_A9, Standard_A10, Standard_A11"
    46    default     = "Standard_D3_v2"
    47  }
    48  
    49  variable "vm_admin_username" {
    50    description = "Specify an admin username that should be used to login to the VM. Min length: 1"
    51  }
    52  
    53  variable "vm_admin_password" {
    54    description = "Specify an admin password that should be used to login to the VM. Must be between 6-72 characters long and must satisfy at least 3 of password complexity requirements from the following: 1) Contains an uppercase character 2) Contains a lowercase character 3) Contains a numeric digit 4) Contains a special character"
    55  }
    56  
    57  variable "os_image_publisher" {
    58    description = "name of the publisher of the image (az vm image list)"
    59    default     = "OpenLogic"
    60  }
    61  
    62  variable "os_image_offer" {
    63    description = "the name of the offer (az vm image list)"
    64    default     = "CentOS"
    65  }
    66  
    67  variable "os_version" {
    68    description = "version of the image to apply (az vm image list)"
    69    default     = "7.3"
    70  }
    71  
    72  variable "api_version" {
    73    default = "2015-06-15"
    74  }
    75  
    76  variable "artifacts_location" {
    77    description = "The base URI where artifacts required by this template are located."
    78    default     = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/spark-and-cassandra-on-centos/CustomScripts/"
    79  }
    80  
    81  variable "vnet_spark_prefix" {
    82    description = "The address space that is used by the virtual network. You can supply more than one address space. Changing this forces a new resource to be created."
    83    default     = "10.0.0.0/16"
    84  }
    85  
    86  variable "vnet_spark_subnet1_name" {
    87    description = "The name used for the Master subnet."
    88    default     = "Subnet-Master"
    89  }
    90  
    91  variable "vnet_spark_subnet1_prefix" {
    92    description = "The address prefix to use for the Master subnet."
    93    default     = "10.0.0.0/24"
    94  }
    95  
    96  variable "vnet_spark_subnet2_name" {
    97    description = "The name used for the slave/agent subnet."
    98    default     = "Subnet-Slave"
    99  }
   100  
   101  variable "vnet_spark_subnet2_prefix" {
   102    description = "The address prefix to use for the slave/agent subnet."
   103    default     = "10.0.1.0/24"
   104  }
   105  
   106  variable "vnet_spark_subnet3_name" {
   107    description = "The name used for the subnet used by Cassandra."
   108    default     = "Subnet-Cassandra"
   109  }
   110  
   111  variable "vnet_spark_subnet3_prefix" {
   112    description = "The address prefix to use for the subnet used by Cassandra."
   113    default     = "10.0.2.0/24"
   114  }
   115  
   116  variable "nsg_spark_master_name" {
   117    description = "The name of the network security group for Spark's Master"
   118    default     = "nsg-spark-master"
   119  }
   120  
   121  variable "nsg_spark_slave_name" {
   122    description = "The name of the network security group for Spark's slave/agent nodes"
   123    default     = "nsg-spark-slave"
   124  }
   125  
   126  variable "nsg_cassandra_name" {
   127    description = "The name of the network security group for Cassandra"
   128    default     = "nsg-cassandra"
   129  }
   130  
   131  variable "nic_master_name" {
   132    description = "The name of the network interface card for Master"
   133    default     = "nic-master"
   134  }
   135  
   136  variable "nic_master_node_ip" {
   137    description = "The private IP address used by the Master's network interface card"
   138    default     = "10.0.0.5"
   139  }
   140  
   141  variable "nic_cassandra_name" {
   142    description = "The name of the network interface card used by Cassandra"
   143    default     = "nic-cassandra"
   144  }
   145  
   146  variable "nic_cassandra_node_ip" {
   147    description = "The private IP address of Cassandra's network interface card"
   148    default     = "10.0.2.5"
   149  }
   150  
   151  variable "nic_slave_name_prefix" {
   152    description = "The prefix used to constitute the slave/agents' names"
   153    default     = "nic-slave-"
   154  }
   155  
   156  variable "nic_slave_node_ip_prefix" {
   157    description = "The prefix of the private IP address used by the network interface card of the slave/agent nodes"
   158    default     = "10.0.1."
   159  }
   160  
   161  variable "public_ip_master_name" {
   162    description = "The name of the master node's public IP address"
   163    default     = "public-ip-master"
   164  }
   165  
   166  variable "public_ip_slave_name_prefix" {
   167    description = "The prefix to the slave/agent nodes' IP address names"
   168    default     = "public-ip-slave-"
   169  }
   170  
   171  variable "public_ip_cassandra_name" {
   172    description = "The name of Cassandra's node's public IP address"
   173    default     = "public-ip-cassandra"
   174  }
   175  
   176  variable "vm_master_name" {
   177    description = "The name of Spark's Master virtual machine"
   178    default     = "spark-master"
   179  }
   180  
   181  variable "vm_master_os_disk_name" {
   182    description = "The name of the os disk used by Spark's Master virtual machine"
   183    default     = "vmMasterOSDisk"
   184  }
   185  
   186  variable "vm_master_storage_account_container_name" {
   187    description = "The name of the storage account container used by Spark's master"
   188    default     = "vhds"
   189  }
   190  
   191  variable "vm_slave_name_prefix" {
   192    description = "The name prefix used by Spark's slave/agent nodes"
   193    default     = "spark-slave-"
   194  }
   195  
   196  variable "vm_slave_os_disk_name_prefix" {
   197    description = "The prefix used to constitute the names of the os disks used by the slave/agent nodes"
   198    default     = "vmSlaveOSDisk-"
   199  }
   200  
   201  variable "vm_slave_storage_account_container_name" {
   202    description = "The name of the storage account container used by the slave/agent nodes"
   203    default     = "vhds"
   204  }
   205  
   206  variable "vm_cassandra_name" {
   207    description = "The name of the virtual machine used by Cassandra"
   208    default     = "cassandra"
   209  }
   210  
   211  variable "vm_cassandra_os_disk_name" {
   212    description = "The name of the os disk used by the Cassandra virtual machine"
   213    default     = "vmCassandraOSDisk"
   214  }
   215  
   216  variable "vm_cassandra_storage_account_container_name" {
   217    description = "The name of the storage account container used by the Cassandra node"
   218    default     = "vhds"
   219  }
   220  
   221  variable "availability_slave_name" {
   222    description = "The name of the availability set for the slave/agent machines"
   223    default     = "availability-slave"
   224  }
   225  
   226  variable "script_spark_provisioner_script_file_name" {
   227    description = "The name of the script kept in version control which will provision Spark"
   228    default     = "scriptSparkProvisioner.sh"
   229  }
   230  
   231  variable "script_cassandra_provisioner_script_file_name" {
   232    description = "The name of the script kept in version control which will provision Cassandra"
   233    default     = "scriptCassandraProvisioner.sh"
   234  }