From 696d7cd561ed2084c66b405234e04c248e00a2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Fri, 26 Apr 2019 16:54:02 +0200 Subject: [PATCH] Set up kosmos-hubot to use ipfs-cluster That way a new document will be added and pinned on all members of the cluster Fixes #46 --- site-cookbooks/kosmos-hubot/attributes/default.rb | 4 +++- site-cookbooks/kosmos-hubot/metadata.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/site-cookbooks/kosmos-hubot/attributes/default.rb b/site-cookbooks/kosmos-hubot/attributes/default.rb index 9d27894..69ecded 100644 --- a/site-cookbooks/kosmos-hubot/attributes/default.rb +++ b/site-cookbooks/kosmos-hubot/attributes/default.rb @@ -1,5 +1,7 @@ node.default['hal8000']['kredits']['ipfs_host'] = 'localhost' -node.default['hal8000']['kredits']['ipfs_port'] = '5001' +# Use the running ipfs-cluster, so adding documents adds and pins them on all +# members of the cluster +node.default['hal8000']['kredits']['ipfs_port'] = '9095' node.default['hal8000']['kredits']['ipfs_protocol'] = 'http' node.default['hal8000']['kredits']['room'] = '#kosmos' node.default['hal8000']['kredits']['provider_url'] = 'https://rinkeby.infura.io/v3/c5e74367261d475ab935e2f0e726482f' diff --git a/site-cookbooks/kosmos-hubot/metadata.rb b/site-cookbooks/kosmos-hubot/metadata.rb index bbd1a5b..6458988 100644 --- a/site-cookbooks/kosmos-hubot/metadata.rb +++ b/site-cookbooks/kosmos-hubot/metadata.rb @@ -4,7 +4,7 @@ maintainer_email 'mail@kosmos.org' license 'MIT' description 'Configures Kosmos chat bots' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.1.0' +version '0.1.1' depends 'kosmos-nodejs' depends 'kosmos-redis'