cryptogrot.xmr-stak

Rola Ansible cryptogrot.xmr-stak

Ta rola zainstaluje i skonfiguruje narzędzie do kopania xmr-stak na systemie operacyjnym Linux. Używając tej roli, masz możliwość skonfigurowania xmr-stak z odpowiednim backendem z najnowszego oficjalnego kodu źródłowego z GitHub.

Przegląd

Funkcje

Obsługiwane typy backendu:

  • NVIDIA (CUDA 9.1)
  • AMD/ATI (OpenCL)
  • CPU

Obsługiwane algorytmy:

  • Cryptonight (domyślnie skonfigurowany)
    • (Monero, Sumokoin, Electroneum, Intense itp.)
  • Cryptonight-light
    • (AEON itp.)

Szybkie rozpoczęcie

Wymagania wstępne

Ubuntu/Debian

$ sudo apt install python-pip -y

Fedora

$ sudo dnf install python-pip -y

CentOS 7

$ sudo yum install python-pip -y

Wdrożenie

$ sudo pip install -U pip ansible
$ mkdir -p ~/ansible/{inventories/xmr-stak,playbooks/xmr-stak,roles}
$ cat << EOF > ~/ansible/ansible.cfg
[defaults]
host_key_checking = False
roles_path = ./roles
EOF
$ cat << EOF > ~/ansible/playbooks/xmr-stak/site.yml
---
- name: Budowanie programu do kopania xmr-stak
  hosts: all
  user: debian
  become: true

  roles:
    - cryptogrot.xmr-stak
EOF
$ ansible-galaxy install --force --roles-path ~/ansible/roles cryptogrot.xmr-stak

Inwentarz Ansible należy utworzyć w pliku ~/ansible/inventories/xmr-stak/hosts. Oto przykład dla różnych dystrybucji.

[miner]
192.168.0.2          ansible_user=fedora ansible_python_interpreter=/usr/bin/python3
192.168.0.3          ansible_user=fedora
192.168.0.4          ansible_user=root
192.168.0.5          ansible_user=ubuntu
192.168.0.6          ansible_user=centos
192.168.0.[13:30] ansible_user=debian ansible_port=22

CPU

$ ansible-playbook -i ~/ansible/inventories/xmr-stak/hosts \
    ~/ansible/playbooks/xmr-stak/site.yml \
    -e "xmr_stak_cpu_support=true \
    xmr_stak_hwloc_support=true \
    xmr_stak_pool_address=itns001.cryptogrot.io \
    xmr_stak_pool_port=6666 \
    xmr_stak_wallet_address=iz69...ihJF5FY7ed319xS...1kXj1N7yRa...Gmwfrh"

NVIDIA

$ ansible-playbook -i ~/ansible/inventories/xmr-stak/hosts \
    ~/ansible/playbooks/xmr-stak/site.yml \
    -e "xmr_stak_nvidia_support: true \
    xmr_stak_pool_address=itns001.cryptogrot.io \
    xmr_stak_pool_port=6666 \
    xmr_stak_wallet_address=iz69...ihJF5FY7ed319xS...1kXj1N7yRa...Gmwfrh"

AMD/ATI

$ ansible-playbook -i ~/ansible/inventories/xmr-stak/hosts \
    ~/ansible/playbooks/xmr-stak/site.yml \
    -e "xmr_stak_amd_support: true \
    xmr_stak_pool_address=itns001.cryptogrot.io \
    xmr_stak_pool_port=6666 \
    xmr_stak_wallet_address=iz69...ihJF5FY7ed319xS...1kXj1N7yRa...Gmwfrh"

Licencja

GPLv3

Informacje o autorze

cryptogrot - contact@cryptogrot.io - 2018

Zainstaluj
ansible-galaxy install cryptogrot.xmr-stak
Licencja
gpl-3.0
Pobrania
80
Właściciel
All my dreams are about mining !