Skip to content

Commit

Permalink
Add more information about the role
Browse files Browse the repository at this point in the history
  • Loading branch information
bmillemathias committed Dec 25, 2020
1 parent 1734cac commit d14d98b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Ansible Role: seaweedfs

Provision installation for [seaweedfs](https://github.com/chrislusf/seaweedfs) a distributed object storage.
It installs the components master, volume and filer.
Provision installation of [seaweedfs](https://github.com/chrislusf/seaweedfs) a distributed object storage.
This role installs the components master, volume and filer.

This role was based on the work of egeneralov.seaweedfs

## Inventory

When used in a play targetting group `all` the role will use all nodes and deploy in such a way

* a master server on the first node of the group
* a volume server on each node
* a filer server on the first node of the group

You can also define groups `weed_master`, `weed_filer`, to choose where to deploy the server master and filer accordingly.
In such case, the volume servers will be configured correctly to contact the master server(s).

## Requirements

None
Expand All @@ -15,9 +27,7 @@ None
weed.ip: "{{ ansible_default_ipv4.address }}"
weed.location: /usr/local/sbin # where the binary weed is installed
weed.user.name: seaweed
weed.user.uid:
weed.user.gid:
weed.defaultReplication: "002"
weed.defaultReplication: "001"
weed.master.port: 9333
weed.master.dir: "/opt/seaweedfs/{{ domain }}/master"
weed.volume.port: 8080
Expand All @@ -33,7 +43,7 @@ None

MIT

## Author Information
## Authors Information

Eduard Generalov <[email protected]>
Baptiste Mille-Mathias <[email protected]>
* Eduard Generalov <[email protected]>
* Baptiste Mille-Mathias <[email protected]>
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ default_weed:
user:
name: seaweed
# defaultReplication is set by a triplet
# 002 => 2 replicas in the same rack
defaultReplication: "002"
# 001 => 1 replica in the same rack
defaultReplication: "001"
master:
port: 9333
dir: "/opt/seaweedfs/{{ domain }}/master"
Expand Down

0 comments on commit d14d98b

Please sign in to comment.