diff --git a/facts/miner/pool.yml b/facts/miner/pool.yml new file mode 100644 index 0000000..713a044 --- /dev/null +++ b/facts/miner/pool.yml @@ -0,0 +1,29 @@ +--- +# Create arrays of pools per coin. + +- name: Miner | Facts | Pools + set_fact: + nanopool_xmr: + - { "priority": 1, "name": "xmr-us-east1.nanopool.org:14433" } + - { "priority": 2, "name": "xmr-us-west1.nanopool.org:14433" } + - { "priority": 3, "name": "xmr-eu1.nanopool.org:14433" } + - { "priority": 4, "name": "xmr-eu2.nanopool.org:14433" } + - { "priority": 5, "name": "xmr-asia1.nanopool.org:14433" } + - { "priority": 6, "name": "xmr-jp1.nanopool.org:14433" } + - { "priority": 7, "name": "xmr-au1.nanopool.org:14433" } + nanoool_eth: + - { "priority": 1, "name": "eth-us-east1.nanopool.org:9999" } + - { "priority": 2, "name": "eth-us-west1.nanopool.org:9999" } + - { "priority": 3, "name": "eth-eu1.nanopool.org:9999" } + - { "priority": 4, "name": "eth-eu2.nanopool.org:9999" } + - { "priority": 5, "name": "eth-asia1.nanopool.org:9999" } + - { "priority": 6, "name": "eth-jp1.nanopool.org:9999" } + - { "priority": 7, "name": "eth-au1.nanopool.org:9999" } + ethermine_eth: + - { "priority": 1, "name": "us2.ethermine.org:5555" } + - { "priority": 2, "name": "us1.ethermine.org:5555" } + - { "priority": 3, "name": "eu1.ethermine.org:5555" } + - { "priority": 4, "name": "asia1.ethermine.org:5555" } + f2pool_eth: + - { "priority": 1, "name": "eth-na.f2pool.com:6688" } + - { "priority": 2, "name": "eth-backup.f2pool.com:6688" } diff --git a/facts/miner/wallet.yml b/facts/miner/wallet.yml new file mode 100644 index 0000000..f55ecdc --- /dev/null +++ b/facts/miner/wallet.yml @@ -0,0 +1,33 @@ +--- +# Load receiver addresses + +## Variables ## + +- name: Miner | Facts | Config File Name + set_fact: + wallet_file_remote: "InstallFiles/Miners/wallet.ini" + wallet_file_local: "{{ user_mfn.home }}/wallet.ini" + + +## Load Config ## + +- name: Miner | Facts | Config File | Download + shell: "scp {{ leet_ssh }}:{{ wallet_file_remote }} {{ wallet_file_local }}; chmod 600 {{ wallet_file_local }}" + +- name: Miner | Facts | Config File | Load XMR + set_fact: + wallet_xmr: "{{ lookup('ini', 'section=xmr, file='wallet_file_local) }}" + +- name: Miner | Facts | Config File | Load ETH + set_fact: + wallet_eth: "{{ lookup('ini', 'section=eth, file='wallet_file_local) }}" + + +## Verify ## + +- name: Miner | Facts | Config File | Load ETH + debug: + var: "{{ item }}" + loop: + - wallet_xmr + - wallet_eth \ No newline at end of file diff --git a/local.yml b/local.yml index 1ddf995..238b4fd 100644 --- a/local.yml +++ b/local.yml @@ -75,8 +75,12 @@ pre_tasks: - include: tasks/miner/debug.yml + - include: tasks/miner/acct_mgmt/users.yml + - include: facts/miner/wallet.yml + - include: facts/miner/pool.yml + # Installations tasks: ### CPU SECTION ###