install.sh 834 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. set -x
  3. # Argument 1: path to openshift-ansible/playbooks
  4. # Argument 2: inventory path
  5. # Argument 3: Extra vars path
  6. echo "Running prerequisites"
  7. ansible-playbook -vv \
  8. --inventory $2 \
  9. --e @$3 \
  10. $1/prerequisites.yml
  11. echo "Running network_manager setup"
  12. if [[ -s "$1/openshift-node/network_manager.yml" ]]; then
  13. playbook="$1/openshift-node/network_manager.yml"
  14. else
  15. playbook="$1/byo/openshift-node/network_manager.yml"
  16. fi
  17. ansible-playbook -vv \
  18. --inventory $2 \
  19. --e @$3 \
  20. ${playbook}
  21. echo "Running openshift-ansible deploy_cluster"
  22. ansible-playbook -vv \
  23. --inventory $2 \
  24. --e @$3 \
  25. $1/deploy_cluster.yml