Commit 0f4d698e authored by Thomas Goirand's avatar Thomas Goirand

Initial packaging.

parent 01469616
octavia (2.0.0~rc1-1) unstable; urgency=medium
* Initial release (Closes: #XXXXXX).
-- Thomas Goirand <zigo@debian.org> Mon, 23 Mar 2015 17:46:24 +0100
Source: octavia
Section: net
Priority: optional
Maintainer: Debian OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders:
Thomas Goirand <zigo@debian.org>,
Build-Depends:
debhelper (>= 10),
dh-python,
openstack-pkg-tools,
po-debconf,
python3-all,
python3-pbr (>= 2.0.0),
python3-setuptools,
python3-sphinx (>= 1.6.2),
Build-Depends-Indep:
tempest (>= 1:17.1.0),
testrepository,
Standards-Version: 4.1.3
Vcs-Browser: https://salsa.debian.org/openstack-team/services/octavia
Vcs-Git: https://salsa.debian.org/openstack-team/services/octavia.git
Homepage: https://github.com/openstack/octavia
Package: octavia-api
Architecture: all
Section: python
Depends:
adduser,
octavia-common (= ${binary:Version}),
python3-openstackclient,
q-text-as-data,
${misc:Depends},
${ostack-lsb-base},
${python3:Depends},
Description: OpenStack Load Balancer Service - API Server
--- CHANGE ME ---
.
This package contains the Octavia API Server.
Package: octavia-common
Architecture: all
Depends:
adduser,
dbconfig-common,
debconf,
python3-octavia (= ${binary:Version}),
${misc:Depends},
${python3:Depends},
Description: OpenStack Load balancer Service - common files
--- CHANGE ME ---
.
This package contains common files for Octavia.
Package: octavia-doc
Section: doc
Architecture: all
Depends:
${misc:Depends},
${sphinxdoc:Depends},
Description: OpenStack Load Balancer Service - doc
--- CHANGE ME ---
.
This package contains the documentation.
Package: octavia-worker
Architecture: all
Depends:
octavia-common (= ${binary:Version}),
${misc:Depends},
${ostack-lsb-base},
${python3:Depends},
Description: OpenStack Load Balancer Service - Worker Node
--- CHANGE ME ---
.
This package contains the Octavia Worker Node.
Package: python3-octavia
Architecture: all
Section: python
Depends:
${misc:Depends},
${python3:Depends},
Description: OpenStack Load Balancer Service - Python files
--- CHANGE ME ---
.
This package contains the Python files and libraries.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: octavia
Source: https://github.com/openstack/octavia
Files: *
Copyright: (c) 2010, FILL UP HERE
License: Apache-2.0
Files: debian/*
Copyright: (c) 2018, Thomas Goirand <zigo@debian.org>
License: Apache-2.0
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.
ostack-lsb-base= lsb-base
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
#PKGOS-INCLUDE#
pkgos_register_endpoint_config octavia
db_go
exit 0
#!/bin/sh
### BEGIN INIT INFO
# Provides: octavia-api
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop: $remote_fs
# Should-Start: postgresql mysql keystone rabbitmq-server ntp
# Should-Stop: postgresql mysql keystone rabbitmq-server ntp
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Octavia API daemon
# Description: The Octavia project provides services for storing
# ...
# This is the API daemon.
### END INIT INFO
# Author: Thomas Goirand <zigo@debian.org>
DESC="OpenStack Octavia Load Balancer API"
PROJECT_NAME=octavia
NAME=${PROJECT_NAME}-api
NO_OPENSTACK_CONFIG_FILE_DAEMON_ARG=yes
#!/bin/sh
set -e
#PKGOS-INCLUDE#
if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst
pkgos_register_endpoint_postinst octavia octavia CHANGEME-SERVICE-TYPE "Octavia Load Balancing Service" PORTNUMBERHERE ""
db_stop
fi
#DEBHELPER#
exit 0
# These templates have been reviewed by the debian-l10n-english
# team
#
# If modifications/additions/rewording are needed, please ask
# debian-l10n-english@lists.debian.org for advice.
#
# Even minor modifications require translation updates and such
# changes should be coordinated with translators and reviewers.
Template: octavia/register-endpoint
Type: boolean
Default: false
_Description: Register Octavia in the Keystone endpoint catalog?
Each OpenStack service (each API) should be registered in order to be
accessible. This is done using "keystone service-create" and "keystone
endpoint-create". This can be done automatically now.
.
Note that you will need to have an up and running Keystone server on which to
connect using a known admin project name, admin username and password. The
admin auth token is not used anymore.
Template: octavia/keystone-ip
Type: string
_Description: Keystone server IP address:
Please enter the IP address of the Keystone server, so that octavia-api can
contact Keystone to do the Octavia service and endpoint creation.
Template: octavia/keystone-admin-name
Type: string
Default: admin
_Description: Keystone admin name:
To register the service endpoint, this package needs to know the Admin login,
name, project name, and password to the Keystone server.
Template: octavia/keystone-project-name
Type: string
Default: admin
_Description: Keystone admin project name:
To register the service endpoint, this package needs to know the Admin login,
name, project name, and password to the Keystone server.
Template: octavia/keystone-admin-password
Type: password
_Description: Keystone admin password:
To register the service endpoint, this package needs to know the Admin login,
name, project name, and password to the Keystone server.
Template: octavia/endpoint-ip
Type: string
_Description: Octavia endpoint IP address:
Please enter the IP address that will be used to contact Octavia.
.
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: octavia/region-name
Type: string
Default: regionOne
_Description: Name of the region to register:
OpenStack supports using availability zones, with each region representing
a location. Please enter the zone that you wish to use when registering the
endpoint.
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
CONF=/etc/octavia/octavia.conf
#PKGOS-INCLUDE#
pkgos_var_user_group octavia
pkgos_dbc_read_conf -pkg octavia-common ${CONF} DEFAULT connection octavia $@
pkgos_rabbit_read_conf ${CONF} DEFAULT octavia
pkgos_read_admin_creds ${CONF} keystone_authtoken octavia
db_go
exit 0
/var/log/octavia/*.log {
daily
missingok
compress
delaycompress
copytruncate
}
#!/bin/sh
set -e
CONF=/etc/octavia/octavia.conf
#PKGOS-INCLUDE#
if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst
pkgos_var_user_group octavia
pkgos_write_new_conf octavia octavia.conf
db_get octavia/configure_db
if [ "$RET" = "true" ]; then
pkgos_dbc_postinst ${CONF} DEFAULT connection octavia $@
fi
pkgos_rabbit_write_conf ${CONF} DEFAULT octavia
pkgos_write_admin_creds ${CONF} keystone_authtoken octavia
db_get octavia/configure_db
if [ "$RET" = "true" ]; then
echo "Now calling octavia-db-manage upgrade: this may take a while... PLEASE FIXME !!!"
su -s /bin/sh -c 'octavia-db-manage upgrade' octavia
fi
db_stop
fi
#DEBHELPER#
exit 0
#!/bin/sh
set -e
if [ "$1" = "purge" ] ; then
echo "Purging octavia. Backup of /var/lib/octavia can be found at /var/lib/octavia.tar.bz2" >&2
[ -e /var/lib/octavia ] && rm -rf /var/lib/octavia
[ -e /var/log/octavia ] && rm -rf /var/log/octavia
# Purge the db
if [ -f /usr/share/debconf/confmodule ] ; then
. /usr/share/debconf/confmodule
db_get octavia/configure_db || true
if [ "$RET" = "true" ]; then
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
. /usr/share/dbconfig-common/dpkg/postrm
dbc_go octavia-common $@
else
rm -f /etc/dbconfig-common/octavia-common.conf
if which ucf >/dev/null 2>&1; then
ucf --purge /etc/dbconfig-common/octavia-common.conf
ucfr --purge octavia-common /etc/dbconfig-common/octavia-common.conf
fi
fi
fi
fi
rm -f /etc/octavia/octavia.conf
rmdir --ignore-fail-on-non-empty /etc/octavia || true
fi
#DEBHELPER#
exit 0
# These templates have been reviewed by the debian-l10n-english
# team
#
# If modifications/additions/rewording are needed, please ask
# debian-l10n-english@lists.debian.org for advice.
#
# Even minor modifications require translation updates and such
# changes should be coordinated with translators and reviewers.
Template: octavia/configure_db
Type: boolean
Default: false
_Description: Set up a database for Octavia?
No database has been set up for Octavia to use. Before
continuing, you should make sure you have the following information:
.
* the type of database that you want to use;
* the database server hostname (that server must allow TCP connections from this
machine);
* a username and password to access the database.
.
If some of these requirements are missing, do not choose this option and run with
regular SQLite support.
.
You can change this setting later on by running "dpkg-reconfigure -plow
octavia-common".
Template: octavia/auth-host
Type: string
Default: 127.0.0.1
_Description: Authentication server hostname:
Please specify the hostname of the authentication server. Typically
this is also the hostname of the OpenStack Identity Service (Keystone).
Template: octavia/admin-tenant-name
Type: string
Default: admin
# Translators: a "tenant" in OpenStack world is
# an entity that contains one or more username/password couples.
# It's typically the tenant that will be used for billing. Having more than one
# username/password is very helpful in larger organization.
# You're advised to either keep "tenant" without translating it
# or keep it aside with your translation. Example for French:
# proprietaire ("tenant")
_Description: Authentication server tenant name:
Please specify the authentication server tenant name.
Template: octavia/admin-user
Type: string
Default: admin
_Description: Authentication server username:
Please specify the username to use with the authentication server.
Template: octavia/admin-password
Type: password
_Description: Authentication server password:
Please specify the password to use with the authentication server.
Template: octavia/rabbit_host
Type: string
Default: localhost
_Description: IP address of your RabbitMQ host:
In order to interoperate with other components of OpenStack, this package
needs to connect to a central RabbitMQ server.
.
Please specify the IP address of that server.
Template: octavia/rabbit_userid
Type: string
Default: guest
_Description: Username for connection to the RabbitMQ server:
In order to interoperate with other components of OpenStack, this package
needs to connect to a central RabbitMQ server.
.
Please specify the username used to connect to the RabbitMQ server.
Template: octavia/rabbit_password
Type: password
_Description: Password for connection to the RabbitMQ server:
In order to interoperate with other components of OpenStack, this package
needs to connect to a central RabbitMQ server.
.
Please specify the password used to connect to the RabbitMQ server.
Document: octavia-doc
Title: Octavia Documentation
Author: N/A
Abstract: Sphinx documentation for Octavia
Section: Programming/Python
Format: HTML
Index: /usr/share/doc/octavia-doc/html/index.html
Files: /usr/share/doc/octavia-doc/html/*
Description: Fix barbican-api defaults
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2017-10-16
--- barbican-2.0.0~rc1.orig/bin/barbican-api
+++ barbican-2.0.0~rc1/bin/barbican-api
@@ -5,7 +5,7 @@
def run():
- prop_dir = 'etc/barbican'
+ prop_dir = '/etc/barbican'
application = deploy.loadapp(
'config:{prop_dir}/barbican-api-paste.ini'.
--- barbican-2.0.0~rc1.orig/etc/barbican/barbican-api-paste.ini
+++ barbican-2.0.0~rc1/etc/barbican/barbican-api-paste.ini
@@ -9,7 +9,7 @@
# Use this pipeline for Barbican API - DEFAULT no authentication
[pipeline:barbican_api]
-pipeline = cors http_proxy_to_wsgi unauthenticated-context apiapp
+pipeline = cors http_proxy_to_wsgi authtoken context apiapp
#Use this pipeline to activate a repoze.profile middleware and HTTP port,
# to provide profiling information for the REST API processing.
Description: Fixes keystone_authtoken in config file.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2016-07-15
Index: barbican/etc/barbican/barbican-api-paste.ini
===================================================================
--- barbican.orig/etc/barbican/barbican-api-paste.ini
+++ barbican/etc/barbican/barbican-api-paste.ini
@@ -45,6 +45,13 @@ audit_map_file = /etc/barbican/api_audit
[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
+auth_host = 127.0.0.1
+auth_port = 5000
+auth_protocol = http
+admin_tenant_name = service
+admin_user = barbican
+admin_password = orange
+auth_version = v2.0
[filter:profile]
use = egg:repoze.profile
Description: Install missing files
PBR misses the files, this fixes it.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2016-03-24
--- /dev/null 2016-03-15 18:18:48.046095192 +0100
+++ b/MANIFEST.in 2016-03-24 12:06:50.311632566 +0100
@@ -0,0 +1,2 @@
+recursive-include barbican/model *
+recursive-include barbican/locale *
install-missing-files.patch
fix-barbican-api.patch
fixes-keystone_authtoken-in-config-file.patch
[type: gettext/rfc822deb] octavia-api.templates
[type: gettext/rfc822deb] octavia-common.templates
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the octavia package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: octavia\n"
"Report-Msgid-Bugs-To: octavia@packages.debian.org\n"
"POT-Creation-Date: 2018-02-22 12:07+0100\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
#: ../octavia-api.templates:2001
msgid "Register Octavia in the Keystone endpoint catalog?"
msgstr ""
#. Type: boolean
#. Description
#: ../octavia-api.templates:2001
msgid ""
"Each OpenStack service (each API) should be registered in order to be "
"accessible. This is done using \"keystone service-create\" and \"keystone "
"endpoint-create\". This can be done automatically now."
msgstr ""
#. Type: boolean
#. Description
#: ../octavia-api.templates:2001
msgid ""
"Note that you will need to have an up and running Keystone server on which "
"to connect using a known admin project name, admin username and password. "
"The admin auth token is not used anymore."
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:3001
msgid "Keystone server IP address:"
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:3001
msgid ""
"Please enter the IP address of the Keystone server, so that octavia-api can "
"contact Keystone to do the Octavia service and endpoint creation."
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:4001
msgid "Keystone admin name:"
msgstr ""
#. Type: string
#. Description
#. Type: string
#. Description
#. Type: password
#. Description
#: ../octavia-api.templates:4001 ../octavia-api.templates:5001
#: ../octavia-api.templates:6001
msgid ""
"To register the service endpoint, this package needs to know the Admin "
"login, name, project name, and password to the Keystone server."
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:5001
msgid "Keystone admin project name:"
msgstr ""
#. Type: password
#. Description
#: ../octavia-api.templates:6001
msgid "Keystone admin password:"
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:7001
msgid "Octavia endpoint IP address:"
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:7001
msgid "Please enter the IP address that will be used to contact Octavia."
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:7001
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
#: ../octavia-api.templates:8001
msgid "Name of the region to register:"
msgstr ""
#. Type: string
#. Description
#: ../octavia-api.templates:8001
msgid ""
"OpenStack supports using availability zones, with each region representing a "
"location. Please enter the zone that you wish to use when registering the "
"endpoint."
msgstr ""
#. Type: boolean
#. Description
#: ../octavia-common.templates:2001
msgid "Set up a database for Octavia?"
msgstr ""
#. Type: boolean
#. Description
#: ../octavia-common.templates:2001
msgid ""
"No database has been set up for Octavia to use. Before continuing, you "
"should make sure you have the following information:"
msgstr ""
#. Type: boolean
#. Description
#: ../octavia-common.templates:2001
msgid ""
" * the type of database that you want to use;\n"
" * the database server hostname (that server must allow TCP connections from "
"this\n"
" machine);\n"
" * a username and password to access the database."
msgstr ""
#. Type: boolean
#. Description
#: ../octavia-common.templates:2001
msgid ""
"If some of these requirements are missing, do not choose this option and run "
"with regular SQLite support."
msgstr ""
#. Type: boolean
#. Description
#: ../octavia-common.templates:2001
msgid ""
"You can change this setting later on by running \"dpkg-reconfigure -plow "
"octavia-common\"."
msgstr ""
#. Type: string
#. Description
#: ../octavia-common.templates:3001
msgid "Authentication server hostname:"
msgstr ""
#. Type: string
#. Description
#: ../octavia-common.templates:3001
msgid ""
"Please specify the hostname of the authentication server. Typically this is "
"also the hostname of the OpenStack Identity Service (Keystone)."
msgstr ""
#. Type: string
#. Description
#. Translators: a "tenant" in OpenStack world is
#. an entity that contains one or more username/password couples.
#. It's typically the tenant that will be used for billing. Having more than one
#. username/password is very helpful in larger organization.
#. You're advised to either keep "tenant" without translating it
#. or keep it aside with your translation. Example for French:
#. proprietaire ("tenant")
#: ../octavia-common.templates:4001
msgid "Authentication server tenant name:"
msgstr ""
#. Type: string
#. Description
#. Translators: a "tenant" in OpenStack world is
#. an entity that contains one or more username/password couples.
#. It's typically the tenant that will be used for billing. Having more than one
#. username/password is very helpful in larger organization.
#. You're advised to either keep "tenant" without translating it
#. or keep it aside with your translation. Example for French:
#. proprietaire ("tenant")
#: ../octavia-common.templates:4001
msgid "Please specify the authentication server tenant name."
msgstr ""
#. Type: string
#. Description
#: ../octavia-common.templates:5001
msgid "Authentication server username:"
msgstr ""
#. Type: string
#. Description
#: ../octavia-common.templates:5001
msgid "Please specify the username to use with the authentication server."
msgstr ""
#. Type: password
#. Description
#: ../octavia-common.templates:6001
msgid "Authentication server password:"
msgstr ""
#. Type: password
#. Description
#: ../octavia-common.templates:6001
msgid "Please specify the password to use with the authentication server."
msgstr ""
#. Type: string
#. Description
#: ../octavia-common.templates:7001
msgid "IP address of your RabbitMQ host:"
msgstr ""
#. Type: string
#. Description
#. Type: string
#. Description
#. Type: password
#. Description
#: ../octavia-common.templates:7001 ../octavia-common.templates:8001
#: ../octavia-common.templates:9001
msgid ""
"In order to interoperate with other components of OpenStack, this package "
"needs to connect to a central RabbitMQ server."
msgstr ""
#. Type: string