diff --git a/debian/control b/debian/control index f3706722..bd4e281e 100644 --- a/debian/control +++ b/debian/control @@ -26,7 +26,7 @@ Description: Parallel Virtual Cluster common client libraries (Python 3) Package: pvc-client-cli Architecture: all Depends: pvc-client-common, python3-yaml, python3-netifaces, python3-dialog -Description: Parallel Virtual Cluster client (Python 3) +Description: Parallel Virtual Cluster CLI client (Python 3) A KVM/Zookeeper/Ceph-based VM and private cloud manager . This package installs the PVC command-line client @@ -34,8 +34,16 @@ Description: Parallel Virtual Cluster client (Python 3) Package: pvc-client-api Architecture: all Depends: pvc-client-common, python3-yaml, python3-flask, python3-gevent -Description: Parallel Virtual Cluster client (Python 3) +Description: Parallel Virtual Cluster API client (Python 3) A KVM/Zookeeper/Ceph-based VM and private cloud manager . This package installs the PVC API client daemon +Package: pvc-client-provisioner +Architecture: all +Depends: pvc-client-common, python3-yaml, python3-flask, python3-celery, python-celery-common +Description: Parallel Virtual Cluster Provisioner client (Python 3) + A KVM/Zookeeper/Ceph-based VM and private cloud manager + . + This package installs the PVC provisioner daemon + diff --git a/debian/pvc-client-provisioner.install b/debian/pvc-client-provisioner.install new file mode 100644 index 00000000..e2c81a26 --- /dev/null +++ b/debian/pvc-client-provisioner.install @@ -0,0 +1,5 @@ +client-provisioner/pvc-provisioner.py usr/share/pvc +client-provisioner/pvc-provisioner.sample.yaml etc/pvc +client-provisioner/provisioner_lib usr/share/pvc +client-provisioner/pvc-provisioner.service lib/systemd/system +client-provisioner/pvc-provisioner-worker.service lib/systemd/system diff --git a/debian/pvc-client-provisioner.postinst b/debian/pvc-client-provisioner.postinst new file mode 100644 index 00000000..4985b298 --- /dev/null +++ b/debian/pvc-client-provisioner.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +# Install client binary to /usr/bin via symlink +ln -s /usr/share/pvc/provisioner.py /usr/bin/pvc-provisioner + +# Reload systemd's view of the units +systemctl daemon-reload + +# Restart the daemon (or warn on first install) +if systemctl is-active --quiet pvc-provisioner.service; then + systemctl restart pvc-provisioner.service + systemctl restart pvc-provisioner-worker.service +else + echo "NOTE: The PVC client API daemon (pvc-provisioner.service) has not been started; create a config file at /etc/pvc/pvc-provisioner.yaml then start it." +fi diff --git a/debian/pvc-client-provisioner.prerm b/debian/pvc-client-provisioner.prerm new file mode 100644 index 00000000..01ebda2b --- /dev/null +++ b/debian/pvc-client-provisioner.prerm @@ -0,0 +1,4 @@ +#!/bin/sh + +# Remove client binary symlink +rm -f /usr/bin/pvc-provisioner