This commit is contained in:
qiaofeng1227 2022-05-16 10:28:10 +08:00
parent c51cbf41b3
commit c86481ae87
12 changed files with 83 additions and 0 deletions

View 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版本

View File

View File

@ -0,0 +1 @@
# Template for create application

View File

View File

@ -0,0 +1 @@

View 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:

View File

View File

View 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

View 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