Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- host_set_hostname network
- host_configure_ssh $PAUSE
- host_add_host 192.168.1 221 228 $PAUSE
- apt-get install ntp
- ntpq -c peers
- ntpq -c assoc
- apt-get install ntp
- ##Edit the /etc/ntp.conf file
- ntpq -c peers
- ntpq -c assoc
- apt-get install ubuntu-cloud-keyring
- echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" "trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list
- apt-get update && apt-get dist-upgrade
- touch admin-openrc.sh
- touch demo-openrc.sh
- 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
- 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
- source admin-openrc.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement