Import __onlyoffice_document_server type from dot-cdist
This commit is contained in:
parent
ecd5398710
commit
610a91e6ef
2 changed files with 36 additions and 0 deletions
36
type/__onlyoffice_document_server/manifest
Normal file
36
type/__onlyoffice_document_server/manifest
Normal file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Please refer to
|
||||
# https://helpcenter.onlyoffice.com/installation/docs-community-install-ubuntu.aspx
|
||||
# for details.
|
||||
|
||||
os=$(cat "${__global:?}/explorer/os")
|
||||
case "$os" in
|
||||
debian|ubuntu)
|
||||
__apt_key onlyoffice \
|
||||
--keyserver hkp://keyserver.ubuntu.com:80 \
|
||||
--keyid CB2DE8E5
|
||||
|
||||
require="__apt_key/onlyoffice" __apt_source onlyoffice \
|
||||
--uri "https://download.onlyoffice.com/repo/debian" \
|
||||
--distribution squeeze \
|
||||
--component main
|
||||
|
||||
__package postgresql
|
||||
require="__package/postgresql" __postgres_role onlyoffice \
|
||||
--login --password 'onlyoffice'
|
||||
require="__postgres_role/onlyoffice" __postgres_database onlyoffice \
|
||||
--owner onlyoffice
|
||||
|
||||
__package nginx-extras
|
||||
__package rabbitmq-server
|
||||
|
||||
require="__apt_source/onlyoffice __postgres_database/onlyoffice \
|
||||
__package/nginx-extras __package/rabbitmq-server" __package \
|
||||
onlyoffice-documentserver
|
||||
;;
|
||||
*)
|
||||
echo "$os is not supported by this type. Exiting" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
0
type/__onlyoffice_document_server/singleton
Normal file
0
type/__onlyoffice_document_server/singleton
Normal file
Reference in a new issue