Add configuration file, authentication, pywsgi
This commit is contained in:
2
debian/control
vendored
2
debian/control
vendored
@ -33,7 +33,7 @@ Description: Parallel Virtual Cluster client (Python 3)
|
||||
|
||||
Package: pvc-client-api
|
||||
Architecture: all
|
||||
Depends: pvc-client-common, python3-yaml, python3-flask
|
||||
Depends: pvc-client-common, python3-yaml, python3-flask, python3-gevent
|
||||
Description: Parallel Virtual Cluster client (Python 3)
|
||||
A KVM/Zookeeper/Ceph-based VM and private cloud manager
|
||||
.
|
||||
|
1
debian/pvc-client-api.install
vendored
1
debian/pvc-client-api.install
vendored
@ -1,3 +1,4 @@
|
||||
client-api/pvc-api.py usr/share/pvc
|
||||
client-api/pvc-api.sample.yaml etc/pvc
|
||||
client-api/api_lib usr/share/pvc
|
||||
client-api/pvc-api.service lib/systemd/system
|
||||
|
10
debian/pvc-client-api.postinst
vendored
10
debian/pvc-client-api.postinst
vendored
@ -2,3 +2,13 @@
|
||||
|
||||
# Install client binary to /usr/bin via symlink
|
||||
ln -s /usr/share/pvc/api.py /usr/bin/pvc-api
|
||||
|
||||
# Reload systemd's view of the units
|
||||
systemctl daemon-reload
|
||||
|
||||
# Restart the daemon (or warn on first install)
|
||||
if systemctl is-active --quiet pvc-api.service; then
|
||||
systemctl restart pvc-api.service
|
||||
else
|
||||
echo "NOTE: The PVC client API daemon (pvc-api.service) has not been started; create a config file at /etc/pvc/pvc-api.yaml then start it."
|
||||
fi
|
||||
|
3
debian/pvc-daemon.postinst
vendored
3
debian/pvc-daemon.postinst
vendored
@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Reload systemd's view of the units
|
||||
systemctl daemon-reload
|
||||
|
||||
# Enable the service and target
|
||||
systemctl enable /lib/systemd/system/pvcd.service
|
||||
systemctl enable /lib/systemd/system/pvcd.target
|
||||
|
Reference in New Issue
Block a user