From 40aa987297b496835efaae545bccbb3ec2b4f7e7 Mon Sep 17 00:00:00 2001 From: Dmitry Shmulevich Date: Wed, 23 May 2018 19:56:53 -0700 Subject: [PATCH] DCOS: added DC/OS post-installation step --- parts/dcos/bstrap/dcos1.11.0.customdata.t | 7 +++++++ parts/dcos/bstrap/dcos1.11.2.customdata.t | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/parts/dcos/bstrap/dcos1.11.0.customdata.t b/parts/dcos/bstrap/dcos1.11.0.customdata.t index fbbd51c8f7..2ce2107ca6 100644 --- a/parts/dcos/bstrap/dcos1.11.0.customdata.t +++ b/parts/dcos/bstrap/dcos1.11.0.customdata.t @@ -36,6 +36,7 @@ runcmd: PREPROVISION_EXTENSION - systemctl stop --now unscd.service - /opt/azure/containers/provision.sh - bash /tmp/dcos/dcos_install.sh ROLENAME +- /opt/azure/dcos/postinstall-cond.sh - bash /opt/azure/dcos/diagnostics_fix.sh write_files: - content: | @@ -90,3 +91,9 @@ write_files: path: /opt/azure/containers/provision.sh permissions: "0744" owner: "root" +- content: | + #!/bin/bash + if [ -f /opt/azure/dcos/postinstall.sh ]; then /opt/azure/dcos/postinstall.sh; fi + path: /opt/azure/dcos/postinstall-cond.sh + permissions: "0744" + owner: "root" diff --git a/parts/dcos/bstrap/dcos1.11.2.customdata.t b/parts/dcos/bstrap/dcos1.11.2.customdata.t index ee450bd984..36670658fd 100644 --- a/parts/dcos/bstrap/dcos1.11.2.customdata.t +++ b/parts/dcos/bstrap/dcos1.11.2.customdata.t @@ -36,6 +36,7 @@ runcmd: PREPROVISION_EXTENSION - systemctl stop --now unscd.service - /opt/azure/containers/provision.sh - bash /tmp/dcos/dcos_install.sh ROLENAME +- /opt/azure/dcos/postinstall-cond.sh write_files: - content: | [Service] @@ -78,3 +79,9 @@ write_files: path: /opt/azure/containers/provision.sh permissions: "0744" owner: "root" +- content: | + #!/bin/bash + if [ -f /opt/azure/dcos/postinstall.sh ]; then /opt/azure/dcos/postinstall.sh; fi + path: /opt/azure/dcos/postinstall-cond.sh + permissions: "0744" + owner: "root"