Fuel plugin for Cinder with EMC integration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pre_build_hook 1.1KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. set -eux
  3. ROOT="$(dirname `readlink -f $0`)"
  4. RPM_REPO="${ROOT}"/repositories/centos/
  5. DEB_REPO="${ROOT}"/repositories/ubuntu/
  6. mkdir -p $RPM_REPO
  7. mkdir -p $DEB_REPO
  8. # Downloads needed RPM or DEB packages
  9. function download {
  10. case "$1" in
  11. deb) REPO=$DEB_REPO;;
  12. rpm) REPO=$RPM_REPO;;
  13. esac
  14. shift
  15. while [ $# -gt 0 ]; do
  16. FILE=$(basename "$1")
  17. wget -qO - $1 > "$REPO/$FILE"
  18. shift
  19. done
  20. }
  21. download deb http://archive.ubuntu.com/ubuntu/pool/main/m/multipath-tools/multipath-tools_0.4.9-3ubuntu5_amd64.deb \
  22. http://fuel-repository.mirantis.com/fuel-plugins/emc/ubuntu/navicli-linux-64-x86-en-us_7.33.2.0.51-1_all.deb
  23. download rpm http://vault.centos.org/6.7/os/x86_64/Packages/device-mapper-multipath-0.4.9-87.el6.x86_64.rpm \
  24. http://vault.centos.org/6.7/os/x86_64/Packages/device-mapper-multipath-libs-0.4.9-87.el6.x86_64.rpm \
  25. http://vault.centos.org/6.7/os/x86_64/Packages/kpartx-0.4.9-87.el6.x86_64.rpm \
  26. http://fuel-repository.mirantis.com/fuel-plugins/emc/centos/NaviCLI-Linux-64-x86-en_US-7.33.3.0.72-1.x86_64.rpm