Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions couchbase-on-ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Install a Datastax cluster on Ubuntu Virtual Machines using Custom Script Linux Extension

<a href="https://azuredeploy.net/" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>

This template deploys a Couchbase cluster on the Ubuntu virtual machines. This template also provisions a storage account, virtual network, availability sets, public IP addresses and network interfaces required by the installation.

The example expects the following parameters:

| Name | Description |
|:--- |:---|
| adminUsername | Admin user name for the Virtual Machines |
| adminPassword | Admin password for the Virtual Machines |
| storageAccountPrefix | Unique DNS Name for the Storage Account where the Virtual Machine's disks will be placed (multiple storage accounts are created with this template using this value as a prefix for the storage account name) |
| region | Region name where the corresponding Azure artifacts will be created |
| virtualNetworkName | Name of the Virtual Network that is created and that resources will be deployed in to |
| clusterName | The name of the new cluster that is provisioned with the deployment |
| tshirtSize | Higher level definition of a cluster size. It can take Small, Medium and Large values. This value causes cluster sizes with following characteristics. Small: 3xStandard_A2, Medium: 4xStandard_A6, Large: 5xStandard_D14 |
| vmNamePrefix | The prefix for the names of the VMs that will be provisioned |
| cbPackageDownloadBase | The URL base the Couchbase package is downloaded from |
| cbPackage | The Couchbase package name |
| jumpbox | Deploys two VMs, one Ubuntu, one Windows to access the cluster from the Internet |

Topology
--------

This template deploys a configurable number of cluster nodes of a configurable size. The cluster nodes are internal and only accessible on the internal virtual network. The cluster can be accessed either through a Ubuntu VM accessible through SSH (port 22), or a Windows VM through RDP, each having a separate public IP.

##Known Issues and Limitations
- The deployment scripts are not currently idempotent and this template should only be used for provisioning a new cluster at the moment.
2 changes: 1 addition & 1 deletion couchbase-on-ubuntu/azuredeploy-parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"virtualNetworkName": {
"value": "couchVnet"
},
"cbClusterName": {
"clusterName": {
"value": "couchbasefs180"
}
}
6 changes: 3 additions & 3 deletions couchbase-on-ubuntu/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"Description": "Virtual Network"
}
},
"cbClusterName": {
"clusterName": {
"type": "string",
"defaultValue": "couchbasecluster",
"metadata": {
Expand Down Expand Up @@ -188,8 +188,8 @@
"[concat(parameters('cbPackageDownloadBase'), parameters('cbPackage'))]",
"[concat(variables('sharedBaseUrl'), 'vm-disk-utils-0.1.sh')]"
],
"installCommand": "[concat('bash couchbase-azure-install.sh -d ', parameters('cbPackage'), ' -n ', parameters('cbClusterName'), ' -i ', concat(variables('networkSettings').nodesIpPrefix, '-', variables('clusterSpec').clusterSize), ' -a ', variables('machineSettings').adminUsername, ' -p ', variables('machineSettings').adminPassword, ' -r ', variables('clusterSpec').couchbaseRamQuota)]",
"setupCommand": "[concat('bash couchbase-azure-install.sh -d ', parameters('cbPackage'), ' -n ', parameters('cbClusterName'), ' -i ', concat(variables('networkSettings').nodesIpPrefix, '-', variables('clusterSpec').clusterSize), ' -a ', variables('machineSettings').adminUsername, ' -p ', variables('machineSettings').adminPassword, ' -r ', variables('clusterSpec').couchbaseRamQuota, ' -l')]"
"installCommand": "[concat('bash couchbase-azure-install.sh -d ', parameters('cbPackage'), ' -n ', parameters('clusterName'), ' -i ', concat(variables('networkSettings').nodesIpPrefix, '-', variables('clusterSpec').clusterSize), ' -a ', variables('machineSettings').adminUsername, ' -p ', variables('machineSettings').adminPassword, ' -r ', variables('clusterSpec').couchbaseRamQuota)]",
"setupCommand": "[concat('bash couchbase-azure-install.sh -d ', parameters('cbPackage'), ' -n ', parameters('clusterName'), ' -i ', concat(variables('networkSettings').nodesIpPrefix, '-', variables('clusterSpec').clusterSize), ' -a ', variables('machineSettings').adminUsername, ' -p ', variables('machineSettings').adminPassword, ' -r ', variables('clusterSpec').couchbaseRamQuota, ' -l')]"
},
"clusterSpec": "[variables(concat('tshirtSize', parameters('tshirtSize')))]"
},
Expand Down