diff --git a/azure/README.md b/azure/README.md index 3910fe7..f9867c8 100644 --- a/azure/README.md +++ b/azure/README.md @@ -1,4 +1,48 @@ SWH azure provisioning ------------------------- -cf. https://wiki.softwareheritage.org/index.php?title=New_machine_setup +# Pre-requisite + +- az [1] +- rights in the azure portal [2] + +[1] https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest +[2] https://portal.azure.com + +# Create vm + +``` sh +$ ./create-vm.sh +# create a node with name `name` and `type` at `location` +# ... +$ ./create-vm.sh worker01 worker euwest +# creates a node worker01.euwest.azure of type `worker` at location `euwest` (default) +# ... +$ ./create-vm.sh webapp0 webapp +# creates a node webapp0 of type `something-different-than-worker-type` +# at location euwest +``` + +Example name: +- worker01 +- webapp0 +- dbreplica0 + +This will: +- create an azure vm node +- running the latest debian stable (9 as of this writing) +- with admin user zack (uid 1000) +- with a local public key (so that we can connect later on) +- and continue the provisioning steps + +# Provision + +``` sh +ADMIN_USER=zack +scp ./provision-vm.sh $ADMIN_USER@: +ssh $ADMIN_USER@ ./provision-vm.sh +``` + +# More documentation + +cf. [New machine setup](https://wiki.softwareheritage.org/index.php?title=New_machine_setup)