Apache CloudStack for Arch Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

  1. source /usr/share/makepkg/util/message.sh
  2. post_install() {
  3. if [[ ! -d /var/lib/cloudstack/user ]]; then
  4. mkdir -p /var/lib/cloudstack/user
  5. chown cloud.cloud -R /var/lib/cloudstack/user
  6. fi
  7. chown cloud.cloud /var/log/cloudstack
  8. # chown cloud.cloud /run/cloudstack-management.pid
  9. # Apply cloudbr0 & cloudbr1 network interfaces
  10. systemctl restart systemd-networkd
  11. systemctl restart mysqld
  12. msg2 "Configuration info: http://docs.cloudstack.apache.org/en/latest/installguide/management-server/"
  13. msg2 "System VM template files are located at '/usr/share/cloudstack-management/templates/systemvm/'"
  14. msg2 "Install it by issuing command: sudo /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -o localhost -r cloud -d cloud -h kvm -f /usr/share/cloudstack-management/templates/systemvm/systemvmtemplate-4.16.0-kvm.qcow2.bz2 -m <secondary-storage-mountpoint>"
  15. msg2 "Generate proper encryption file (/etc/cloudstack/management/key): sudo cloudstack-setup-encryption -e file -m <password> -k <password>"
  16. msg2 "Configure local database: sudo cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:<mysql-root-password>"
  17. msg2 "http://localhost:8080 default login credentials are -> username: admin, password: <password> (used for /etc/cloudstack/management/key), domain: leave empty"
  18. }
  19. #post_upgrade() {
  20. #}
  21. #post_remove() {
  22. # rm -rf /var/lib/cloudstack/user
  23. #}