allomov
8/8/2014 - 10:19 AM

generate-cf-yml.sh

export ADMIN_PASS=`cat ${JUJU_HOME:-~/.juju}/environments/$(juju switch).jenv|grep admin-secret|awk '{print $2;}'`
cat << EOF > cf.yaml 
cloudfoundry:
    admin_secret: $ADMIN_PASS
    artifacts_url: http://172.16.0.2:8080/swift/v1
EOF