add app redmine

This commit is contained in:
qiaofeng1227 2022-05-16 11:39:58 +08:00
parent 3d5586c619
commit df6624755b
13 changed files with 75 additions and 1 deletions

View file

@ -1,4 +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-mysql |grep -i mysql_version |cut -d= -f2) |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

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,4 @@
- name: Check {{appname}} Version
shell: |
sudo echo "redmine version:" $(docker inspect redmine:$(docker images | grep redmine |awk '{print $2}') |grep -m 1 "REDMINE_VERSION"|cut -d'=' -f2|cut -d"\"" -f1) |sudo tee -a /data/logs/install_version.txt
sudo echo "mysql version:" $(docker inspect mysql:$(docker images | grep mysql |awk '{print $2}') |grep -m 1 "MYSQL_VERSION" |cut -d '=' -f 2 |cut -d '-' -f 1) |sudo tee -a /data/logs/install_version.txt

View file

@ -0,0 +1,31 @@
common_install_docker: True
docker_install: False
mysql_install_server: False
mysql_version: "5.7"
docker_applications: [phpmyadmin]
nginx_appname: "redmine"
nginx_vhost_mode: "reverse"
nginx_reverse_proxy_port: "9007"
nginx_certbot: True
init_docker:
redmine:
db: redmine
db_name: redmine
db_username: root
db_password: "123456"
admin_username: admin
admin_password: "admin"
service_after: "docker.service"
compose_path: "/data/apps/redmine/docker-compose.yml"
compose_commands:
- sudo sed -i "s/123456/$new_password/g" /data/apps/redmine/.env
volumes:
- /data/apps/redmine/volumes
commands:
- sleep 60
- app_pass=$(echo -n $new_password | sha1sum|awk 'BEGIN{ORS=""}{print $1}'|sha1sum|awk '{print $1}')
- sudo mysql -uroot -p$new_password -h 127.0.0.1 redmine -e "update users set hashed_password = '$app_pass', salt ='', admin = 1 where login = 'admin';"