cryptogrot.xmr-stak
Ansible cryptogrot.xmr-stak Role
This role will set up and configure the mining tool xmr-stak
on a Linux system. Using this role allows you to configure xmr-stak
with the required backend from the latest official source code available on GitHub.
Overview
- Features
- Quickstart
- Pre-requirements
- Deployment
- CPU backend
- NVIDIA backend (experimental)
- AMD/ATI backend (experimental)
- Advanced setup and configuration
Features
Supported backend types:
- NVIDIA (using CUDA 9.1)
- AMD/ATI (using OpenCL)
- CPU
Supported algorithms:
- Cryptonight (default configuration)
- (Includes Monero, Sumokin, Electroneum, Intense, etc.)
- Cryptonight-light
- (Includes AEON, etc.)
Quickstart
Pre-requirements
Ubuntu/Debian
$ sudo apt install python-pip -y
Fedora
$ sudo dnf install python-pip -y
CentOS 7
$ sudo yum install python-pip -y
Deployment
$ 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: Install xmr-stak miner program
hosts: all
user: debian
become: true
roles:
- cryptogrot.xmr-stak
EOF
$ ansible-galaxy install --force --roles-path ~/ansible/roles cryptogrot.xmr-stak
Ansible inventory should be created in ~/ansible/inventories/xmr-stak/hosts
. Here is an example for different distributions.
[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"
License
GPLv3
Author Information
cryptogrot - contact@cryptogrot.io - 2018
Informazioni sul progetto
Install and configure xmr-stak miner for cryptonight* currencies on Linux
Installa
ansible-galaxy install cryptogrot.xmr-stak
Licenza
gpl-3.0
Download
80
Proprietario
All my dreams are about mining !