summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-21 13:53:19 +0000
committerGerrit Code Review <review@openstack.org>2017-03-21 13:53:19 +0000
commit0c4e4c0bf10fb096afd606f814e8edf65921a9d9 (patch)
treee9a34cb1e5a0f9801e1f68a3a96f6bae7c1938f0
parent8253c39562f77346e1fd6cb940199eac051f5fa8 (diff)
parent2f522172ce2a7eaa251a742079dadb67aa0ec900 (diff)
Merge "Introduce proper packaging for fuel-nailgun deb package"
-rw-r--r--debian/control84
-rw-r--r--debian/copyright28
-rw-r--r--debian/docs1
-rw-r--r--debian/fencing-agent.dirs2
-rw-r--r--debian/fencing-agent.install3
-rw-r--r--debian/fuel-nailgun.dirs4
-rw-r--r--debian/fuel-nailgun.install2
-rw-r--r--debian/fuel-openstack-metadata.dirs2
-rw-r--r--debian/fuel-openstack-metadata.install2
-rwxr-xr-xdebian/openstack-version12
-rwxr-xr-xdebian/rules45
11 files changed, 169 insertions, 16 deletions
diff --git a/debian/control b/debian/control
index e2a08a9..b44b87a 100644
--- a/debian/control
+++ b/debian/control
@@ -1,11 +1,80 @@
1Source: fuel-nailgun 1Source: fuel-nailgun
2Section: unknown 2Section: python
3Priority: net 3Priority: optional
4Maintainer: Mirantis Producta <product@mirantis.com> 4Maintainer: Mirantis <product@mirantis.com>
5Build-Depends: debhelper (>= 8.0.0), python-setuptools 5Build-Depends: debhelper (>= 9),
6X-Python-Version: 2.6, 2.7 6 dh-python,
7Standards-Version: 3.9.2 7 dh-systemd,
8Homepage: mirantis.com 8 openstack-pkg-tools,
9 python-all,
10 python-setuptools (>= 16.0),
11 python-pbr (>= 1.8),
12 python-yaml (>= 3.1.0),
13 git,
14Standards-Version: 3.9.4
15Homepage: https://launchpad.net/fuel
16
17Package: fuel-nailgun
18Architecture: all
19Depends: fuel-openstack-metadata,
20 python-alembic (>= 0.8.4),
21 python-amqplib (>= 1.0.2),
22 python-anyjson (>= 0.3.3),
23 python-babel (>= 2.3.4),
24 python-crypto (>= 2.6.1),
25 python-decorator (>= 3.4.0),
26 python-fysom (>= 1.0.11),
27 python-iso8601 (>= 0.1.11),
28 python-jinja2 (>= 2.8),
29 python-jsonschema (>= 2.3.0),
30 python-keystoneclient (>= 1.7.0),
31 python-keystonemiddleware (>= 4.0.0),
32 python-kombu (>= 3.0.25),
33 python-mako (>= 0.9.1),
34 python-markupsafe (>= 0.18),
35 python-migrate (>= 0.9.6),
36 python-netaddr (>= 0.7.12),
37 python-netifaces (>= 0.10.4),
38 python-oslo-config (>= 1:1.2.1),
39 python-oslo-serialization (>= 1.0.0),
40 python-oslo-db (>= 1.0.0),
41 python-paste (>= 1.7.5.1),
42 python-ply (>= 3.4),
43 python-psycopg2 (>= 2.5.1),
44 python-requests (>= 2.10.0),
45 python-simplejson (>= 3.3.0),
46 python-six (>= 1.9.0),
47 python-sqlalchemy (>= 1.0.10),
48 python-stevedore (>= 1.10.0),
49 python-urllib3 (>= 1.15.1),
50 python-webpy (>= 0.37),
51 python-wsgilog (>= 0.3),
52 python-yaml (>= 3.10),
53 python-novaclient (>= 2.29.0),
54 python-networkx (>= 1.8),
55 python-cinderclient (>= 1.6.0),
56 python-pydot-ng (>= 1.0.0),
57 python-uwsgidecorators (>= 2.0.12),
58 python-yaql (>= 1.1.0),
59 python-tz (>= 2013.6),
60 ${python:Depends},
61 ${misc:Depends}
62Description: fuel-web (nailgun) implements REST API and deployment data management.
63 It manages disk volumes configuration data, networks configuration data
64 and any other environment specific data which are necessary for successful deployment.
65 It has required orchestration logic to build instructions for provisioning
66 and deployment in a right order. Nailgun uses SQL database to store its data
67 and AMQP service to interact with workers.
68
69Package: fuel-openstack-metadata
70Architecture: all
71Depends: ${misc:Depends}
72Description: fuel-web (nailgun) implements REST API and deployment data management.
73 It manages disk volumes configuration data, networks configuration data
74 and any other environment specific data which are necessary for successful deployment.
75 It has required orchestration logic to build instructions for provisioning
76 and deployment in a right order. Nailgun uses SQL database to store its data
77 and AMQP service to interact with workers.
9 78
10Package: fencing-agent 79Package: fencing-agent
11Architecture: all 80Architecture: all
@@ -16,4 +85,3 @@ Depends: ohai,
16 ruby-json, 85 ruby-json,
17 ${misc:Depends} 86 ${misc:Depends}
18Description: Fencing agent 87Description: Fencing agent
19 .
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8f21453
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
1Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2Upstream-Name: fuel-web
3Source: https://github.com/openstack/fuel-web.git
4
5Files: *
6Copyright: (c) 2016, Mirantis, Inc.
7License: Apache-2
8
9Files: debian/*
10Copyright: (c) 2016, Mirantis, Inc.
11License: Apache-2
12
13License: Apache-2
14 Licensed under the Apache License, Version 2.0 (the "License");
15 you may not use this file except in compliance with the License.
16 You may obtain a copy of the License at
17 .
18 http://www.apache.org/licenses/LICENSE-2.0
19 .
20 Unless required by applicable law or agreed to in writing, software
21 distributed under the License is distributed on an "AS IS" BASIS,
22 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 See the License for the specific language governing permissions and
24 limitations under the License.
25 .
26 On Debian-based systems the full text of the Apache version 2.0 license
27 can be found in `/usr/share/common-licenses/Apache-2.0'.
28
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
README.md
diff --git a/debian/fencing-agent.dirs b/debian/fencing-agent.dirs
new file mode 100644
index 0000000..b23cc24
--- /dev/null
+++ b/debian/fencing-agent.dirs
@@ -0,0 +1,2 @@
1opt/nailgun/bin
2etc/cron.d
diff --git a/debian/fencing-agent.install b/debian/fencing-agent.install
index 19e8c47..713bd04 100644
--- a/debian/fencing-agent.install
+++ b/debian/fencing-agent.install
@@ -1 +1,2 @@
1bin/fencing-agent.rb /opt/nailgun/bin 1bin/fencing-agent.rb opt/nailgun/bin
2bin/fencing-agent.cron etc/cron.d
diff --git a/debian/fuel-nailgun.dirs b/debian/fuel-nailgun.dirs
new file mode 100644
index 0000000..67d11e4
--- /dev/null
+++ b/debian/fuel-nailgun.dirs
@@ -0,0 +1,4 @@
1etc/nailgun
2var/log/nailgun
3usr/bin
4usr/share
diff --git a/debian/fuel-nailgun.install b/debian/fuel-nailgun.install
new file mode 100644
index 0000000..ef0bddc
--- /dev/null
+++ b/debian/fuel-nailgun.install
@@ -0,0 +1,2 @@
1nailgun/nailgun/settings.yaml /etc/nailgun/
2systemd/* /lib/systemd/system/
diff --git a/debian/fuel-openstack-metadata.dirs b/debian/fuel-openstack-metadata.dirs
new file mode 100644
index 0000000..7a41f21
--- /dev/null
+++ b/debian/fuel-openstack-metadata.dirs
@@ -0,0 +1,2 @@
1usr/share/fuel-openstack-metadata
2etc
diff --git a/debian/fuel-openstack-metadata.install b/debian/fuel-openstack-metadata.install
new file mode 100644
index 0000000..5c955f5
--- /dev/null
+++ b/debian/fuel-openstack-metadata.install
@@ -0,0 +1,2 @@
1nailgun/nailgun/fixtures/openstack.yaml usr/share/fuel-openstack-metadata
2fuel_openstack_version etc
diff --git a/debian/openstack-version b/debian/openstack-version
new file mode 100755
index 0000000..07f857f
--- /dev/null
+++ b/debian/openstack-version
@@ -0,0 +1,12 @@
1#! /usr/bin/env python2
2
3import sys
4import yaml
5
6if len(sys.argv) == 2:
7 openstack_yaml = open(sys.argv[1])
8 yaml = yaml.safe_load(openstack_yaml)
9 elems = filter(lambda r: r['fields'].get('name'), yaml)
10 print elems[0]['fields']['version']
11else:
12 print """Usage: {} OPENSTACK_YAML""".format(sys.argv[0])
diff --git a/debian/rules b/debian/rules
index 9731207..c4d7e8e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,46 @@
1#!/usr/bin/make -f 1#!/usr/bin/make -f
2# -*- makefile -*-
3
2DH_VERBOSE=1 4DH_VERBOSE=1
3 5
4topdir=$(shell pwd) 6PYTHONS:=$(shell pyversions -vr)
7
8include /usr/share/openstack-pkg-tools/pkgos.make
9
10#export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f2 | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/' | head -n 1)
5 11
6%: 12%:
7 dh $@ --with python2 13 dh $@ --with python2,systemd
8 14
9override_dh_auto_install:
10 dh_auto_install
11override_dh_auto_build: 15override_dh_auto_build:
12 dh_clean
13 dh_auto_build 16 dh_auto_build
14override_dh_auto_clean: 17 python $(CURDIR)/debian/openstack-version nailgun/nailgun/fixtures/openstack.yaml > $(CURDIR)/fuel_openstack_version
15 dh_auto_clean 18
19override_dh_auto_install:
20 cd nailgun \
21 set -e ; for pyvers in $(PYTHONS); do \
22 python$$pyvers setup.py install --install-layout=deb \
23 --root $(CURDIR)/debian/fuel-nailgun; \
24 done
25
26override_dh_clean:
27 rm -rf build
28 dh_clean -O--buildsystem=python_distutils
29 rm -f debian/nailgun-common.postinst
30 rm -f debian/*.service debian/*.init debian/*.upstart
31
32override_dh_systemd_enable: gen-init-configurations
33 dh_systemd_enable --no-enable
34
35override_dh_systemd_start: gen-init-configurations
36 dh_systemd_start --no-start
37
38# Commands not to run
39override_dh_installcatalogs:
40override_dh_installemacsen override_dh_installifupdown:
41override_dh_installinfo override_dh_installmenu override_dh_installmime:
42override_dh_installmodules override_dh_installlogcheck:
43override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm:
44override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal:
45override_dh_installcron override_dh_installdebconf:
46override_dh_installlogrotate override_dh_installgsettings: