mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
add ES config files to initial setup & fix ES upgrade script
This commit is contained in:
parent
6794b12555
commit
fab1e4eb6b
@ -1,7 +1,9 @@
|
||||
# Changelog Fab Manager
|
||||
|
||||
- Applied rubocop roles to ruby files
|
||||
- Prevent running elastic-upgrade script with wrong awk version
|
||||
- Applied Rubocop rules to some ruby files
|
||||
- Prevent running elastic-upgrade script with wrong awk version
|
||||
- Fix ElasticSearch upgrade script
|
||||
- Setup ElasticSearch configuration files for new installations
|
||||
|
||||
# v2.7.3 2018 December 03
|
||||
|
||||
|
@ -35,6 +35,7 @@ services:
|
||||
soft: -1
|
||||
hard: -1
|
||||
volumes:
|
||||
- ${PWD}/elasticsearch/config:/usr/share/elasticsearch/config
|
||||
- ${PWD}/elasticsearch:/usr/share/elasticsearch/data
|
||||
restart: always
|
||||
|
||||
|
@ -5,6 +5,7 @@ prepare_config()
|
||||
FABMANAGER_PATH=${1:-/apps/fabmanager}
|
||||
|
||||
mkdir -p "$FABMANAGER_PATH/example"
|
||||
mkdir -p "$FABMANAGER_PATH/elasticsearch/config"
|
||||
|
||||
# fab-manager environment variables
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/env.example > "$FABMANAGER_PATH/example/env.example"
|
||||
@ -16,6 +17,10 @@ prepare_config()
|
||||
# let's encrypt configuration
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/webroot.ini.example > "$FABMANAGER_PATH/example/webroot.ini.example"
|
||||
|
||||
# ElasticSearch configuration files
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/elasticsearch.yml > "$FABMANAGER_PATH/elasticsearch/config/elasticsearch.yml"
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/log4j2.properties > "$FABMANAGER_PATH/elasticsearch/config/log4j2.properties"
|
||||
|
||||
# docker-compose
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/docker-compose.yml > "$FABMANAGER_PATH/docker-compose.yml"
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ upgrade_compose()
|
||||
# set the configuration directory
|
||||
dir=$(echo "${dir//[$'\t\r\n ']}/config")
|
||||
# insert configuration directory into docker-compose bindings
|
||||
awk "BEGIN { FS=\"\n\"; RS=\"\";} { print gensub(/(image: elasticsearch:2\.4(\n|.)+)volumes:\n/, \"\\1volumes:\n - ${dir}:/usr/share/elasticsearch/config\n\", \"g\") }" "$FM_PATH/docker-compose.yml" > "$FM_PATH/.awktmpfile" && mv "$FM_PATH/.awktmpfile" "$FM_PATH/docker-compose.yml"
|
||||
awk "BEGIN { FS=\"\n\"; RS=\"\";} { print gensub(/(image: elasticsearch:2\.4(\n|.)+)volumes:\n/, \"\\\\1volumes:\n - ${dir}:/usr/share/elasticsearch/config\n\", \"g\") }" "$FM_PATH/docker-compose.yml" > "$FM_PATH/.awktmpfile" && mv "$FM_PATH/.awktmpfile" "$FM_PATH/docker-compose.yml"
|
||||
echo -e "\nCopying ElasticSearch 2.4 configuration files from $(pwd)/docker to $dir..."
|
||||
mkdir -p "$dir"
|
||||
curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/elasticsearch.yml > "$dir/elasticsearch.yml"
|
||||
|
Loading…
x
Reference in New Issue
Block a user