diff options
author | juanvallejo <jvallejo@redhat.com> | 2017-08-09 10:04:02 -0400 |
---|---|---|
committer | juanvallejo <jvallejo@redhat.com> | 2017-09-12 09:41:07 -0400 |
commit | c032e4ca7f1cb0f705226e250752ed6249c731da (patch) | |
tree | b9d837a9a20191243c0865d0ab2dc0909f7aee6f /images/installer/root/usr/local/bin/run | |
parent | 4acdef4af89bf2ccc43f9643a2e72a969d11ed04 (diff) | |
download | openshift-c032e4ca7f1cb0f705226e250752ed6249c731da.tar.gz openshift-c032e4ca7f1cb0f705226e250752ed6249c731da.tar.bz2 openshift-c032e4ca7f1cb0f705226e250752ed6249c731da.tar.xz openshift-c032e4ca7f1cb0f705226e250752ed6249c731da.zip |
add inventory-generator under new sub pkg
Diffstat (limited to 'images/installer/root/usr/local/bin/run')
-rwxr-xr-x | images/installer/root/usr/local/bin/run | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/images/installer/root/usr/local/bin/run b/images/installer/root/usr/local/bin/run index 9401ea118..51ac566e5 100755 --- a/images/installer/root/usr/local/bin/run +++ b/images/installer/root/usr/local/bin/run @@ -24,9 +24,12 @@ elif [[ -v INVENTORY_URL ]]; then elif [[ -v DYNAMIC_SCRIPT_URL ]]; then curl -o ${INVENTORY} ${DYNAMIC_SCRIPT_URL} chmod 755 ${INVENTORY} +elif [[ -v GENERATE_INVENTORY ]]; then + # dynamically generate inventory file using bind-mounted info + /usr/local/bin/generate ${INVENTORY} else echo - echo "One of INVENTORY_FILE, INVENTORY_URL or DYNAMIC_SCRIPT_URL must be provided." + echo "One of INVENTORY_FILE, INVENTORY_URL, GENERATE_INVENTORY, or DYNAMIC_SCRIPT_URL must be provided." exec /usr/local/bin/usage fi INVENTORY_ARG="-i ${INVENTORY}" |