Added ceilometer-api endpoint configuration through debconf.
authorThomas Goirand <thomas@goirand.fr>
Mon, 26 Nov 2012 18:10:21 +0000 (18:10 +0000)
committerThomas Goirand <thomas@goirand.fr>
Mon, 26 Nov 2012 18:18:19 +0000 (18:18 +0000)
Rewritten-From: de0db5a4d6d6cb171ddb7fd784cdde25cf933b96

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

diff --git a/xenial/debian/ceilometer-api.config.in b/xenial/debian/ceilometer-api.config.in
new file mode 100644 (file)
index 0000000..a2f6c30
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+#PKGOS-INCLUDE#
+
+pkgos_register_endpoint_config ceilometer
+
+exit 0
diff --git a/xenial/debian/ceilometer-api.postinst.in b/xenial/debian/ceilometer-api.postinst.in
new file mode 100644 (file)
index 0000000..49b55e6
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+#PKGOS-INCLUDE#
+
+if [ "$1" = "configure" ] ; then
+        . /usr/share/debconf/confmodule
+        pkgos_register_endpoint_postinst ceilometer ceilometer metering "Ceilometer Metering Service" 8777 /
+        db_stop
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/xenial/debian/ceilometer-api.templates b/xenial/debian/ceilometer-api.templates
new file mode 100644 (file)
index 0000000..760c375
--- /dev/null
@@ -0,0 +1,40 @@
+Template: ceilometer/register-endpoint
+Type: boolean
+Default: false
+_Description: Register Ceilometer 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: ceilometer/keystone-ip
+Type: string
+_Description: Keystone IP address:
+ Enter the IP address of your keystone server, so that ceilometer-api can
+ contact Keystone to do the Ceilometer service and endpoint creation.
+
+Template: ceilometer/keystone-auth-token
+Type: password
+_Description: Keystone Auth Token:
+ To configure its endpoint in Keystone, ceilometer-api needs the Keystone auth
+ token.
+
+Template: ceilometer/endpoint-ip
+Type: string
+_Description: Ceilometer endpoint IP address:
+ Enter the IP address that will be used to contact Ceilometer (eg: the
+ Ceilometer 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: ceilometer/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.
diff --git a/xenial/debian/po/POTFILES.in b/xenial/debian/po/POTFILES.in
new file mode 100644 (file)
index 0000000..78a2ec6
--- /dev/null
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] ceilometer-api.templates
diff --git a/xenial/debian/po/templates.pot b/xenial/debian/po/templates.pot
new file mode 100644 (file)
index 0000000..80b0b03
--- /dev/null
@@ -0,0 +1,107 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: ceilometer\n"
+"Report-Msgid-Bugs-To: ceilometer@packages.debian.org\n"
+"POT-Creation-Date: 2012-11-26 18:17+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../ceilometer-api.templates:1001
+msgid "Register Ceilometer in the keystone endpoint catalog?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../ceilometer-api.templates:1001
+msgid ""
+"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."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../ceilometer-api.templates:1001
+msgid ""
+"Note that you will need to have an up and running keystone server on which "
+"to connect using the Keystone auth token."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../ceilometer-api.templates:2001
+msgid "Keystone IP address:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../ceilometer-api.templates:2001
+msgid ""
+"Enter the IP address of your keystone server, so that ceilometer-api can "
+"contact Keystone to do the Ceilometer service and endpoint creation."
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../ceilometer-api.templates:3001
+msgid "Keystone Auth Token:"
+msgstr ""
+
+#. Type: password
+#. Description
+#: ../ceilometer-api.templates:3001
+msgid ""
+"To configure its endpoint in Keystone, ceilometer-api needs the Keystone "
+"auth token."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../ceilometer-api.templates:4001
+msgid "Ceilometer endpoint IP address:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../ceilometer-api.templates:4001
+msgid ""
+"Enter the IP address that will be used to contact Ceilometer (eg: the "
+"Ceilometer endpoint IP address)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../ceilometer-api.templates:4001
+msgid ""
+"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."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../ceilometer-api.templates:5001
+msgid "Name of the region to register:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../ceilometer-api.templates:5001
+msgid ""
+"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."
+msgstr ""
index 700485d5184adba41c5311c289d6ab569bff102d..6d7c6a907cab17a241287cafe3978fa18f05ecc7 100755 (executable)
@@ -10,6 +10,7 @@ include /usr/share/openstack-pkg-tools/pkgos.make
 override_dh_clean:
        dh_clean
        rm -rf ceilometer.egg-info
+       rm -f debian/ceilometer-common.postinst debian/ceilometer-api.config debian/ceilometer-api.postinst
 
 override_dh_install:
        dh_install
@@ -20,6 +21,8 @@ override_dh_install:
 override_dh_auto_build:
        dh_auto_build
        /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-common.postinst
+       /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-api.config
+       /usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func ceilometer-api.postinst
 
 override_dh_installchangelogs:
        dh_installchangelogs debian/CHANGELOG