Add OpenNebula plugin docs
This commit is contained in:
@@ -0,0 +1 @@
|
||||
See [../docs/installation/opennebula.en.md](../docs/installation/opennebula.en.md).
|
||||
+10
-1
@@ -4,16 +4,25 @@ set -e
|
||||
|
||||
reapply_patch() {
|
||||
if ! patch -f --dry-run -l -R $1 < $2 >/dev/null; then
|
||||
already_applied=0
|
||||
if ! patch -l -f $1 < $2; then
|
||||
applied_ok=0
|
||||
echo "ERROR: Failed to patch file $1, please apply the patch $2 manually"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
echo "Reapplying Vitastor patches to OpenNebula's oned.conf, vmm_execrc and downloader.sh"
|
||||
already_applied=1
|
||||
applied_ok=1
|
||||
reapply_patch /var/lib/one/remotes/datastore/downloader.sh /var/lib/one/remotes/datastore/vitastor/downloader-vitastor.sh.diff
|
||||
reapply_patch /etc/one/oned.conf /var/lib/one/remotes/datastore/vitastor/oned.conf.diff
|
||||
reapply_patch /etc/one/vmm_exec/vmm_execrc /var/lib/one/remotes/datastore/vitastor/vmm_execrc.diff
|
||||
if [ -f /etc/apparmor.d/local/abstractions/libvirt-qemu ]; then
|
||||
if [[ "$already_applied" = 1 ]]; then
|
||||
echo "OK: Vitastor OpenNebula patches are already applied"
|
||||
elif [[ "$applied_ok" = 1 ]]; then
|
||||
echo "OK: Vitastor OpenNebula patches successfully applied"
|
||||
fi
|
||||
if [[ -f /etc/apparmor.d/local/abstractions/libvirt-qemu ]]; then
|
||||
if ! grep -q /etc/vitastor/vitastor.conf /etc/apparmor.d/local/abstractions/libvirt-qemu; then
|
||||
echo ' "/etc/vitastor/vitastor.conf" r,' >> /etc/apparmor.d/local/abstractions/libvirt-qemu
|
||||
fi
|
||||
|
||||
@@ -6,4 +6,5 @@ DISK_TYPE = "file"
|
||||
BRIDGE_LIST = "opennebula1"
|
||||
POOL_NAME = "test1"
|
||||
IMAGE_PREFIX = "my"
|
||||
STAGING_DIR = /var/tmp
|
||||
STAGING_DIR = "/var/tmp"
|
||||
VITASTOR_CONF = "/etc/vitastor/vitastor.conf"
|
||||
|
||||
@@ -3,4 +3,5 @@ TM_MAD = "vitastor"
|
||||
TYPE = "SYSTEM_DS"
|
||||
BRIDGE_LIST = "opennebula1"
|
||||
POOL_NAME = "test1"
|
||||
IMAGE_PREFIX = "my"
|
||||
IMAGE_PREFIX = "one"
|
||||
VITASTOR_CONF = "/etc/vitastor/vitastor.conf"
|
||||
|
||||
Reference in New Issue
Block a user