Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #install blueprint
- sleep 30
- sudo apt-get install -y curl
- wget http://ad-cameron.aegisdoctrine.local/262-fullinstall.blueprint
- curl -H "X-Requested-By: ambari" -X POST -u admin:admin http://master1.aegisdoctrine.local:8080/api/v1/blueprints/fullinstall -d @262-fullinstall.blueprint
- #setup custom repo stack
- #PUT /api/v1/stacks/:stack/versions/:stackVersion/operating_systems/:osType/repositories/:repoId
- wget http://ad-cameron.aegisdoctrine.local/localHDPRepo.json
- wget http://ad-cameron.aegisdoctrine.local/localHDPUtilsRepo.json
- 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
- 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
- #trigger install
- wget http://ad-cameron.aegisdoctrine.local/hostmapping.json
- 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