-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging and TIER beacon support
Changes in the midPoint Docker container: 1. Logging is improved: now we provide TIER-style logging for both midpoint.log content and plain console output. (Note that not all entry timestamps are in UTC yet.) 2. Reverted some of TIER beacon changes to make it more compliant with TIER standards: shell file names, opt-out environment variable, collector server name+port.
- Loading branch information
Showing
10 changed files
with
52 additions
and
33 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,7 @@ services: | |
| - MEM | ||
| - SSO_HEADER | ||
| - LOGOUT_URL | ||
| - TIER_BEACON_OPT_OUT | ||
| networks: | ||
| - back | ||
| secrets: | ||
|
|
||
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
8 changes: 8 additions & 0 deletions
8
midpoint/midpoint-server/container_files/usr-local-bin/set-timezone.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,8 @@ | ||
| #!/bin/bash | ||
|
|
||
| # JUST FOR TESTING - REMOVE BEFORE RELEASE | ||
|
|
||
| rm /etc/localtime | ||
| ln -s /usr/share/zoneinfo/Europe/Bratislava /etc/localtime | ||
| date | ||
|
|
12 changes: 4 additions & 8 deletions
12
midpoint/midpoint-server/container_files/usr-local-bin/setup-cron.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 |
|---|---|---|
| @@ -1,14 +1,10 @@ | ||
| #!/bin/bash | ||
|
|
||
| CRONFILE=/opt/tier/cronfile | ||
| CRONFILE=/opt/tier/tier-cron | ||
|
|
||
| if [ "$TIER_BEACON_ENABLED" == "true" ]; then | ||
| echo "#send daily \"beacon\" to central" > ${CRONFILE} | ||
| # echo $(expr $RANDOM % 59) $(expr $RANDOM % 3) "* * * /usr/local/bin/send-tier-beacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} | ||
| echo "* * * * * /usr/local/bin/send-tier-beacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} # for testing | ||
| else | ||
| echo "#beacon is disabled" > ${CRONFILE} | ||
| fi | ||
| echo "#send daily \"beacon\" to central" > ${CRONFILE} | ||
| echo $(expr $RANDOM % 60) $(expr $RANDOM % 4) "* * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} | ||
| #echo "* * * * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} # for testing | ||
|
|
||
| chmod 644 ${CRONFILE} | ||
| crontab ${CRONFILE} |
File renamed without changes.
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