TechDufus / FluxNodeInstall

Install a RunOnFlux Node with 100% Ansible.
MIT License
8 stars 4 forks source link

[BUG] Providing collat-specific EPS is overwritten by watchdog.eps value #68

Closed TechDufus closed 12 months ago

TechDufus commented 12 months ago

Environment

Self-Hosted

System

Ubuntu 22.04 LTS

Version

main

Describe the problem

With the following user.yml vars, it produces the below watchdog/config.js file. The EPS closest to the collateral should win.

user:
  dufus:
    zelid: 123123
    kda: '123123'
    identity_key: '123123'
    force_new_chain: false
    watchdog:
      flux_update: '1'
      daemon_update: '1'
      bench_update: '1'
      eps: '180'
      discord_webhook: 'https://123.com'
      discord_ping: '321321'
    t0:
      collateral_tx: 'collat-0'
    t1:
      collateral_tx: 'collat-1'
    t2:
      collateral_tx: 'collat-2'
    t3:
      collateral_tx: 'collat-3'
      eps: '90'

~/watchdog/config.js

module.exports = {
  label:              'cumulus0',
  tier_eps_min:       '180',
  zelflux_update:     '1',
  zelcash_update:     '1',
  zelbench_update:    '1',
  action:             '1',
  ping:               '321321',
  web_hook_url:       'https://123.com',
  telegram_alert:     '0',
  telegram_bot_token: '0',
  telegram_chat_id:   '0'
}

Additional info

No response

Please tick the boxes

TechDufus commented 12 months ago

User-error... I was pointing to the wrong user.yml.

ID: 10-T error