From: Andrew Schoen Date: Thu, 12 Nov 2015 17:15:35 +0000 (-0600) Subject: add a util function to create the .chacractl config file X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=22e592442ca0a96dafc4bace06b2bf0fecb6a46a;p=ceph-build.git add a util function to create the .chacractl config file Signed-off-by: Andrew Schoen --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 812ed276..142b9ab6 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -30,3 +30,12 @@ install_python_packages () { $VENV/pip install --upgrade --exists-action=i --find-links="file://$PIP_SDIST_INDEX" --no-index $package done } + +make_chacractl_config () { + # create the .chacractl config file + cat > $HOME/.chacractl << EOF + url = "$CHACRACTL_URL" + user = "$CHACRACTL_USER" + key = "$CHACRACTL_KEY" + EOF +}