Ansible roles for
They include a Systemd service file both.
If you are familiar with Ansible, you can just re-use the modules in the way that fits you best. Otherwise follow these steps:
- Make sure you have ansible installed:
pip install ansible.
- Fill in
inventory.ymland place the hostnames of your nodes under the
- Edit the
group_vars/ipfs-cluster.ymlfile setting the right configuration values, including generating an IPFS Cluster secret with
od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n' ; echo
- Add a file for each hostname (filename is the hostname), to the
host_varsfolder as outlined in
host_vars/README.md, containing the necessary host-specific variables (example in the
make will run ansible for the
ipfs and the
ipfs-cluster roles, which
apply to the
[ipfs-cluster] inventory group. Upon successful,
ipfs-cluster should be running in the nodes (they are
/usr/local/bin and run by a created
ipfs system user).
You can use
systemctl status ipfs and
systemctl status ipfs-cluster to
check the status of the new services.
ipfs configuration has been generated using
will not automatically scan the local network.