Add a resource to handle config changes

This commit is contained in:
Greg Karékinian
2017-03-20 19:38:12 +00:00
parent 48b3534fd8
commit 3f81310109
3 changed files with 46 additions and 14 deletions

View File

@@ -11,7 +11,9 @@ It currently only supports 64bit platforms
### Chef
- Chef 12.0 or later
- Chef 12.5 or later (we are providing a
[https://docs.chef.io/custom_resources.html](Custom Resource) to configure
IPFS
### Cookbook dependencies
@@ -41,6 +43,18 @@ site (64bit)
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
```ruby
ipfs_config "Gateway.Writable" do
true
end
```
## License and Authors
Authors: Kosmos