Last active
May 15, 2020 14:30
-
-
Save clonedagain/fdede7b5b0b6c78915c3 to your computer and use it in GitHub Desktop.
BOINC on Azure
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
sudo apt-get install nodejs-legacy ansible | |
# Download azure CLI | |
./azure login | |
./azure config mode asm | |
# A0 instances seem cheaper per credit | |
for i in seq $(seq 1 20) | |
do ./azure vm create -v -l 'East US' -z Basic_A0 -e 22 -t ~/.ssh/id_dsa.pem clonedagain-a0-$i b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-15_10-amd64-server-20151116.1-en-us-30GB io 'password-here' | |
echo clonedagain-a0-$i >> azure-hosts | |
done | |
ansible -i azure-hosts -m apt -a "boinctui,boinc-client" -s '*' | |
ansible -i azure-hosts -a 'boinccmd --join_acct_mgr http://bam.boincstats.com 155791_83b32536d236bf6be6c5a6aa75879622 dummy_pwd' '*' | |
ansible -i azure-hosts -a 'boinccmd --set_network_mode always' '*' | |
ansible -i azure-hosts -a 'boinccmd --set_run_mode always' '*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment