X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=mcp%2Fscripts%2Fcreate-config-drive.sh;h=4b22b27aee4e317eeb3e803cfad10bffa3bc0969;hb=b9e7d9baa57594b7627556c0429ae17328f33a4d;hp=0943914abeba21fe1bc7951871ed6c441d0595e6;hpb=9dfd08262dd3cf833c84cd1c7c1b05c25e09862b;p=fuel.git diff --git a/mcp/scripts/create-config-drive.sh b/mcp/scripts/create-config-drive.sh index 0943914ab..4b22b27ae 100755 --- a/mcp/scripts/create-config-drive.sh +++ b/mcp/scripts/create-config-drive.sh @@ -1,10 +1,19 @@ -#!/bin/bash +#!/bin/bash -e +############################################################################## +# Copyright (c) 2017 Mirantis Inc. and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## # This will generate a openstack-style config drive image suitable for # use with cloud-init. You may optionally pass in an ssh public key # (using the -k/--ssh-key option) and a user-data blog (using the # -u/--user-data option). +CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x + usage () { echo "usage: ${0##*/}: [--ssh-key ] [--vendor-data ] [--user-data ] [--hostname ] " }