#!/bin/bash

# clone ovn-kubernetes on master and cd to dist/ansible
# git clone https://github.com/ovn-org/ovn-kubernetes ~/ovn-kubernetes
# cd ~/ovn-kubernetes/dist/ansible
# edit hosts for hostname of master and desired image

# ./run-playbook
# ./run-playbook install    # The default
# ./run-playbook uninstall  # Remove ovn components

cmd=${1:-install}

case ${cmd} in
  install )
    ansible-playbook -i hosts ovn-playbook.yaml
    ;;
  uninstall )
    ansible-playbook -i hosts ovn-uninstall.yaml
    ;;
  * )
    echo "./run-playbook [|install|uninstall]"
    echo "./run-playbook    default is install"
    ;;
esac


