The OCF script will be present in the ovn-common package and installed in the openvswitch scripts folder and a symbolic link to this file will be created in the OCF resources folder.
The OCF resource agent name for this resource is ocf:ovn:ovndb-servers Signed-off-by: Babu Shanmugam <bscha...@redhat.com> --- debian/automake.mk | 2 ++ debian/ovn-common.install | 1 + debian/ovn-common.postinst | 24 ++++++++++++++++++++++++ debian/ovn-common.postrm | 23 +++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 debian/ovn-common.postinst create mode 100644 debian/ovn-common.postrm diff --git a/debian/automake.mk b/debian/automake.mk index 73b4d00..f793d4f 100644 --- a/debian/automake.mk +++ b/debian/automake.mk @@ -63,6 +63,8 @@ EXTRA_DIST += \ debian/ovn-controller-vtep.manpages \ debian/ovn-common.install \ debian/ovn-common.manpages \ + debian/ovn-common.postinst \ + debian/ovn-common.postrm \ debian/ovn-docker.install \ debian/ovn-host.dirs \ debian/ovn-host.init \ diff --git a/debian/ovn-common.install b/debian/ovn-common.install index acb1dc9..8b833dc 100644 --- a/debian/ovn-common.install +++ b/debian/ovn-common.install @@ -1,3 +1,4 @@ usr/bin/ovn-nbctl usr/bin/ovn-sbctl usr/share/openvswitch/scripts/ovn-ctl +usr/share/openvswitch/scripts/ovndb-servers.ocf diff --git a/debian/ovn-common.postinst b/debian/ovn-common.postinst new file mode 100644 index 0000000..588044f --- /dev/null +++ b/debian/ovn-common.postinst @@ -0,0 +1,24 @@ +#!/bin/sh +# postinst script for ovn-common +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + configure) + mkdir -p /usr/lib/ocf/resource.d/ovn + ln -sf /usr/share/openvswitch/scripts/ovndb-servers.ocf /usr/lib/ocf/resource.d/ovn/ovndb-servers + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/ovn-common.postrm b/debian/ovn-common.postrm new file mode 100644 index 0000000..9face72 --- /dev/null +++ b/debian/ovn-common.postrm @@ -0,0 +1,23 @@ +#!/bin/sh +# postrm script for openvswitch-testcontroller +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + purge|remove) + rm -rf /usr/lib/ocf/resource.d/ovn + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev