Advertisement
josephxsxn

blueprint_installer.sh

Aug 24th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.16 KB | None | 0 0
  1. #!/bin/bash
  2. #install blueprint
  3. sleep 30
  4. sudo apt-get install -y curl
  5. wget http://ad-cameron.aegisdoctrine.local/262-fullinstall.blueprint
  6. curl -H "X-Requested-By: ambari" -X POST -u admin:admin http://master1.aegisdoctrine.local:8080/api/v1/blueprints/fullinstall -d @262-fullinstall.blueprint
  7.  
  8. #setup custom repo stack
  9. #PUT /api/v1/stacks/:stack/versions/:stackVersion/operating_systems/:osType/repositories/:repoId
  10. wget http://ad-cameron.aegisdoctrine.local/localHDPRepo.json
  11. wget http://ad-cameron.aegisdoctrine.local/localHDPUtilsRepo.json
  12.  
  13. curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d @localHDPRepo.json http://master1.aegisdoctrine.local:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/ubuntu16/repositories/HDP-2.6
  14. curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d @localHDPUtilsRepo.json http://master1.aegisdoctrine.local:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/ubuntu16/repositories/HDP-UTILS-1.1.0.21
  15.  
  16.  
  17. #trigger install
  18. wget http://ad-cameron.aegisdoctrine.local/hostmapping.json
  19. curl -H "X-Requested-By: ambari" -X POST -u admin:admin  http://master1.aegisdoctrine.local:8080/api/v1/clusters/c1 -d @hostmapping.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement