-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f461286
commit 0183eaa
Showing
7 changed files
with
36 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
--- | ||
imalive_api_version: 1.7 | ||
imalive_api_version: 4.0.1 | ||
imalive_port: 8099 | ||
imalive_wait_time: 300 | ||
imalive_force_recreate: true | ||
imalive_monitors: [] |
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 |
---|---|---|
|
@@ -7,5 +7,4 @@ galaxy_info: | |
min_ansible_version: 2.2 | ||
|
||
platforms: | ||
- name: CentOS | ||
- name: RaspberrypiOS |
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,6 @@ | ||
WAIT_TIME={{ imalive_wait_time }} | ||
IMALIVE_NODE_NAME={{ node_name }} | ||
|
||
{% if imalive_otel_collector_endpoint is defined and imalive_otel_collector_endpoint %} | ||
OTEL_COLLECTOR_ENDPOINT={{ imalive_otel_collector_endpoint }} | ||
{% endif %} |
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,2 @@ | ||
--- | ||
monitors: {{ imalive_monitors }} |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
FORCE_RECREATE_OPT="" | ||
FORCE_RECREATE_FLAG="{{ imalive_force_recreate }}" | ||
|
||
if [[ $FORCE_RECREATE_FLAG = "True" ]]; then | ||
FORCE_RECREATE_OPT="--force-recreate" | ||
docker ps -a|awk '($2 ~ "comworkio/imalive"){system("docker rm -f "$1)}' || : | ||
fi | ||
|
||
{% if centos_version is defined and (centos_version == "9" or centos_version == 9) %} | ||
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose -f {{ node_home }}/docker-compose-imalive.yml up -d $FORCE_RECREATE_OPT | ||
{% else %} | ||
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f {{ node_home }}/docker-compose-imalive.yml up -d $FORCE_RECREATE_OPT | ||
{% endif %} |