]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Added service and endpoint creation in cinder-api.
authorThomas Goirand <thomas@goirand.fr>
Thu, 22 Nov 2012 17:13:42 +0000 (17:13 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 22 Nov 2012 17:15:21 +0000 (17:15 +0000)
Rewritten-From: 915da0db707a1b3ac80152cbdc1b34e1ebc1e929

xenial/debian/cinder-api.config.in [new file with mode: 0644]
xenial/debian/cinder-api.postinst.in [new file with mode: 0644]
xenial/debian/cinder-api.templates [new file with mode: 0644]
xenial/debian/control
xenial/debian/po/POTFILES.in
xenial/debian/rules

diff --git a/xenial/debian/cinder-api.config.in b/xenial/debian/cinder-api.config.in
new file mode 100644 (file)
index 0000000..d071437
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#PKGOS-INCLUDE#
+
+pkgos_register_endpoint_config glance
+
+exit 0
diff --git a/xenial/debian/cinder-api.postinst.in b/xenial/debian/cinder-api.postinst.in
new file mode 100644 (file)
index 0000000..0e6aaf6
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+#PKGOS-INCLUDE#
+
+if [ "$1" = "configure" ] ; then
+       . /usr/share/debconf/confmodule
+       pkgos_register_endpoint_postinst glance glance image "Glance Image Service" 9292 /v1
+       db_stop
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/xenial/debian/cinder-api.templates b/xenial/debian/cinder-api.templates
new file mode 100644 (file)
index 0000000..eee1e74
--- /dev/null
@@ -0,0 +1,40 @@
+Template: cinder/register-endpoint
+Type: boolean
+Default: false
+_Description: Register Cinder in the keystone endpoint catalog?
+ Each Openstack services (each API) should be registered in order to be
+ accessible. This is done using "keystone service-create" and "keystone
+ endpoint-create". Select if you want to run these commands now.
+ .
+ Note that you will need to have an up and running keystone server on which to
+ connect using the Keystone auth token.
+
+Template: cinder/keystone-ip
+Type: string
+_Description: Keystone IP address:
+ Enter the IP address of your keystone server, so that cinder-api can
+ contact Keystone to do the Cinder service and endpoint creation.
+
+Template: cinder/keystone-auth-token
+Type: string
+_Description: Keystone Auth Token:
+ To configure its endpoint in Keystone, cinder-api needs the Keystone auth
+ token.
+
+Template: cinder/endpoint-ip
+Type: string
+_Description: Cinder endpoint IP address:
+ Enter the IP address that will be used to contact Cinder (eg: the Cinder
+ endpoint IP address).
+ .
+ This IP address should be accessible from the clients that will use this
+ service, so if you are installing a public cloud, this should be a public
+ IP address.
+
+Template: cinder/region-name
+Type: string
+Default: regionOne
+_Description: Name of the region to register:
+ Openstack can be used using availability zones, with each region representing
+ a location. Please enter the zone that you wish to use when registering the
+ endpoint.
index 51a3989e53021468183d1765ac8d5cfb8a95b0ed..695c609d9a436812f880e26f5b7af1876a5a1869 100644 (file)
@@ -99,7 +99,7 @@ Description: Openstack block storage as a service - common files
 Package: cinder-api
 Architecture: all
 Pre-Depends: dpkg (>= 1.15.6~)
-Depends: cinder-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}
+Depends: debconf, cinder-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends}, python-keystoneclient
 Description: Openstack block storage as a service - API server
  Cinder is a block storage as service system for the Openstack cloud computing
  software suite. It is a direct replacement for nova-volume as a separate
index 2e389bb079e563d154e9d953bd96b40bc491ae37..552b85003cbefbcac2ae0e1658ee99ee427e9d2b 100644 (file)
@@ -1 +1,2 @@
 [type: gettext/rfc822deb] cinder-common.templates
+[type: gettext/rfc822deb] cinder-api.templates
index 09f3bbaf31d4b33e410c0c61202fb962388f93e6..a34e85a6a71798264525e171b1d18a6e8a75c054 100755 (executable)
@@ -12,7 +12,7 @@ endif
 
 override_dh_clean:
        dh_clean
-       rm -f cinder-common.config cinder-common.postinst
+       rm -f debian/cinder-common.config debian/cinder-common.postinst debian/cinder-api.config debian/cinder-api.postinst
 
 override_dh_installchangelogs:
        dh_installchangelogs debian/CHANGELOG
@@ -39,3 +39,5 @@ override_dh_auto_build:
 
        /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-common.config
        /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-common.postinst
+       /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-api.config
+       /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func cinder-api.postinst