integ/ceph/ceph/debian/deb_folder/ceph-mgr-ssh.postinst
Leonardo Fagundes Luz Serrano 83065c5298 Add debian package for Ceph
Add debian packaging infrastructure for
integ/ceph to build a debian package.

Test Plan: build-pkg; build-image; same contents as RPM

PASS build-pkg
PASS build-image
PASS same contents and permissions as RPM

Attention:

In order to avoid memory issues during the build,
please do one of the following:

- Developers with only 32G RAM will need to
temporarily unmount /var/lib/sbuild/build
so that the build system uses the disk instead of tmpfs

OR

- update /etc/fstab to set the size for
the sbuild tmpfs filesystem in the pkgbuilder container:

tmpfs /var/lib/sbuild/build tmpfs uid=sbuild,gid=sbuild,mode=2770,size=40G 0 0

Note:
Build times can be long. In order to accelerate it,
adjust the values of MINIKUBECPUS/MINIKUBEMEMORY
in import-stx file (tools repo) before building
the containers with stx-init-env.

Depends-On: https://review.opendev.org/c/starlingx/tools/+/827884

Story: 2009101
Task: 44304

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: Idc8ee1ebac5c973622c1c599f4a04c001bfa89a6
2022-02-11 17:19:41 +00:00

44 lines
995 B
Bash

#!/bin/sh
# vim: set noet ts=8:
# postinst script for ceph-mgr-ssh
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
#
# postinst configure <most-recently-configured-version>
# old-postinst abort-upgrade <new-version>
# conflictor's-postinst abort-remove in-favour <package> <new-version>
# postinst abort-remove
# deconfigured's-postinst abort-deconfigure in-favour <failed-install-package> <version> [<removing conflicting-package> <version>]
#
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
# attempt to load the plugin if the mgr is running
deb-systemd-invoke try-restart ceph-mgr.target
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0