/server.seafile

Ansible role for Seafile (for SHA2017)

Primary LanguageShell

Role Name

Seafile, install seafile services on the destination

Requirements

Needed roles: (from https://github.com/sha2017)

  • server.baseline
  • server.nginx-php7
  • server.mariadb

Documentation

Prepare the installation

Do the installation

  • put stuff below into a playbook
  • invoke that playbook

Redo Seafile installation

All Seafile data (files and databases) will be erased

  • on the seafile server: rm -rf /opt/seafile/data
  • invoke the playbook

Relevant services

Use with systemctl start|stop|restart|status ...

  • seafile
  • seahub
  • nginx
  • mysql

Example Playbook

- hosts: seafile
  become: true
  roles:
    - server.baseline
    - server.nginx-php7
    - server.mariadb
    - server.seafile

Changelog

  • Peer reviewed
  • Added testing playbook + makefile to create an easy testing enviroment with Vagrant (see testing/Makefile | testing/vagrant.yml)

TODO

  • in vars: only first IPv4 address is used, needs improvement to include other IPv4 and IPv6 addresses
  • test handler

License

WTFPL

Author(s)

Derik van Zuetphen, derik@sha2017.org Maikel van Leeuwen, maikel@sha2017.org