Skip to content

anyproto/ansible-anysync

Repository files navigation

Ansible-anysync

Getting Started

Ansible role for any-sync daemons. Currently, this works on Debian and RHEL based linux systems. Tested platforms are:

  • Ubuntu 22.04
  • Amazon Linux 2

You can read the documentation on using any-sync here.

Prerequisites

  • Minimum Ansible v2.11 recommended
  • x1 Redis with Bloom module
  • x1-3 MongoDB (version ≥6 recommended) in Replica Set mode
  • S3 object storage: AWS S3 or self-hosted solution (for example minio)

Installing

Clone the current repository with roles

git clone https://github.com/anyproto/ansible-anysync.git

Use the playbook:

ansible-playbook any-sync.yml -i inventory.ini

Usage

  1. Define the structure of your any-sync cluster in the inventory.ini file. Minimum x3 any-sync-node and x1 nodes of other types, and also x1 Redis and x1-3 MongoDB in Replica Set mode. If not using AWS S3, specify Minio server address.
  2. Generate using any-sync-tools and then copy networkId(from client.yml file) of your network and peerId, peerKey, signingKey for each any-sync-* account. Paste this data into the group_vars/any_sync.yml file on the appropriate lines, replacing example data.
  3. You can then make configuration changes to each any-sync-* daemon by editing the corresponding default/main.yml within each role. The latest production versions of any-sync components are available here. Remember to change the MongoDB and Redis URLs if required.
  4. Import into your client app client.yml file that you should have created during generation in step 2.

Contribution

Thank you for your desire to develop Anytype together!

❤️ This project and everyone involved in it is governed by the Code of Conduct.

🧑‍💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.

🫢 For security findings, please email [email protected] and refer to our security guide for more information.

🤝 Follow us on Github and join the Contributors Community.


Made by Any — a Swiss association 🇨🇭

Licensed under MIT.

About

ansible roles for any-sync-* daemons

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages