User avatar
xsb
Posts: 1
Joined: Sat Dec 26, 2015 12:26 pm

Donate BTC of your choice to 1xsb94c9AMkj8GzhqYEJkieCXBpCZPvaF

Contact: Website Twitter Telegram

I made a Bitcoin module for Ansible

Sat Dec 26, 2015 12:36 pm

Any Ansible user here? I made a module for automating Bitcoin transactions:
https://github.com/xsb/ansible-bitcoin-module

Some of the use cases I can think of so far:

Machine to machine payments. Imagine a playbook in which Ansible goes to nodeA and asks for a new address, then goes to nodeB and makes it send some amount to the nodeA address. Of course the amount can be based on facts that happened, based on what other modules can discover.

Keep a maximum amount in an internet exposed hot wallet. Your node is creating addressess for e-comerce and people is buying things to you, but you don't want your node to keep more than X BTC around, so you make a playbook to ensure that Total - X = amount is sent to a cold wallet every once in a while, and you are ensuring a maximum amount exposed in the case of an intrusion or something bad happening.

Next thing I'm going to implement is:

"Wait until payment is done". With this, the first step of a provisioning playbook could be to wait until you have enough money to pay for the resources you're going to launch. The final user could be asked for an amount and presented by a recently generated address. The playbook will follow only if the money is there and confirmed.

Return to “Development & Technical Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests