SHARE
TWEET

tripleo.sh usage for ayoung

a guest Jun 3rd, 2016 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env bash
  2.  
  3. ####################
  4. # FIRST TIME SETUP #
  5. ####################
  6.  
  7. modprobe kvm
  8. modprobe kvm-intel
  9. reboot
  10.  
  11. ###########
  12. # INSTACK #
  13. ###########
  14.  
  15. sudo yum -y install epel-release
  16.  
  17. sudo curl -o /etc/yum.repos.d/delorean.repo http://trunk.rdoproject.org/centos7/current-tripleo/delorean.repo
  18. sudo curl -o /etc/yum.repos.d/delorean-current.repo https://trunk.rdoproject.org/centos7-mitaka/current/delorean.repo
  19. sudo sed -i 's/\[delorean\]/\[delorean-current\]/' /etc/yum.repos.d/delorean-current.repo
  20. sudo /bin/bash -c "cat <<EOF>>/etc/yum.repos.d/delorean-current.repo
  21.  
  22. includepkgs=diskimage-builder,openstack-heat,instack,instack-undercloud,openstack-ironic,openstack-ironic-inspector,os-cloud-config,os-net-config,python-ironic-inspector-client,python-tripleoclient,tripleo-common,openstack-tripleo-heat-templates,openstack-tripleo-image-elements,openstack-tuskar-ui-extras,openstack-puppet-modules
  23. EOF"
  24. sudo curl -o /etc/yum.repos.d/delorean-deps.repo http://trunk.rdoproject.org/centos7/delorean-deps.repo
  25. sudo yum install -y instack-undercloud
  26. export NODE_COUNT=4
  27. export NODE_DIST=centos7
  28. export NODE_MEM=8192
  29. export UNDERCLOUD_NODE_MEM=8192
  30. instack-virt-setup
  31.  
  32. export INSTACK_NODE=ip.address.of.instack
  33.  
  34. ##############
  35. # UNDERCLOUD #
  36. ##############
  37.  
  38. ssh root@$INSTACK_NODE
  39. su - stack
  40.  
  41. git clone https://git.openstack.org/openstack-infra/tripleo-ci
  42. # If stable release
  43. export STABLE_RELEASE=mitaka
  44.  
  45. tripleo-ci/scripts/tripleo.sh --repo-setup
  46. tripleo-ci/scripts/tripleo.sh --undercloud
  47.  
  48. # Update repos needed for overcloud changes here (heat templates, etc.)
  49.  
  50. #############
  51. # OVERCLOUD #
  52. #############
  53.  
  54. # If you need a specific review in your overcloud image
  55. export DIB_INSTALLTYPE_puppet_tripleo=source
  56. export DIB_REPOLOCATION_puppet_tripleo=https://review.openstack.org/openstack/puppet-tripleo
  57. export DIB_REPOREF_puppet_tripleo=refs/changes/95/310795/6
  58.  
  59. tripleo-ci/scripts/tripleo.sh --overcloud-images
  60. tripleo-ci/scripts/tripleo.sh --register-nodes
  61. tripleo-ci/scripts/tripleo.sh --introspect-nodes
  62. tripleo-ci/scripts/tripleo.sh --overcloud-deploy
  63.  
  64. ##########
  65. # DELETE #
  66. ##########
  67.  
  68. sudo virsh destroy instack
  69. sudo virsh destroy baremetalbrbm_0
  70. sudo virsh destroy baremetalbrbm_1
  71. sudo virsh undefine instack
  72. sudo virsh undefine baremetalbrbm_0
  73. sudo virsh undefine baremetalbrbm_1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top