Skip to content

Commit

Permalink
Add API gateway to redo.
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbah committed Jun 13, 2018
1 parent 008996d commit d957511
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ansible/openwhisk.yml
Expand Up @@ -13,4 +13,8 @@

- import_playbook: edge.yml

# the next playbook must follow the edge playbook since it downloads
# the wsk binary from the edge host.
- import_playbook: downloadcli.yml

- import_playbook: routemgmt.yml
6 changes: 5 additions & 1 deletion ansible/roles/routemgmt/files/installRouteMgmt.sh
Expand Up @@ -13,7 +13,6 @@
# WSK_CLI="$OPENWHISK_HOME/bin/wsk"

set -e
set -x

if [ $# -eq 0 ]
then
Expand Down Expand Up @@ -42,6 +41,11 @@ if [ -f "$AUTH" ]; then
AUTH=`cat $AUTH`
fi

if [ ! -f $WSK_CLI ]; then
echo $WSK_CLI is missing
exit 1
fi

export WSK_CONFIG_FILE= # override local property file to avoid namespace clashes

echo Installing apimgmt package
Expand Down
8 changes: 6 additions & 2 deletions ansible/roles/routemgmt/files/uninstallRouteMgmt.sh
Expand Up @@ -8,12 +8,11 @@
# automatically
#
# To run this command
# ./installRouteMgmt.sh <AUTH> <APIHOST> <NAMESPACE> <WSK_CLI>
# ./uninstallRouteMgmt.sh <AUTH> <APIHOST> <NAMESPACE> <WSK_CLI>
# AUTH, APIHOST and NAMESPACE are found in $HOME/.wskprops
# WSK_CLI="$OPENWHISK_HOME/bin/wsk"

set -e
set -x

if [ $# -eq 0 ]
then
Expand All @@ -31,6 +30,11 @@ if [ -f "$AUTH" ]; then
AUTH=`cat $AUTH`
fi

if [ ! -f $WSK_CLI ]; then
echo $WSK_CLI is missing
exit 1
fi

export WSK_CONFIG_FILE= # override local property file to avoid namespace clashes

function deleteAction
Expand Down
1 change: 0 additions & 1 deletion ansible/routemgmt.yml
Expand Up @@ -7,5 +7,4 @@

- hosts: ansible
roles:
- cli-install
- routemgmt
11 changes: 11 additions & 0 deletions tools/build/redo
Expand Up @@ -268,10 +268,21 @@ Components = [
makeComponent('edge',
'deploy edge'),

makeComponent('cli',
'download cli from api host',
modes = 'clean',
yaml = 'downloadcli.yml'),

makeComponent('catalog',
'install catalog',
yaml = 'postdeploy.yml'),

makeComponent('apigw',
'deploy api gateway',
gradle = False,
modes = 'clean',
yaml = 'routemgmt.yml apigateway.yml'),

# the following (re)build images via gradle

makeComponent('nodejs6action',
Expand Down

0 comments on commit d957511

Please sign in to comment.