Commit ff21ba00 authored by caslanoglou's avatar caslanoglou

refactor: add VIM parameter to deploy-ns

parent cbb9539e
Pipeline #3126 passed with stage
in 29 seconds
......@@ -24,10 +24,9 @@ cd path/to/hackfest-11/juju-cnf/powerdns_cnf/juju-bundles
```
# Deploy bundle to OSM
Adjust the `--vim_account` according to your setup.
```
cd path/to/hackfest-11/juju-cnf
./deploy-ns.sh
./deploy-ns.sh your-vim-name
```
# Test deployment
......
......@@ -3,10 +3,18 @@ set -o errexit
set -o nounset
#set -o xtrace
if [ $# -ne 1 ]; then
echo "Usage: $0 <vim>"
echo "Declare your VIM name (can be retrieved by 'osm vim-list')"
exit 1
fi
VIM=$1
osm nfpkg-create ./powerdns_cnf
osm nspkg-create ./powerdns_cnf_ns/
osm ns-create \
--ns_name powerdns-cnf-ns \
--nsd_name powerdns_cnf_ns \
--vim_account MY_VIM \
--vim_account "${VIM}" \
--config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment