News for hackers. Stuff that matters.
Re:Ethereum miner with Terraform by rozenmd on Saturday January 27, 2018 @11:22PM (#16249796)
When you pass in a variable into terraform it becomes an environment variable, presumably used by the precompiled code
Re:Ethereum miner with Terraform by juliosueiras on Saturday January 27, 2018 @11:29PM (#16249814)
it will make more sense with something like

  data "template_file" "eth_service" {
    	filename = "./files/eth.service"
  	vars {
  		wallet_address = 
  "${var.wallet_address}"
  	}
  
  }

with

ExecStart=/tmp/ethminer -G -F eth-us.dwarfpool.com:80/${wallet_address}

Re:Ethereum miner with Terraform by jlgaddis on Saturday January 27, 2018 @11:30PM (#16249820)
Ok.

In this case, though, the included systemd unit launches "ethminer" with a hard-coded wallet address passed in.