ttmc on master
Revised docs based on tips from… (compare)
- name: Register genesis time
shell: |
cat /home/{{ tendermint_user }}/.tendermint/config/genesis.json | jq .genesis_time
register: genesis_time
become: yes
- name: Register chain id
shell: |
cat /home/{{ tendermint_user }}/.tendermint/config/genesis.json | jq .chain_id
register: chain_id
become: yes
self.bigchaindb.store_bulk_transactions(self.block_transactions)
just before they are committed
I have been following this blockchain project called Algorand and they have just announced a really interesting program for developers.
You can become a developer ambassador and receive grants to help you build something on their network. If you have been on the fence about blockchain, I think this is a pretty cool opportunity to explore and get some rewards during quarantine :).
Highlights of the program:
i) Dev Grants: Right to apply for $35 Million Algorand Dev Grants
ii) DevAms Rewards: ($1000-$2000+) per mo for creating Tutorials and Coding Solutions
iii) Exclusive Algorand Developer Portal: with JavaScript, Python, Java, Golang Tutorials, Full scale blockchain tools & Templates
iv) Network: directly with Algorand's Engineering team and developers from across 50+ countries
v) Take part in free coding webinars, training sessions and community hackathons
vi) Join Algorand Official Forum and Discord
Check it out! https://community.algorand.org/ambassadors
TASK [Assert ansible version] ***********************************************************************************************************************************************
ok: [192.168.100.200] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [192.168.100.201] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [192.168.100.202] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [192.168.100.203] => {
"changed": false,
"msg": "All assertions passed"
}
ok: [192.168.100.204] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [preconfig : Users setup] **********************************************************************************************************************************************
changed: [192.168.100.204]
changed: [192.168.100.201]
changed: [192.168.100.202]
changed: [192.168.100.200]
changed: [192.168.100.203]
TASK [preconfig : Update apt] ***********************************************************************************************************************************************
changed: [192.168.100.204]
changed: [192.168.100.202]
changed: [192.168.100.203]
changed: [192.168.100.201]
changed: [192.168.100.200]
TASK [preconfig : Install build requirements] *******************************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.204]
ok: [192.168.100.201]
ok: [192.168.100.203]
ok: [192.168.100.202]
TASK [preconfig : Use the trusted NTP] **************************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.202]
changed: [192.168.100.204]
changed: [192.168.100.203]
TASK [preconfig : restart ntp] **********************************************************************************************************************************************
changed: [192.168.100.204]
changed: [192.168.100.203]
changed: [192.168.100.202]
changed: [192.168.100.201]
changed: [192.168.100.200]
TASK [mongodb : Add Mongo key] **********************************************************************************************************************************************
[WARNING]: Consider using the get_url or uri module rather than running 'wget'. If you need to use command because get_url or uri is insufficient you can add 'warn: false'
to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.203]
changed: [192.168.100.202]
changed: [192.168.100.204]
TASK [mongodb : Add ppa] ****************************************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.203]
changed: [192.168.100.202]
changed: [192.168.100.204]
TASK [mongodb : Update apt] *************************************************************************************************************************************************
[WARNING]: The value True (type bool) in a string field was converted to 'True' (type string). If this does not look like what you expect, quote the entire value to ensure
it does not change.
ok: [192.168.100.204]
ok: [192.168.100.201]
ok: [192.168.100.202]
ok: [192.168.100.200]
ok: [192.168.100.203]
TASK [mongodb : Install mongodb] ********************************************************************************************************************************************
ok: [192.168.100.202]
ok: [192.168.100.203]
ok: [192.168.100.200]
ok: [192.168.100.201]
ok: [192.168.100.204]
TASK [python : Install python] **********************************************************************************************************************************************
ok: [192.168.100.204]
ok: [192.168.100.203]
ok: [192.168.100.201]
ok: [192.168.100.202]
ok: [192.168.100.200]
TASK [python : Configure python for bigchaindb user] ************************************************************************************************************************
[WARNING]: Consider using 'become', 'become_method', and 'become_user' rather than running sudo
changed: [192.168.100.201]
changed: [192.168.100.200]
changed: [192.168.100.202]
changed: [192.168.100.203]
changed: [192.168.100.204]
TASK [tendermint : Configure tendermint user] *******************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.202]
changed: [192.168.100.203]
changed: [192.168.100.201]
changed: [192.168.100.204]
TASK [tendermint : Update apt] **********************************************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.204]
ok: [192.168.100.201]
ok: [192.168.100.202]
ok: [192.168.100.203]
TASK [tendermint : Install go] **********************************************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.204]
ok: [192.168.100.203]
ok: [192.168.100.201]
ok: [192.168.100.202]
TASK [tendermint : Initialize tendermint] ***********************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.204]
changed: [192.168.100.202]
changed: [192.168.100.203]
TASK [tendermint : Place systemd unit file] *********************************************************************************************************************************
ok: [192.168.100.202]
ok: [192.168.100.201]
ok: [192.168.100.204]
ok: [192.168.100.200]
ok: [192.168.100.203]
TASK [bigchaindb : Create BigchainDB environment] ***************************************************************************************************************************
changed: [192.168.100.204]
changed: [192.168.100.202]
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.203]
TASK [bigchaindb : Apply v2.0.0b9 fixes] ************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [bigchaindb : Install Bigchaindb] **************************************************************************************************************************************
changed: [192.168.100.201]
changed: [192.168.100.204]
changed: [192.168.100.200]
changed: [192.168.100.202]
changed: [192.168.100.203]
TASK [bigchaindb : Apply v2.0.0b9 fixes step 2.] ****************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [bigchaindb : Bigchaindb configuration] ********************************************************************************************************************************
changed: [192.168.100.202]
changed: [192.168.100.203]
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.204]
TASK [bigchaindb : Configure log folder] ************************************************************************************************************************************
[WARNING]: Consider using the file module with state=directory rather than running 'mkdir'. If you need to use command because file is insufficient you can add 'warn:
false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.202]
changed: [192.168.100.204]
changed: [192.168.100.203]
TASK [bigchaindb : Place systemd unit file] *********************************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.201]
ok: [192.168.100.203]
ok: [192.168.100.202]
ok: [192.168.100.204]
TASK [nginx : Update apt] ***************************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [nginx : Install nginx] ************************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [nginx : Download bigchaindb nginx config.] ****************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [nginx : Install ssl requirements] *************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [nginx : Create cert directory] ****************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [nginx : Generate certificate] *****************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [nginx : Populate ssl directory] ***************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [nginx : Edit nginx.conf] **********************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
skipping: [192.168.100.204]
TASK [postconfig : Connect nodes] *******************************************************************************************************************************************
included: /root/bigchaindb-node-ansible/roles/postconfig/tasks/network.yml for 192.168.100.200, 192.168.100.201, 192.168.100.202, 192.168.100.203, 192.168.100.204
TASK [postconfig : clear tendermint] ****************************************************************************************************************************************
[WARNING]: Consider using the file module with state=absent rather than running 'rm'. If you need to use command because file is insufficient you can add 'warn: false' to
this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.204]
changed: [192.168.100.202]
changed: [192.168.100.203]
TASK [postconfig : Register genesis time] ***********************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.203]
changed: [192.168.100.202]
changed: [192.168.100.204]
TASK [postconfig : Register chain id] ***************************************************************************************************************************************
changed: [192.168.100.201]
changed: [192.168.100.200]
changed: [192.168.100.202]
changed: [192.168.100.204]
changed: [192.168.100.203]
TASK [postconfig : Set chain id custom] *************************************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.201]
ok: [192.168.100.202]
ok: [192.168.100.203]
ok: [192.168.100.204]
TASK [postconfig : Register validator json string] **************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.203]
changed: [192.168.100.204]
changed: [192.168.100.202]
TASK [postconfig : Set validator power] *************************************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.201]
ok: [192.168.100.202]
ok: [192.168.100.203]
ok: [192.168.100.204]
TASK [postconfig : Register node id] ****************************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.204]
changed: [192.168.100.202]
changed: [192.168.100.203]
TASK [postconfig : Init variables] ******************************************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.201]
ok: [192.168.100.202]
ok: [192.168.100.203]
ok: [192.168.100.204]
TASK [postconfig : Compile multi-host arguents] *****************************************************************************************************************************
ok: [192.168.100.200] => (item=192.168.100.200)
ok: [192.168.100.200] => (item=192.168.100.201)
ok: [192.168.100.201] => (item=192.168.100.200)
ok: [192.168.100.201] => (item=192.168.100.201)
ok: [192.168.100.200] => (item=192.168.100.202)
ok: [192.168.100.202] => (item=192.168.100.200)
ok: [192.168.100.202] => (item=192.168.100.201)
ok: [192.168.100.203] => (item=192.168.100.200)
ok: [192.168.100.201] => (item=192.168.100.202)
ok: [192.168.100.203] => (item=192.168.100.201)
ok: [192.168.100.204] => (item=192.168.100.200)
ok: [192.168.100.200] => (item=192.168.100.203)
ok: [192.168.100.202] => (item=192.168.100.202)
ok: [192.168.100.201] => (item=192.168.100.203)
ok: [192.168.100.204] => (item=192.168.100.201)
ok: [192.168.100.203] => (item=192.168.100.202)
ok: [192.168.100.200] => (item=192.168.100.204)
ok: [192.168.100.202] => (item=192.168.100.203)
ok: [192.168.100.201] => (item=192.168.100.204)
ok: [192.168.100.204] => (item=192.168.100.202)
ok: [192.168.100.203] => (item=192.168.100.203)
ok: [192.168.100.202] => (item=192.168.100.204)
ok: [192.168.100.204] => (item=192.168.100.203)
ok: [192.168.100.203] => (item=192.168.100.204)
ok: [192.168.100.204] => (item=192.168.100.204)
TASK [postconfig : Compile global arguments based on host 0] ****************************************************************************************************************
ok: [192.168.100.200]
ok: [192.168.100.201]
ok: [192.168.100.202]
ok: [192.168.100.203]
fatal: [192.168.100.204]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'unicode object' has no attribute 'stdout'\n\nThe error appears to be in '/root/bigchaindb-node-ansible/roles/postconfig/tasks/network.yml': line 55, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Compile global arguments based on host 0\n ^ here\n"}
TASK [postconfig : script] **************************************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.202]
changed: [192.168.100.203]
TASK [postconfig : Enable services] *****************************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.202]
changed: [192.168.100.203]
TASK [postconfig : Restart services] ****************************************************************************************************************************************
changed: [192.168.100.200]
changed: [192.168.100.201]
changed: [192.168.100.203]
changed: [192.168.100.202]
TASK [postconfig : Enable nginx] ********************************************************************************************************************************************
skipping: [192.168.100.200]
skipping: [192.168.100.201]
skipping: [192.168.100.202]
skipping: [192.168.100.203]
PLAY RECAP ******************************************************************************************************************************************************************
192.168.100.200 : ok=36 changed=21 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0
192.168.100.201 : ok=36 changed=21 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0
192.168.100.202 : ok=36 changed=21 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0
192.168.100.203 : ok=36 changed=21 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0
192.168.100.204 : ok=32 changed=18 unreachable=0 failed=1 skipped=10 rescued=0 ignored=0
Runtime: 0:2:36 (hh:mm:ss)
root@bigchaindb_clone32_series_Ansible:~/scripts#