Skip to content

Instantly share code, notes, and snippets.

View activeeon-bot's full-sized avatar

Bobot activeeon-bot

View GitHub Profile
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmssName": {
"type": "string"
},
"sasKey": {
"type": "string"
},
@activeeon-bot
activeeon-bot / scaleSetSpotTemplate.json
Last active December 4, 2023 18:06
ARM template for deploying Azure scaleSet using spot instances without virtual networt
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmssName": {
"type": "string"
},
"sasKey": {
"type": "string"
},
#!/usr/bin/python3
# Prepare an Azure provider account for CycleCloud usage.
import os
import argparse
import json
import re
import random
import platform
from string import ascii_uppercase, ascii_lowercase, digits
import subprocess
@activeeon-bot
activeeon-bot / Install_ProActive_Node.sh
Last active January 18, 2022 10:39
A shell script that is used to deploy ProActive nodes in remote machines. For instance, it can be used as an 'Action Script' for Azure HDInsight clusters (e.g., it deploys ProActive nodes in Spark head and worker VMs)
#!/bin/bash
restURL=$1
nodeJarUrl="$restURL/node.jar"
protocol=$2
rmHostname=$3
rmUrl=$4
nsName=$5
nodeNamingOption=$6
credentials=$7
@activeeon-bot
activeeon-bot / scaleSetTemplateNvidia.json
Last active December 4, 2023 19:58
ARM Template for Nvidia HPC images. The template requires an existing virtual network
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmssName": {
"type": "string"
},
"sasKey": {
"type": "string"
},
@activeeon-bot
activeeon-bot / scaleset-nvidia-init-script.sh
Last active November 15, 2023 19:03
init script used by the Azure scaleSet NodeSource to boot ProActive Nodes on Nvidia HPC GPU images
#!/bin/bash
# This script is used as internalCustomStartupScript to setup the VM of the Azure Scale Set.
# This setup is for Debian 8 VM only, and involves:
# - setting up Docker and Docker-Compose
# - setting up ProActive Node service with PNP
# - starting the ProActive Node service
# If you require additional configuration, you can add your own script as userCustomStartupScript
#!/bin/bash
# This script is used as internalCustomStartupScript to setup the VM of the Azure Scale Set.
# This setup is for CENTOS 7, and involves:
# - setting up Docker and Docker-Compose
# - setting up ProActive Node service with PNP
# - starting the ProActive Node service
# - install and setup the required packages/libs for the various script engine
#!/bin/bash
set -x
set -e
# This is to allow SSH connection on the machine
iptables -I INPUT -p tcp -m tcp --dport 2222 -j ACCEPT
service iptables save
# FIX: install missing dependencies, yum is not available, probably for security reasons
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmssName": {
"type": "string"
},
"sasKey": {
"type": "string"
},
@activeeon-bot
activeeon-bot / scaleset-centos7-boot-script.sh
Last active November 15, 2023 19:04
Internal custom script for Centos 7 scale set
#!/bin/bash
# This script is used as internalCustomStartupScript to setup the VM of the Azure Scale Set.
# This setup is for CENTOS 7, and involves:
# - setting up Docker and Docker-Compose
# - setting up ProActive Node service with PNP
# - starting the ProActive Node service
# - install and setup the required packages/libs for the various script engine
# mount /tmp folder