This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
installAndStartSolr() { | |
echo "Adding Solr's Upstart configuration" | |
useradd -r solruser | |
chown -R solruser:solruser /usr/hdp/current/solr/ | |
if [ -z "$ZKHOSTS" ]; then | |
echo "[ERROR] ZKHOSTS is empty. Exiting..." | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Context> | |
<Resources> | |
<PostResources className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/classes" base="${OPENCGA_INSTALLATION_DIR}/conf/hadoop" /> | |
</Resources> | |
</Context> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RELEASE_URL=${1} | |
HD_INSIGHTS_SSH_DNS=${2} | |
HD_INSIGHTS_SSH_USER=${3} | |
HD_INSIGHTS_SSH_PASS=${4} | |
#setting up opencga VM | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install software-properties-common -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"VmSize": { | |
"type": "string", | |
"defaultValue": "Standard_A1", | |
"allowedValues": [ | |
"Standard_A1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az group deployment create \ | |
--resource-group tmpCFtoARM \ | |
--template-file azuredeploy.json \ | |
--parameters @azuredeploy.parameters.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"SSHPublicKey": { | |
"reference": { | |
"keyVault": { | |
"id": "/subscriptions/802df257-6032-4b50-884c-XXXXX/resourceGroups/KeyVault/providers/Microsoft.KeyVault/vaults/MarcusKeyVaultWE" | |
}, | |
"secretName": "MarcusSSHPublicKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"PublicDNS": { | |
"Description": "Public DNSName of the newly created EC2 instance", | |
"Value": { "Fn::GetAtt": [ "EC2Instance", "PublicDnsName" ] } | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"outputs": { | |
"PublicDNS ": { | |
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',variables('VMNicPIPName'))).dnsSettings.fqdn]", | |
"type": "string" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"PublicIP": { | |
"Description": "Public IP address of the newly created EC2 instance", | |
"Value": { "Fn::GetAtt": [ "EC2Instance", "PublicIp" ] } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"networkProfile": { | |
"networkInterfaces": [ | |
{ | |
"id": "[resourceId('Microsoft.Network/networkInterfaces', 'VMNic')]" | |
} | |
] | |
} |
NewerOlder