项目作者: ONLYOFFICE

项目描述 :
Ansible Role Document Server
高级语言:
项目地址: git://github.com/ONLYOFFICE/ansible-role-documentserver.git
创建时间: 2018-02-06T10:59:27Z
项目社区:https://github.com/ONLYOFFICE/ansible-role-documentserver

开源协议:GNU Affero General Public License v3.0

下载


Ansible Role: ONLYOFFICE Document Server

Test

Installs and configures ONLYOFFICE Document Server on RHEL/CentOS or Debian/Ubuntu servers.

Requirements

Installation requires PostgreSQL, RabbitMQ and Redis server in the system or network. Also this role requires root access, so either run it in a playbook with a global become: yes, or invoke the role in your playbook like:

  1. - hosts: documentserver
  2. roles:
  3. - role: ONLYOFFICE.documentserver
  4. become: yes

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

  1. ds_port: ""

The port where documentserver is running, if you do not set this variable, documentserver is will be runned by default on port 80.

  1. db_server_host: localhost

The IP address or the name of the host where the PostgreSQL server is running.

  1. db_server_name: onlyoffice

The name of a PostgreSQL database to be created on the image startup.

  1. db_server_user: onlyoffice

The new user name with superuser permissions for the PostgreSQL account.

  1. db_server_pass: onlyoffice

The password set for the PostgreSQL account.

  1. package_name: onlyoffice-documentserver

The package name of the ONLYOFFICE Document Server.

  1. package_state: latest | present

The package state of the ONLYOFFICE Document Server. If set to latest (default), a upgrade will be performed!

  1. redis_server_host: localhost

The IP address or the name of the host where the Redis server is running.

  1. redis_server_port: 6379

The Redis server port number.

  1. rabbitmq_server_host: localhost

The IP address or the name of the host where the RabbitMQ server is running.

  1. rabbitmq_server_user: guest

The new user name for the RabbitMQ account.

  1. rabbitmq_server_pass: guest

The password set for the RabbitMQ account.

  1. rabbitmq_server_vpath: /

The virtual path for the RabbitMQ server.

  1. proto: http

The option to add ssl configuration or not.

  1. jwt_enabled: true

The option for enable or disable JWT token. Enabled by default

  1. jwt_secret: ""

The custom secret set for jwt option. Random value by default

  1. jwt_header: ""

The custom header set for jwt option.

  1. key_file: "~/certs/tls.key"

The path to the key file.

  1. cert_file: "~/certs/tls.crt"

The path to the certificate file.

  1. cluster_mode: false

The option to enable or disable cluster mode.

  1. start_example: false

The option for starting example service after install.

  1. package_url: ""

The option for being able to install the package by URL.

Dependencies

  1. None.

Overwriting config values

The values in the local.json file can be redefined. To do this, you need to override the necessary values in the vars/main.yml file in the onlyoffice_local_json: {} field.

Example Playbook

  1. - hosts: all
  2. become: true
  3. vars:
  4. postgresql_global_config_options:
  5. - option: listen_addresses
  6. value: "*"
  7. - option: unix_socket_directories
  8. value: '{{ postgresql_unix_socket_directories | join(",") }}'
  9. - option: log_directory
  10. value: 'log'
  11. postgresql_hba_entries:
  12. - type: local
  13. database: all
  14. user: postgres
  15. auth_method: peer
  16. - type: local
  17. database: all
  18. user: all
  19. auth_method: peer
  20. - type: host
  21. database: all
  22. user: all
  23. address: 127.0.0.1/32
  24. auth_method: md5
  25. - type: host
  26. database: all
  27. user: all
  28. address: ::1/128
  29. auth_method: md5
  30. - type: host
  31. database: all
  32. user: all
  33. address: 0.0.0.0/0
  34. auth_method: md5
  35. postgresql_databases:
  36. - name: "{{ db_server_name }}"
  37. postgresql_users:
  38. - name: "{{ db_server_user }}"
  39. password: "{{ db_server_pass }}"
  40. rabbitmq_users:
  41. - user: "{{ rabbitmq_server_user }}"
  42. password: "{{ rabbitmq_server_pass }}"
  43. vhost: "{{ rabbitmq_server_vpath }}"
  44. configure_priv: .*
  45. read_priv: .*
  46. write_priv: .*
  47. tags: administrator
  48. rabbitmq_users_remove: []
  49. redis_bind_interface: 0.0.0.0
  50. roles:
  51. - geerlingguy.postgresql
  52. - ONLYOFFICE.rabbitmq
  53. - geerlingguy.redis
  54. - ONLYOFFICE.documentserver

License

GNU AGPL v3.0

Author Information

This role was created by ONLYOFFICE.