Browse Source

Auto-generate SSH keypair, add openssh dep

main
Pekka Helenius 2 years ago
parent
commit
e52a1e13a3
2 changed files with 5 additions and 1 deletions
  1. +2
    -1
      cloudstack/PKGBUILD
  2. +3
    -0
      cloudstack/cloudstack-management.install

+ 2
- 1
cloudstack/PKGBUILD View File

@ -64,6 +64,7 @@ depends=(
'ipmitool' 'ipmitool'
'nfs-utils' 'nfs-utils'
'openssh'
) )
makedepends=( makedepends=(
# CloudStack source retrieval # CloudStack source retrieval
@ -297,7 +298,7 @@ libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.BridgeVifDriver
package_cloudstack-management() { package_cloudstack-management() {
depends=('python' 'jre11-openjdk' 'mysql' 'systemd' 'ipmitool' 'nfs-utils')
depends=('python' 'jre11-openjdk' 'mysql' 'systemd' 'ipmitool' 'nfs-utils' 'openssh')
pkgdesc='Management for Apache CloudStack' pkgdesc='Management for Apache CloudStack'
install=cloudstack-management.install install=cloudstack-management.install
noextract=( noextract=(


+ 3
- 0
cloudstack/cloudstack-management.install View File

@ -17,6 +17,9 @@ post_install() {
systemctl restart systemd-networkd systemctl restart systemd-networkd
systemctl restart mysqld systemctl restart mysqld
# Generate ssh keypair for user 'cloud'
runuser -l cloud -s /bin/sh -c "ssh-keygen -N '' -f /var/lib/cloudstack/user/.ssh/id_rsa"
msg2 "Configuration info: http://docs.cloudstack.apache.org/en/latest/installguide/management-server/" msg2 "Configuration info: http://docs.cloudstack.apache.org/en/latest/installguide/management-server/"
msg2 "System VM template files are located at '/usr/share/cloudstack-management/templates/systemvm/'" msg2 "System VM template files are located at '/usr/share/cloudstack-management/templates/systemvm/'"


Loading…
Cancel
Save