-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
frsauvage
committed
Jun 2, 2021
1 parent
2e8704e
commit 161d995
Showing
13 changed files
with
139 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
. ./proxy.sh | ||
. ./versions.sh | ||
|
||
export always_or_no=always | ||
./update_awx_containers_restart_option.sh | ||
|
||
echo "starting BullSequana Edge Ansible AWX containers ...." | ||
docker-compose -f docker_compose_awx_from_atos_dockerhub.yml up -d | ||
echo "----------------------------------------------------------------" | ||
echo "AWX is available on https://localhost" | ||
echo "pgadmin is available on http://localhost:7070" | ||
echo "for more info, refer to github site " | ||
echo "https://github.com/atosorigin/bullsequana-edge-system-management" | ||
echo "----------------------------------------------------------------" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
./start_awx_from_atos_dockerhub.sh | ||
./start_zabbix_from_atos_dockerhub.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
|
||
chmod uo+w zabbix/server/externalscripts/openbmc | ||
|
||
set -euo pipefail | ||
|
||
if filename=$(readlink /etc/localtime); then | ||
# /etc/localtime is a symlink as expected | ||
export timezone=${filename#*zoneinfo/} | ||
if [[ $timezone = "$filename" || ! $timezone =~ ^[^/]+/[^/]+$ ]]; then | ||
# not pointing to expected location or not Region/City | ||
>&2 echo "$filename points to an unexpected location" | ||
exit 1 | ||
fi | ||
else # compare files by contents | ||
# https://stackoverflow.com/questions/12521114/getting-the-canonical-time-zone-name-in-shell-script#comment88637393_12523283 | ||
export timezone=$(find /usr/share/zoneinfo -type f ! -regex ".*/Etc/.*" -exec cmp -s {} /etc/localtime \; -print | sed -e 's@.*/zoneinfo/@@' | head -n1) | ||
fi | ||
|
||
echo $timezone | ||
|
||
. ./proxy.sh | ||
. ./versions.sh | ||
|
||
export always_or_no=always | ||
./update_zabbix_containers_restart_option.sh | ||
|
||
echo "starting MISM containers ...." | ||
docker-compose -f docker_compose_zabbix_from_atos_dockerhub.yml up -d | ||
echo "----------------------------------------------------------------" | ||
echo "Zabbix is available on https://localhost:4443" | ||
echo "for more info, refer to github site " | ||
echo "https://github.com/atosorigin/bullsequana-edge-system-management" | ||
echo "----------------------------------------------------------------" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
. ./versions.sh | ||
|
||
export always_or_no=no | ||
./update_awx_containers_restart_option.sh | ||
|
||
echo "stopping BullSequana Edge Ansible AWX containers ...." | ||
docker-compose -f docker_compose_awx_from_atos_dockerhub.yml down | ||
|
||
echo "if ever you get trouble to stop containers after a docker migration, try this :" | ||
echo "docker rm -f awx_web" | ||
echo "docker rm -f awx_task" | ||
echo "docker rm -f awx_memcached" | ||
echo "docker rm -f awx_rabbitmq" | ||
echo "docker rm -f awx_postgres" | ||
echo "docker rm -f pgadmin" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
./stop_awx_from_atos_dockerhub.sh | ||
./stop_zabbix_from_atos_dockerhub.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
. ./versions.sh | ||
|
||
export always_or_no=no | ||
./update_zabbix_containers_restart_option.sh | ||
|
||
echo "stopping BullSequana Edge zabbix containers ...." | ||
docker-compose -f docker_compose_zabbix_from_atos_dockerhub.yml down | ||
|
||
echo "if ever you get trouble to stop containers after a docker migration, try this :" | ||
echo "docker rm -f zabbix-web" | ||
echo "docker rm -f zabbix-agent" | ||
echo "docker rm -f zabbix-server" | ||
echo "docker rm -f zabbix-postgres" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export MISM_BULLSEQUANA_EDGE_VERSION=2.1.8 | ||
export AWX_BULLSEQUANA_EDGE_VERSION=9.0.1 | ||
export RABBITMQ_AWX_BULLSEQUANA_EDGE_VERSION=3.8.1-management | ||
export POSTGRES_AWX_BULLSEQUANA_EDGE_VERSION=12.0-alpine | ||
export PGADMIN_AWX_BULLSEQUANA_EDGE_VERSION=4.14 | ||
export MEMCACHED_AWX_BULLSEQUANA_EDGE_VERSION=1.5.20-alpine | ||
export ZABBIX_BULLSEQUANA_EDGE_VERSION=centos-4.4.1 | ||
export POSTGRES_ZABBIX_BULLSEQUANA_EDGE_VERSION=12.0-alpine | ||
export BASE_IMAGE_ZABBIX=zabbix-server-pgsql | ||
export BASE_IMAGE_ZABBIX_WEB=zabbix-web-nginx-pgsql | ||
export BASE_IMAGE_ZABBIX_AGENT=zabbix-agent | ||
export BASE_IMAGE_AWX_WEB=awx_web | ||
export BASE_IMAGE_AWX_TASK=awx_task | ||
---------------------------------------------------------------------------------------------------- | ||
Now your new version is : | ||
[101m 2.1.8 [0m | ||
Run your installer | ||
---------------------------------------------------------------------------------------------------- |