Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. host_set_hostname network
  4. host_configure_ssh $PAUSE
  5. host_add_host 192.168.1 221 228 $PAUSE
  6. apt-get install ntp
  7. ntpq -c peers
  8. ntpq -c assoc
  9. apt-get install ntp
  10. ##Edit the /etc/ntp.conf file
  11. ntpq -c peers
  12. ntpq -c assoc
  13. apt-get install ubuntu-cloud-keyring
  14. echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" "trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list
  15. apt-get update && apt-get dist-upgrade
  16. touch admin-openrc.sh
  17. touch demo-openrc.sh
  18. echo -e "export OS_PROJECT_DOMAIN_ID=default\nexport OS_USER_DOMAIN_ID=default\nexport OS_PROJECT_NAME=admin\nexport OS_TENANT_NAME=admin\nexport OS_USERNAME=admin\nexport OS_PASSWORD=stack\nexport OS_AUTH_URL=http://controller:35357/v3" > admin-openrc.sh
  19. echo -e "export OS_PROJECT_DOMAIN_ID=default\nexport OS_USER_DOMAIN_ID=default\nexport OS_PROJECT_NAME=demo\nexport OS_TENANT_NAME=demo\nexport OS_USERNAME=demo\nexport OS_PASSWORD=stack\nexport OS_AUTH_URL=http://controller:5000/v3" > demo-openrc.sh
  20. source admin-openrc.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement