]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
add a util function to create the .chacractl config file
authorAndrew Schoen <aschoen@redhat.com>
Thu, 12 Nov 2015 17:15:35 +0000 (11:15 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 12 Nov 2015 17:15:35 +0000 (11:15 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
scripts/build_utils.sh

index 812ed276b72852059e099401c2e56635123f724f..142b9ab68cbc9b51ded12746bcb2b1bd811b39a9 100644 (file)
@@ -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
+}