Add a resource to handle config changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user