mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 00:50:30 +00:00
add app redmine
This commit is contained in:
parent
3d5586c619
commit
df6624755b
13 changed files with 75 additions and 1 deletions
|
@ -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
|
||||
|
|
18
apps/roles/redmine/CHANGELOG.md
Normal file
18
apps/roles/redmine/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/redmine/Notes.md
Normal file
0
apps/roles/redmine/Notes.md
Normal file
1
apps/roles/redmine/README.md
Normal file
1
apps/roles/redmine/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Template for create application
|
0
apps/roles/redmine/defaults/main.yml
Normal file
0
apps/roles/redmine/defaults/main.yml
Normal file
0
apps/roles/redmine/files/template.service
Normal file
0
apps/roles/redmine/files/template.service
Normal file
1
apps/roles/redmine/handlers/main.yml
Normal file
1
apps/roles/redmine/handlers/main.yml
Normal file
|
@ -0,0 +1 @@
|
|||
|
19
apps/roles/redmine/meta/main.yml
Normal file
19
apps/roles/redmine/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/redmine/tasks/Debian.yml
Normal file
0
apps/roles/redmine/tasks/Debian.yml
Normal file
0
apps/roles/redmine/tasks/RedHat.yml
Normal file
0
apps/roles/redmine/tasks/RedHat.yml
Normal file
4
apps/roles/redmine/tasks/main.yml
Normal file
4
apps/roles/redmine/tasks/main.yml
Normal 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
|
0
apps/roles/redmine/templates/template.conf
Normal file
0
apps/roles/redmine/templates/template.conf
Normal file
31
apps/roles/redmine/vars/main.yml
Normal file
31
apps/roles/redmine/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_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';"
|
Loading…
Reference in a new issue