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.

39 lines
1.7 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 /var/lib/cloudstack/data/
  9. # Apply cloudbr0, cloudbr1 & cloudbr2 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 the template 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 /var/lib/cloudstack/data/storage/secondary/"
  15. msg2 "Once the template is deployed, configure /etc/exports.d/cloudstack.exports file and restart NFS service"
  16. msg2 "Generate proper encryption file (/etc/cloudstack/management/key): sudo cloudstack-setup-encryption -e file -m <password> -k <password>"
  17. msg2 "Deploy local CloudStack database: sudo cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:<mysql-root-password>"
  18. msg2 "Be aware you can use a separate MySQL server for storing the data"
  19. msg2 "CloudStack UI: http://localhost:8080 ; Default login credentials are -> username: admin, password: <password> (used for /etc/cloudstack/management/key), domain: leave empty"
  20. }
  21. #post_upgrade() {
  22. #}
  23. post_remove() {
  24. msg2 "CloudStack logs are stored at '/var/log/cloudstack'"
  25. rm -rf /var/lib/cloudstack
  26. userdel cloud
  27. systemctl restart systemd-networkd
  28. }