github.com/vic3lord/terraform@v0.8.0-rc1.0.20170626102919-16c6dd2cb372/examples/azure-wordpress-mysql-replication/variables.tf (about) 1 # variable "client_id" {} 2 # variable "client_secret" {} 3 # variable "tenant_id" {} 4 # variable "subscription_id" {} 5 6 variable "resource_group" { 7 description = "Resource group name into which your Spark and Cassandra deployment will go." 8 } 9 10 variable "location" { 11 description = "The location/region where the virtual network is created. Changing this forces a new resource to be created." 12 default = "southcentralus" 13 } 14 15 variable "unique_prefix" { 16 description = "This prefix is used for names which need to be globally unique." 17 } 18 19 variable "vm_admin_username" { 20 description = "Specify an admin username that should be used to login to the VM. Min length: 1" 21 } 22 23 variable "vm_admin_password" { 24 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" 25 } 26 27 variable "os_image_publisher" { 28 description = "name of the publisher of the image (az vm image list)" 29 default = "OpenLogic" 30 } 31 32 variable "os_image_offer" { 33 description = "the name of the offer (az vm image list)" 34 default = "CentOS" 35 } 36 37 variable "os_version" { 38 description = "version of the image to apply (az vm image list)" 39 default = "6.5" 40 } 41 42 variable "api_version" { 43 default = "2015-06-15" 44 } 45 46 variable "artifacts_location" { 47 description = "The base URI where artifacts required by this template are located." 48 default = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/wordpress-mysql-replication/" 49 } 50 51 variable "azuremysql_script" { 52 description = "The directory and script which will configure MySQL" 53 default = "scripts/azuremysql.sh" 54 } 55 56 variable "mysql_cfg_file_path" { 57 description = "The directory and script which will be called in the extension for the MySQL config" 58 default = "scripts/my.cnf.template" 59 } 60 61 variable "site_name" { 62 description = "wordpress site name" 63 } 64 65 variable "hosting_plan_name" { 66 description = "website host plan" 67 } 68 69 variable "sku" { 70 description = "Website sku. Allowed values: Basic, Standard, Premium" 71 default = "Standard" 72 } 73 74 variable "worker_size" { 75 description = "Website worker size. Allowed values: 0, 1, 2" 76 default = "1" 77 } 78 79 variable "dns_name" { 80 description = "Connect to your cluster using dnsName.location.cloudapp.azure.com" 81 } 82 83 variable "public_ip_name" { 84 description = "public IP name for MySQL loadbalancer" 85 default = "mysqlIP01" 86 } 87 88 variable "mysql_root_password" { 89 description = "mysql root user password" 90 } 91 92 variable "mysql_replication_password" { 93 description = "mysql replication user password" 94 } 95 96 variable "mysql_probe_password" { 97 description = "mysql probe password" 98 } 99 100 variable "vm_size" { 101 description = "size for the VMs" 102 default = "Standard_D2" 103 } 104 105 variable "storage_account_type" { 106 description = "Storage account type for the cluster" 107 default = "Standard_LRS" 108 } 109 110 variable "virtual_network_name" { 111 description = "New or Existing Virtual network name for the cluster" 112 default = "mysqlvnet" 113 } 114 115 variable "vnet_new_or_existing" { 116 description = "Identifies whether to use new or existing Virtual Network" 117 default = "new" 118 } 119 120 variable "vnet_existing_resource_group_name" { 121 description = "If using existing VNet, specifies the resource group for the existing VNet" 122 default = "" 123 } 124 125 variable "db_subnet_name" { 126 description = "subnet name for the MySQL nodes" 127 default = "default" 128 } 129 130 variable "vnet_address_prefix" { 131 description = "IP address in CIDR for virtual network" 132 default = "10.0.0.0/16" 133 } 134 135 variable "db_subnet_address_prefix" { 136 description = "IP address in CIDR for db subnet" 137 default = "10.0.1.0/24" 138 } 139 140 variable "db_subnet_start_address" { 141 description = "Start IP address for the VMs in db subnet" 142 default = "10.0.1.4" 143 } 144 145 variable "image_publisher" { 146 description = "publisher for the VM OS image" 147 default = "OpenLogic" 148 } 149 150 variable "image_offer" { 151 description = "VM OS name" 152 default = "CentOS" 153 } 154 155 variable "image_sku" { 156 description = "VM OS version. Allowed values: 6.5, 6.6" 157 default = "6.5" 158 } 159 160 variable "mysql_front_end_port_0" { 161 description = "MySQL public port" 162 default = "3306" 163 } 164 165 variable "mysql_front_end_port_1" { 166 description = "MySQL public port" 167 default = "3307" 168 } 169 170 variable "ssh_nat_rule_front_end_port_0" { 171 description = "public ssh port for VM1" 172 default = "64001" 173 } 174 175 variable "ssh_nat_rule_front_end_port_1" { 176 description = "public ssh port for VM2" 177 default = "64002" 178 } 179 180 variable "mysql_probe_port_0" { 181 description = "MySQL public port master" 182 default = "9200" 183 } 184 185 variable "mysql_probe_port_1" { 186 description = "MySQL public port slave" 187 default = "9201" 188 } 189 190 variable "storage_account_name" { 191 description = "Name of the Storage Account" 192 default = "storagesa" 193 } 194 195 variable "template_api_version" { 196 default = "2015-01-01" 197 } 198 199 variable "wpdbname" { 200 default = "wordpress" 201 } 202 203 variable "node_count" { 204 default = 2 205 } 206 207 variable "nic_name" { 208 description = "Name of the Network Interface" 209 default = "nic" 210 }