]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: split ceph-mgr-dashboard plugin into its own package
authorKefu Chai <kchai@redhat.com>
Tue, 12 Feb 2019 09:05:30 +0000 (17:05 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Feb 2019 09:42:01 +0000 (17:42 +0800)
to make ceph-mgr-dashboard a separated package

- helps to reduce the repo size of downstream. because
  ceph-mgr-dashboard is an architecture independent package. by
  making it separated package avoids needless duplication of
  the same data in mutiple .debs.
- gives user a fine grained control of selection.

Signed-off-by: Kefu Chai <kchai@redhat.com>
debian/ceph-mgr-dashboard.install [new file with mode: 0644]
debian/ceph-mgr-dashboard.postinst [new file with mode: 0644]
debian/ceph-mgr-dashboard.prerm [new file with mode: 0644]
debian/ceph-mgr.install
debian/control

diff --git a/debian/ceph-mgr-dashboard.install b/debian/ceph-mgr-dashboard.install
new file mode 100644 (file)
index 0000000..618dcbd
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/ceph/mgr/dashboard
diff --git a/debian/ceph-mgr-dashboard.postinst b/debian/ceph-mgr-dashboard.postinst
new file mode 100644 (file)
index 0000000..e681ef6
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh
+# vim: set noet ts=8:
+# postinst script for ceph-mgr-dashboard
+#
+# 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
+
+
diff --git a/debian/ceph-mgr-dashboard.prerm b/debian/ceph-mgr-dashboard.prerm
new file mode 100644 (file)
index 0000000..e8e9959
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+# vim: set noet ts=8:
+
+set -e
+
+#DEBHELPER#
+
+exit 0
index c134b8eb8c617dcbb5c7cdb203e50b9b4b56c45b..587dcefc6c3ae92ddb298ec461b5af8862cbb712 100644 (file)
@@ -3,7 +3,6 @@ usr/bin/ceph-mgr
 usr/lib/ceph/mgr/ansible
 usr/lib/ceph/mgr/balancer
 usr/lib/ceph/mgr/crash
-usr/lib/ceph/mgr/dashboard
 usr/lib/ceph/mgr/deepsea
 usr/lib/ceph/mgr/devicehealth
 usr/lib/ceph/mgr/influx
index 05861a8918317243a608a8ae708cc44d7c3ee7a4..ddc3f8e55fa718704f71d0815e80d3ca3ba6046d 100644 (file)
@@ -187,7 +187,10 @@ Depends: ceph-base (= ${binary:Version}),
          ${misc:Depends},
          ${python:Depends},
          ${shlibs:Depends},
-Recommends: ceph-mgr-diskprediction-local, ceph-mgr-diskprediction-cloud, ceph-mgr-rook
+Recommends: ceph-mgr-dashboard,
+            ceph-mgr-diskprediction-local,
+            ceph-mgr-diskprediction-cloud,
+            ceph-mgr-rook
 Suggests: python-influxdb
 Replaces: ceph (<< 0.93-417),
 Breaks: ceph (<< 0.93-417),
@@ -199,6 +202,29 @@ Description: manager for the ceph distributed storage system
  This package contains the manager daemon, which is used to expose high
  level management and monitoring functionality.
 
+Package: ceph-mgr-dashboard
+Architecture: all
+Depends: ceph-mgr (= ${binary:Version}),
+         python-cherrypy3,
+         python-jwt,
+         python-openssl,
+         python-bcrypt,
+         python-werkzeug,
+         ${misc:Depends},
+         ${python:Depends},
+         ${shlibs:Depends},
+Description: dashboard plugin for ceph-mgr
+ Ceph is a massively scalable, open-source, distributed
+ storage system that runs on commodity hardware and delivers object,
+ block and file system storage.
+ .
+ This package provides a ceph-mgr plugin, providing a web-based
+ application to monitor and manage many aspects of a Ceph cluster and
+ related components.
+ .
+ See the Dashboard documentation at http://docs.ceph.com/ for details
+ and a detailed feature overview.
+
 Package: ceph-mgr-diskprediction-local
 Architecture: all
 Depends: ceph-mgr (= ${binary:Version}),