[pve-devel] [PATCH v4] implement hookscripts for guests
Dominik Csapak
d.csapak at proxmox.com
Thu Jan 31 14:33:37 CET 2019
this series implements a first version of hookscripts for guests
changes from v3:
* drop storage/manager patches, as they are already applied
* merge guest-common commits
* rename check_hookscript_volume_id to check_hookscript
* use check_hookscript in exec
* more consice execution in the api
* add the documentation for hookscripts and add an example script
changes from v2:
* rename scripts type to snippets
* move the path check to GuestHelpers
* remove the executable check from storage and add it in the api
this will come in useful when we allow custom cloud init configs,
as those do not have to be executable
changes from v1:
* implemented suggestions by thomas regarding spacing, etc.
* fail exec_hookscript when stop_on_error is set and
the script is not exectuable or does not exist
* fail setting hookscript when it does not exist
* check correctly for root at pam for containers
pve-guest-common:
Dominik Csapak (1):
add check/exec_hookscript to GuestHelpers
PVE/GuestHelpers.pm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
qemu-server:
Dominik Csapak (1):
add hookscripts to vms
PVE/API2/Qemu.pm | 3 +++
PVE/CLI/qm.pm | 2 ++
PVE/QemuServer.pm | 12 ++++++++++++
3 files changed, 17 insertions(+)
pve-container:
Dominik Csapak (1):
add hookscript to containers
src/PVE/LXC.pm | 9 +++++++++
src/PVE/LXC/Config.pm | 12 +++++++++++-
src/lxc-pve-poststop-hook | 3 +++
3 files changed, 23 insertions(+), 1 deletion(-)
pve-docs:
Dominik Csapak (1):
add documentation about snippet content-type and hookscripts
Makefile | 4 ++-
guest-example-hookscript.pl | 61 +++++++++++++++++++++++++++++++++++++++++++++
pct.adoc | 10 ++++++++
pve-storage-cephfs.adoc | 4 +--
pve-storage-cifs.adoc | 4 +--
pve-storage-dir.adoc | 5 ++--
pve-storage-glusterfs.adoc | 4 +--
pve-storage-nfs.adoc | 4 +--
pvesm.adoc | 4 +++
qm.adoc | 10 ++++++++
10 files changed, 99 insertions(+), 11 deletions(-)
create mode 100755 guest-example-hookscript.pl
--
2.11.0
More information about the pve-devel
mailing list