otherwise we would have
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://chacra.ceph.com/binaries/ceph-deploy/test/
c6ff0a05523cdeda86ebac732dd186620261dc01/centos/7/source/
when posting the created package to chacra
Signed-off-by: Kefu Chai <kchai@redhat.com>
pkgs=( "chacractl>=0.0.21" )
install_python_packages "pkgs[@]"
+# ask shaman which chacra instance to use
+chacra_url=`curl -u $SHAMAN_API_USER:$SHAMAN_API_KEY https://shaman.ceph.com/api/nodes/next/`
# create the .chacractl config file using global variables
-make_chacractl_config
+make_chacractl_config $chacra_url
- inject-passwords:
global: true
mask-password-params: true
+ - credentials-binding:
+ - text:
+ credential-id: chacractl-key
+ variable: CHACRACTL_KEY
+ - text:
+ credential-id: shaman-api-key
+ variable: SHAMAN_API_KEY