Compare commits
No commits in common. "2ed082f67f79a5a7ddad2876a0d6088bfe85ef0e" and "65092c6665f4b12df4804ce3a4804a63e97934b3" have entirely different histories.
2ed082f67f
...
65092c6665
|
@ -35,7 +35,7 @@ install_if_not() {
|
||||||
grep -c "ok installed")" == "1" ]; then
|
grep -c "ok installed")" == "1" ]; then
|
||||||
echo " $1 is installed, skipping..."
|
echo " $1 is installed, skipping..."
|
||||||
else
|
else
|
||||||
printf "\n---- Installing %s ----\n" "$1"
|
printf "\n---- Installing %s ----" "$1"
|
||||||
apt-get -yq2 install "$1"
|
apt-get -yq2 install "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -61,12 +61,11 @@ fi
|
||||||
dig_dns_ip() {
|
dig_dns_ip() {
|
||||||
dig -4 +short "$1"||awk -v RS='([0-9]+\\.){3}[0-9]+' 'RT{print RT}'
|
dig -4 +short "$1"||awk -v RS='([0-9]+\\.){3}[0-9]+' 'RT{print RT}'
|
||||||
}
|
}
|
||||||
create_certs() {
|
create_certs(){
|
||||||
cp static/opensearch_certs.sh "$OPNSDIR"
|
cp static/opensearch_certs.sh "$OPNSDIR"
|
||||||
sed -i "s|__FTSDOMAIN__|$1|" "$OPNSDIR"/opensearch_certs.sh
|
sed -i "s|__FTSDOMAIN__|$1|" "$OPNSDIR"/opensearch_certs.sh
|
||||||
cd "$OPNSDIR"
|
cp "$OPNSDIR"
|
||||||
bash opensearch_certs.sh
|
bash opensearch_certs.sh
|
||||||
rm -f "$OPNSDIR"/opensearch_certs.sh
|
|
||||||
}
|
}
|
||||||
countdown() {
|
countdown() {
|
||||||
printwc "$Cyan" "$1"
|
printwc "$Cyan" "$1"
|
||||||
|
@ -331,4 +330,4 @@ docker-compose exec fts_os-node \
|
||||||
|
|
||||||
docker logs $fts_node
|
docker logs $fts_node
|
||||||
|
|
||||||
printwc "$Green" "\n\nYou can now use: \"http://${INDEX_USER}:${OPNSREST}@localhost:9200\"\n"
|
echo "You can now use: \"http://${INDEX_USER}:${OPNSREST}@localhost:9200\""
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
# Source:
|
# Source:
|
||||||
# https://opensearch.org/docs/latest/security-plugin/configuration/generate-certificates/#sample-script
|
# https://opensearch.org/docs/latest/security-plugin/configuration/generate-certificates/#sample-script
|
||||||
|
|
||||||
rm -rf tls_store
|
mkdir tls_store
|
||||||
mkdir -p tls_store
|
|
||||||
TLS_DN="/C=CA/ST=OPENSEARCH/L=NODE/O=OPENSEARCH/OU=FTS"
|
TLS_DN="/C=CA/ST=OPENSEARCH/L=NODE/O=OPENSEARCH/OU=FTS"
|
||||||
|
|
||||||
# Root CA
|
# Root CA
|
||||||
|
|
Loading…
Reference in New Issue