chef/site-cookbooks/ipfs
Greg eaaaacf97f Remove placeholder text from generated Chef cookbooks 2017-05-08 12:07:32 +02:00
..
attributes Fixed code styling 2017-04-28 15:45:59 +02:00
recipes Fixed code styling 2017-04-28 15:45:59 +02:00
resources Fixed code styling 2017-04-28 15:45:59 +02:00
templates/default Support Ubuntu 14.04 and Debian 8 2017-02-27 18:41:25 +01:00
test/integration/default/serverspec Fixed code styling 2017-04-28 15:45:59 +02:00
.gitignore Support Ubuntu 14.04 and Debian 8 2017-02-27 18:41:25 +01:00
.kitchen.docker.yml Add missing files from ipfs cookbook 2017-03-03 14:24:42 +01:00
.kitchen.yml Use chef_zero in Test Kitchen 2017-03-20 13:25:29 +00:00
.travis.yml Add missing files from ipfs cookbook 2017-03-03 14:24:42 +01:00
Berksfile Support Ubuntu 14.04 and Debian 8 2017-02-27 18:41:25 +01:00
Berksfile.lock Support Ubuntu 14.04 and Debian 8 2017-02-27 18:41:25 +01:00
CHANGELOG.md Remove placeholder text from generated Chef cookbooks 2017-05-08 12:07:32 +02:00
Gemfile Support Ubuntu 14.04 and Debian 8 2017-02-27 18:41:25 +01:00
Gemfile.lock Support Ubuntu 14.04 and Debian 8 2017-02-27 18:41:25 +01:00
LICENSE Change ipfs license to Apache 2.0 2017-03-19 19:57:43 +00:00
README.md Add a resource to handle config changes 2017-03-20 19:38:12 +00:00
Rakefile Add missing files from ipfs cookbook 2017-03-03 14:24:42 +01:00
chefignore Support Ubuntu 14.04 and Debian 8 2017-02-27 18:41:25 +01:00
metadata.rb Fixed code styling 2017-04-28 15:45:59 +02:00

README.md

ipfs Cookbook

This cookbook installs ipfs and starts it as a daemon

Requirements

Platforms

This cookbook is tested on Ubuntu 16.06, 14.04 and Debian 8 using Test Kitchen. It currently only supports 64bit platforms

Chef

Cookbook dependencies

  • ark to download and uncompress the Go IPFS package

Usage

ipfs::default

Just include ipfs in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[ipfs]"
  ]
}

Attributes

  • node.['ipfs']['version'] - the Go IPFS version to download from the official site (64bit)
  • node['ipfs']['checksum'] - the SHA256 checksum for the package
  • node['ipfs']['config']['swarm']['addr_filter'] - the network ranges to not connect to. This will stop platforms like Hetzner to block your server (https://github.com/ipfs/go-ipfs/issues/1226)

Resources

ipfs_config sets the config. Supports hashes, arrays, booleans and strings. Does not change anything if the config already has that value, and restarts the server automatically

ipfs_config "Gateway.Writable" do
  true
 end

License and Authors

Authors: Kosmos

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.