Giter Club home page Giter Club logo

ansible-ipfs-cluster's Introduction

Ansible roles for go-ipfs and ipfs-cluster

This repository contains Ansible roles to install and run go-ipfs and IPFS Cluster.

They include a Systemd service file both.

Usage

If you are familiar with Ansible, you can just re-use the modules in the way that fits you best. Otherwise follow these steps:

  1. Make sure you have ansible installed: pip install ansible.
  2. Fill in inventory.yml and place the hostnames of your nodes under the [ipfs] group.
  3. Edit the group_vars/ipfs.yml and group_vars/ipfs_cluster.yml file setting the right configuration values, including generating an IPFS Cluster secret with od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n' ; echo
  4. Add a file for each hostname (filename is the hostname), to the host_vars folder as outlined in host_vars/README.md, containing the necessary host-specific variables (example in the host_vars README).
  5. Run make.

make will run ansible for the ipfs and the ipfs-cluster roles, which apply to the [ipfs] and [ipfs_cluster] inventory group. Upon successful, both go-ipfs and ipfs-cluster should be running in the nodes (they are installed under /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.

Note that ipfs configuration has been generated using profile=server, thus will not automatically scan the local network.

ansible-ipfs-cluster's People

Contributors

hsanjuan avatar jeffbr13 avatar letienne avatar olizilla avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.