diff options
| author | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-13 16:07:21 -0600 |
|---|---|---|
| committer | Carlos Konstanski <ckonstanski@pippiandcarlos.com> | 2017-10-13 16:07:21 -0600 |
| commit | 7ee5915f7eafe7cc1842d0f74d7ee3d3881946ae (patch) | |
| tree | d53160814f11dad10f10b9e6b31f93eb10a5df3a /salt/openbook/ci | |
| parent | 52c3b96a83ec956be8f39b25852ae2f781875e0a (diff) | |
Deploy containers on specific nodes
Diffstat (limited to 'salt/openbook/ci')
| -rw-r--r-- | salt/openbook/ci/files/openbookctl | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/salt/openbook/ci/files/openbookctl b/salt/openbook/ci/files/openbookctl index 6a6770d..57aefb4 100644 --- a/salt/openbook/ci/files/openbookctl +++ b/salt/openbook/ci/files/openbookctl @@ -37,35 +37,47 @@ do_start() { wait_for_database ensure_openbook_databases_created {% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_job_scheduler_server|string() %}{% endraw %} {{ pillar["ansible"]["dirs"]["output"]["name"] }}/job_scheduler_server/run.sh +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_workflow_server|string() %}{% endraw %} {{ pillar["ansible"]["dirs"]["output"]["name"] }}/workflow_server/run.sh +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_admin_api_server|string() %}{% endraw %} {{ pillar["ansible"]["dirs"]["output"]["name"] }}/admin_api_server/run.sh +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_customer_api_server|string() %}{% endraw %} {{ pillar["ansible"]["dirs"]["output"]["name"] }}/customer_api_server/run.sh +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_admin_web_ui|string() %}{% endraw %} {{ pillar["ansible"]["dirs"]["output"]["name"] }}/admin_web_ui/run.sh +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_customer_web_ui|string() %}{% endraw %} {{ pillar["ansible"]["dirs"]["output"]["name"] }}/customer_web_ui/run.sh +{% raw %}{% endif %}{% endraw %} echo echo "Openbook started. All components may not be fully initialized and available." - echo "It is highly recommended to wait until initialization is complete before" - echo "starting the next node in the cluster. To monitor the state, run:" - echo - echo "watch -n 5 \"lsof -i -n -P 2>/dev/null | fgrep '*:808'\"" - echo - echo "When the output looks like the following, the node is fully initialized:" - echo "(Your PIDs will vary)" - echo - echo "java 10349 root 98u IPv6 1128362 0t0 TCP *:8083 (LISTEN)" - echo "java 10413 root 98u IPv6 1129955 0t0 TCP *:8081 (LISTEN)" - echo "java 10472 root 88u IPv6 1129171 0t0 TCP *:8082 (LISTEN)" - echo "java 10542 root 88u IPv6 1129173 0t0 TCP *:8080 (LISTEN)" } do_stop() { +{% raw %}{% if "True" == openbook_install_customer_web_ui|string() %}{% endraw %} docker stop {{ pillar["customer_web_ui"]["container_name"] }} +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_admin_web_ui|string() %}{% endraw %} docker stop {{ pillar["admin_web_ui"]["container_name"] }} +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_customer_api_server|string() %}{% endraw %} docker stop {{ pillar["customer_api_server"]["container_name"] }} +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_admin_api_server|string() %}{% endraw %} docker stop {{ pillar["admin_api_server"]["container_name"] }} +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_workflow_server|string() %}{% endraw %} docker stop {{ pillar["workflow_server"]["container_name"] }} +{% raw %}{% endif %}{% endraw %} +{% raw %}{% if "True" == openbook_install_job_scheduler_server|string() %}{% endraw %} docker stop {{ pillar["job_scheduler_server"]["container_name"] }} +{% raw %}{% endif %}{% endraw %} {% raw %}{% if "True" == openbook_install_database|string() %}{% endraw %} docker stop {{ pillar["database"]["container_name"] }} {% raw %}{% endif %}{% endraw %} |
