From 8272e95b0f30bb9b379151bf2891f4a778967497 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Mon, 26 Nov 2012 18:10:21 +0000 Subject: [PATCH] Added ceilometer-api endpoint configuration through debconf. Rewritten-From: de0db5a4d6d6cb171ddb7fd784cdde25cf933b96 --- trusty/debian/ceilometer-api.config.in | 11 +++ trusty/debian/ceilometer-api.postinst.in | 15 ++++ trusty/debian/ceilometer-api.templates | 40 +++++++++ trusty/debian/po/POTFILES.in | 1 + trusty/debian/po/templates.pot | 107 +++++++++++++++++++++++ trusty/debian/rules | 3 + 6 files changed, 177 insertions(+) create mode 100644 trusty/debian/ceilometer-api.config.in create mode 100644 trusty/debian/ceilometer-api.postinst.in create mode 100644 trusty/debian/ceilometer-api.templates create mode 100644 trusty/debian/po/POTFILES.in create mode 100644 trusty/debian/po/templates.pot diff --git a/trusty/debian/ceilometer-api.config.in b/trusty/debian/ceilometer-api.config.in new file mode 100644 index 0000000..a2f6c30 --- /dev/null +++ b/trusty/debian/ceilometer-api.config.in @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +#PKGOS-INCLUDE# + +pkgos_register_endpoint_config ceilometer + +exit 0 diff --git a/trusty/debian/ceilometer-api.postinst.in b/trusty/debian/ceilometer-api.postinst.in new file mode 100644 index 0000000..49b55e6 --- /dev/null +++ b/trusty/debian/ceilometer-api.postinst.in @@ -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/trusty/debian/ceilometer-api.templates b/trusty/debian/ceilometer-api.templates new file mode 100644 index 0000000..760c375 --- /dev/null +++ b/trusty/debian/ceilometer-api.templates @@ -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/trusty/debian/po/POTFILES.in b/trusty/debian/po/POTFILES.in new file mode 100644 index 0000000..78a2ec6 --- /dev/null +++ b/trusty/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] ceilometer-api.templates diff --git a/trusty/debian/po/templates.pot b/trusty/debian/po/templates.pot new file mode 100644 index 0000000..80b0b03 --- /dev/null +++ b/trusty/debian/po/templates.pot @@ -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 , 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 \n" +"Language-Team: LANGUAGE \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 "" diff --git a/trusty/debian/rules b/trusty/debian/rules index 700485d..6d7c6a9 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -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 -- 2.32.3