azurehpc/examples/cycleserver_msi
Xavier Pillons 2616d6dfed use common group variables 2020-10-19 13:07:39 +02:00
..
init.sh
init.yml
pipeline.yml use common group variables 2020-10-19 13:07:39 +02:00
readme.md added version option for Cycle 2020-06-25 10:01:31 +02:00
test_matrix.json test both version of CC 7 and 8 2020-06-25 13:38:10 +02:00
variables.json test both version of CC 7 and 8 2020-06-25 13:38:10 +02:00

readme.md

Building the infrastructure

Build Status

Here we will explain how to deploy a full system with a VNET, JUMPBOX, CYCLESERVER by using building blocks.

Step 1 - install azhpc

after cloning azhpc, source the install.sh script

$ git clone https://github.com/Azure/azurehpc.git
$ cd azurehpc
$ . install.sh
$ cd ..

Step 2 - Initialize the configuration files

Create a working directory from where you will do the deployment and configuration update. Don't work directly from the cloned repo.

$ mkdir cycleserver
$ cd cycleserver

Then copy the init.sh and variables.json from examples/cycleserver_msi to your working directory.

$ cp $azhpc_dir/examples/cycleserver_msi/init.sh .
$ cp $azhpc_dir/examples/cycleserver_msi/variables.json .

Edit the variables.json to match your environment. Give a unique value to uuid. An existing keyvault can be referenced if needed. Choose the CycleCloud version to be installed (7 or 8)

{
  "variables": {
    "resource_group": "my resource group",
    "location": "my location",
    "key_vault": "kv{{variables.uuid}}",
    "uuid": "unique value",
    "projectstore": "locker{{variables.uuid}}",
    "cc_version": "7"
  }
}

Run the init.sh script which will copy all the config files of the building blocks and initialize the variables by using the variables.json updated above.

$ ./init.sh

Step 2 - Build the system

The first command will create the required pre-requisites for CycleCloud like a Key Vault, generate a password and store it in the Vault. The second command will buil all the resources and create a PBS cluster.

$ azhpc-build --no-vnet -c prereqs.json
$ azhpc-build 

The build process should take about 13 minutes.

Step 3 - Connect to the CycleServer UI

Retrieve the CycleServer DNS name from the azure portal

Retrieve the CycleCloud admin password from the logs

$ grep password azhpc_install_config/install/*.log

Connect to the CycleCloud Web Portal https://fqdn-of-cycleserver as hpcadmin and the password retrieved above.