mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
add app nextcloud owncloud
This commit is contained in:
parent
df6624755b
commit
c9e0f6cb52
18
apps/roles/nextcloud/CHANGELOG.md
Normal file
18
apps/roles/nextcloud/CHANGELOG.md
Normal file
@ -0,0 +1,18 @@
|
||||
# CHANGELOG
|
||||
|
||||
## To do
|
||||
|
||||
1. 可视化管理工具
|
||||
2. AmazonLinux支持
|
||||
|
||||
## Logs
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 2020-02-14 redis-version版本输出
|
||||
* 2020-02-13 redis-version版本输出
|
||||
|
||||
### Features
|
||||
|
||||
* 2020-02-14 增加GUI工具
|
||||
* 2020-02-13 增加2.8版本
|
0
apps/roles/nextcloud/Notes.md
Normal file
0
apps/roles/nextcloud/Notes.md
Normal file
1
apps/roles/nextcloud/README.md
Normal file
1
apps/roles/nextcloud/README.md
Normal file
@ -0,0 +1 @@
|
||||
# Template for create application
|
0
apps/roles/nextcloud/defaults/main.yml
Normal file
0
apps/roles/nextcloud/defaults/main.yml
Normal file
0
apps/roles/nextcloud/files/template.service
Normal file
0
apps/roles/nextcloud/files/template.service
Normal file
1
apps/roles/nextcloud/handlers/main.yml
Normal file
1
apps/roles/nextcloud/handlers/main.yml
Normal file
@ -0,0 +1 @@
|
||||
|
19
apps/roles/nextcloud/meta/main.yml
Normal file
19
apps/roles/nextcloud/meta/main.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
dependencies: []
|
||||
|
||||
galaxy_info:
|
||||
author:
|
||||
description:
|
||||
company:
|
||||
license:
|
||||
min_ansible_version:
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
- 7
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- 18.04
|
||||
|
||||
galaxy_tags:
|
||||
|
0
apps/roles/nextcloud/tasks/Debian.yml
Normal file
0
apps/roles/nextcloud/tasks/Debian.yml
Normal file
0
apps/roles/nextcloud/tasks/RedHat.yml
Normal file
0
apps/roles/nextcloud/tasks/RedHat.yml
Normal file
4
apps/roles/nextcloud/tasks/main.yml
Normal file
4
apps/roles/nextcloud/tasks/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
- name: Check {{appname}} Version
|
||||
shell: |
|
||||
sudo echo "metabase version:" $(curl https://api.github.com/repos/metabase/metabase/releases/latest |jq -r .tag_name) |sudo tee -a /data/logs/install_version.txt
|
||||
sudo echo "mysql version:" $(docker inspect metabase-db |grep -i mysql_version |cut -d= -f2) |sudo tee -a /data/logs/install_version.txt
|
0
apps/roles/nextcloud/templates/template.conf
Normal file
0
apps/roles/nextcloud/templates/template.conf
Normal file
31
apps/roles/nextcloud/vars/main.yml
Normal file
31
apps/roles/nextcloud/vars/main.yml
Normal file
@ -0,0 +1,31 @@
|
||||
common_install_docker: True
|
||||
docker_install: False
|
||||
|
||||
mysql_install_server: False
|
||||
mysql_version: "5.7"
|
||||
|
||||
docker_applications: [phpmyadmin]
|
||||
|
||||
nginx_reverse_proxy_port: "9001"
|
||||
nginx_certbot: True
|
||||
|
||||
init_docker:
|
||||
nextcloud:
|
||||
admin_username: "admin@metabase.local"
|
||||
admin_password: "123456"
|
||||
db: mysql
|
||||
db_name: metabase
|
||||
db_username: root
|
||||
db_password: "123456"
|
||||
service_after: "docker.service"
|
||||
compose_path: "/data/apps/nextcloud/docker-compose.yml"
|
||||
compose_commands:
|
||||
- sudo sed -i "s/123456/$new_password/g" /data/apps/nextcloud/.env
|
||||
volumes:
|
||||
- /data/apps/metabase/volumes
|
||||
commands:
|
||||
- sudo systemctl stop nginx
|
||||
- cd /opt
|
||||
- chmod +x create_users.sh
|
||||
- MB_HOSTNAME=localhost MB_PORT=9001 MB_ADMIN_PASSWORD=$new_password ./create_users.sh
|
||||
- sudo systemctl start nginx
|
18
apps/roles/owncloud/CHANGELOG.md
Normal file
18
apps/roles/owncloud/CHANGELOG.md
Normal file
@ -0,0 +1,18 @@
|
||||
# CHANGELOG
|
||||
|
||||
## To do
|
||||
|
||||
1. 可视化管理工具
|
||||
2. AmazonLinux支持
|
||||
|
||||
## Logs
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 2020-02-14 redis-version版本输出
|
||||
* 2020-02-13 redis-version版本输出
|
||||
|
||||
### Features
|
||||
|
||||
* 2020-02-14 增加GUI工具
|
||||
* 2020-02-13 增加2.8版本
|
0
apps/roles/owncloud/Notes.md
Normal file
0
apps/roles/owncloud/Notes.md
Normal file
1
apps/roles/owncloud/README.md
Normal file
1
apps/roles/owncloud/README.md
Normal file
@ -0,0 +1 @@
|
||||
# Template for create application
|
0
apps/roles/owncloud/defaults/main.yml
Normal file
0
apps/roles/owncloud/defaults/main.yml
Normal file
0
apps/roles/owncloud/files/template.service
Normal file
0
apps/roles/owncloud/files/template.service
Normal file
1
apps/roles/owncloud/handlers/main.yml
Normal file
1
apps/roles/owncloud/handlers/main.yml
Normal file
@ -0,0 +1 @@
|
||||
|
19
apps/roles/owncloud/meta/main.yml
Normal file
19
apps/roles/owncloud/meta/main.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
dependencies: []
|
||||
|
||||
galaxy_info:
|
||||
author:
|
||||
description:
|
||||
company:
|
||||
license:
|
||||
min_ansible_version:
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
- 7
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- 18.04
|
||||
|
||||
galaxy_tags:
|
||||
|
0
apps/roles/owncloud/tasks/Debian.yml
Normal file
0
apps/roles/owncloud/tasks/Debian.yml
Normal file
0
apps/roles/owncloud/tasks/RedHat.yml
Normal file
0
apps/roles/owncloud/tasks/RedHat.yml
Normal file
4
apps/roles/owncloud/tasks/main.yml
Normal file
4
apps/roles/owncloud/tasks/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
- name: Check {{appname}} Version
|
||||
shell: |
|
||||
sudo echo "metabase version:" $(curl https://api.github.com/repos/metabase/metabase/releases/latest |jq -r .tag_name) |sudo tee -a /data/logs/install_version.txt
|
||||
sudo echo "mysql version:" $(docker inspect metabase-db |grep -i mysql_version |cut -d= -f2) |sudo tee -a /data/logs/install_version.txt
|
0
apps/roles/owncloud/templates/template.conf
Normal file
0
apps/roles/owncloud/templates/template.conf
Normal file
31
apps/roles/owncloud/vars/main.yml
Normal file
31
apps/roles/owncloud/vars/main.yml
Normal file
@ -0,0 +1,31 @@
|
||||
common_install_docker: True
|
||||
docker_install: False
|
||||
|
||||
mysql_install_server: False
|
||||
mysql_version: "5.7"
|
||||
|
||||
docker_applications: [phpmyadmin]
|
||||
|
||||
nginx_reverse_proxy_port: "9001"
|
||||
nginx_certbot: True
|
||||
|
||||
init_docker:
|
||||
metabase:
|
||||
admin_username: "admin@metabase.local"
|
||||
admin_password: "123456"
|
||||
db: mysql
|
||||
db_name: metabase
|
||||
db_username: root
|
||||
db_password: "123456"
|
||||
service_after: "docker.service"
|
||||
compose_path: "/data/apps/metabase/docker-compose.yml"
|
||||
compose_commands:
|
||||
- sudo sed -i "s/123456/$new_password/g" /data/apps/metabase/.env
|
||||
volumes:
|
||||
- /data/apps/metabase/volumes
|
||||
commands:
|
||||
- sudo systemctl stop nginx
|
||||
- cd /opt
|
||||
- chmod +x create_users.sh
|
||||
- MB_HOSTNAME=localhost MB_PORT=9001 MB_ADMIN_PASSWORD=$new_password ./create_users.sh
|
||||
- sudo systemctl start nginx
|
Loading…
Reference in New Issue
Block a user