Using Ansible to orchestrate your cryptocurrency mining gig eh rig :)

in #cryptocurrency7 years ago (edited)

I had set up the miners in a traditional way but as soon as there is more than one server involved the process of setting them up, starting/stopping and keeping track of the status can get very tedious! I had heard about Chef, Puppet, etc. but it never clicked ... until I found Ansible – a simple way to automate server processes with a relaxed learning curve.

For ex. if you want to start your ccminers, simply type:

ansible-playbook manage.yml --tags "ccminer_start"

If you want to know the status and what your ccminers are doing:

ansible-playbook manage.yml --tags "ccminer_status"
This outputs ok and what the current hashrate is, if everything is smooth.

Bildschirmfoto 2017-07-22 um 01.38.44.png

miner-status.png

As there isn't only ccminer I am planning to extend the scripts to others like minergate, ethdrc64, storjshare, etc.

I hope you find my scripts useful!
Let me know if you have any questions or feedback, I am not the best sysadmin guy and these scripts could definitely be improved. Maybe somebody wants to do a pull request? :)

Sort:  

Hey I just submitted this Post to Curie.
Lets see what happens....

Cool thanks! :)

Hi,

The project isn't available on github any more, are you planning on adding them back later ?

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 68337.24
ETH 2445.97
USDT 1.00
SBD 2.39