mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
superset
This commit is contained in:
parent
c51cbf41b3
commit
c86481ae87
18
apps/roles/superset/CHANGELOG.md
Normal file
18
apps/roles/superset/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/superset/Notes.md
Normal file
0
apps/roles/superset/Notes.md
Normal file
1
apps/roles/superset/README.md
Normal file
1
apps/roles/superset/README.md
Normal file
@ -0,0 +1 @@
|
||||
# Template for create application
|
0
apps/roles/superset/defaults/main.yml
Normal file
0
apps/roles/superset/defaults/main.yml
Normal file
0
apps/roles/superset/files/template.service
Normal file
0
apps/roles/superset/files/template.service
Normal file
1
apps/roles/superset/handlers/main.yml
Normal file
1
apps/roles/superset/handlers/main.yml
Normal file
@ -0,0 +1 @@
|
||||
|
19
apps/roles/superset/meta/main.yml
Normal file
19
apps/roles/superset/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/superset/tasks/Debian.yml
Normal file
0
apps/roles/superset/tasks/Debian.yml
Normal file
0
apps/roles/superset/tasks/RedHat.yml
Normal file
0
apps/roles/superset/tasks/RedHat.yml
Normal file
5
apps/roles/superset/tasks/main.yml
Normal file
5
apps/roles/superset/tasks/main.yml
Normal file
@ -0,0 +1,5 @@
|
||||
- name: Check {{appname}} Version
|
||||
shell: |
|
||||
sudo echo -e "superset_version: `docker exec -it superset-app /bin/bash -c 'cat /app/superset-frontend/package.json |grep version |sed -n 1p |cut -d: -f 2'`" |sudo tee -a /data/logs/install_version.txt
|
||||
sudo echo -e "postgres_version: `docker exec -it superset-db /bin/bash -c 'psql -V |cut -d " " -f 3'`" |sudo tee -a /data/logs/install_version.txt
|
||||
sudo echo -e "redis_version: `docker exec -it superset-cache /bin/bash -c '/usr/local/bin/redis-server -v |cut -d " " -f 3 |cut -d "=" -f 2'`" |sudo tee -a /data/logs/install_version.txt
|
0
apps/roles/superset/templates/template.conf
Normal file
0
apps/roles/superset/templates/template.conf
Normal file
39
apps/roles/superset/vars/main.yml
Normal file
39
apps/roles/superset/vars/main.yml
Normal file
@ -0,0 +1,39 @@
|
||||
# global
|
||||
region: "0"
|
||||
|
||||
common_install_docker: False
|
||||
docker_install: True
|
||||
|
||||
nginx_certbot: true
|
||||
nginx_reverse_proxy_port: "9001"
|
||||
|
||||
# docker
|
||||
docker_applications:
|
||||
- pgadmin
|
||||
|
||||
init_docker:
|
||||
pgadmin:
|
||||
admin_username: user@domain.com
|
||||
admin_password: "SuperSecret"
|
||||
service_after: "docker.service"
|
||||
compose_path: "/data/apps/pgadmin/docker-compose.yml"
|
||||
compose_commands:
|
||||
- sudo sed -i "s/SuperSecret/$new_password/g" /data/apps/pgadmin/docker-compose.yml
|
||||
superset:
|
||||
admin_username: admin
|
||||
admin_password: "admin"
|
||||
db: postgresql
|
||||
db_name: superset
|
||||
db_username: superset
|
||||
db_password: "superset"
|
||||
service_after: "docker.service"
|
||||
compose_path: "/data/apps/superset/docker-compose.yml"
|
||||
compose_commands:
|
||||
- sudo sed -i "s/DB_POSTGRESQL_PASSWORD=superset/DB_POSTGRESQL_PASSWORD=$new_password/g" /data/apps/superset/.env
|
||||
- sudo sed -i 's/ADMIN_PASSWORD="admin"/ADMIN_PASSWORD="'$new_password'"/g' /data/apps/superset/src/docker/docker-init.sh
|
||||
volumes:
|
||||
- /data/apps/superset/volumes
|
||||
commands:
|
||||
- sudo docker-compose -f /data/apps/superset/docker-compose.yml restart
|
||||
- sleep 180s
|
||||
- if [ -d "/usr/local/aegis" ];then docker exec -it superset-app mkdir /root/.pip;docker cp /root/.pip/pip.conf superset-app:/root/.pip/;docker exec -it superset-app pip install elasticsearch-dbapi;fi
|
Loading…
Reference in New Issue
Block a user