3082fc6290
The current snaps now have well-known aliases defined at install time for commands [1]. This means we can drop the manual alias definition from snapcraft.yaml and the instructions for setting it up. When building/installing locally users can still create the alias with 'snap alias'. [1] https://forum.snapcraft.io/t/auto-aliases-for-openstack-base-snaps/1146/6 Change-Id: Iaac052b25bf2509bdb57161086a7be59d58de15f
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name: neutron
|
|
version: ocata
|
|
summary: OpenStack Network Service (neutron)
|
|
description: OpenStack Network Service (neutron)
|
|
confinement: strict
|
|
grade: devel
|
|
|
|
apps:
|
|
api:
|
|
command: snap-openstack neutron-server
|
|
daemon: simple
|
|
plugs:
|
|
- network-bind
|
|
manage:
|
|
command: snap-openstack neutron-db-manage
|
|
plugs:
|
|
- network
|
|
|
|
parts:
|
|
neutron:
|
|
plugin: python
|
|
python-version: python2
|
|
source: http://tarballs.openstack.org/neutron/neutron-stable-ocata.tar.gz
|
|
python-packages:
|
|
- pymysql
|
|
- python-memcached
|
|
- git+https://github.com/openstack/snap.openstack#egg=snap.openstack
|
|
constraints: https://raw.githubusercontent.com/openstack/requirements/stable/ocata/upper-constraints.txt
|
|
build-packages:
|
|
- gcc
|
|
- libffi-dev
|
|
- libssl-dev
|
|
install: |
|
|
touch $SNAPCRAFT_PART_INSTALL/lib/python2.7/site-packages/paste/__init__.py
|
|
touch $SNAPCRAFT_PART_INSTALL/lib/python2.7/site-packages/repoze/__init__.py
|
|
export SNAP_ROOT="../../../"
|
|
export SNAP_SITE_PACKAGES="$SNAPCRAFT_PART_INSTALL/lib/python2.7/site-packages"
|
|
patch -d $SNAP_SITE_PACKAGES -p1 < $SNAP_ROOT/patches/oslo-config-dirs.patch
|
|
templates:
|
|
after: [neutron]
|
|
plugin: dump
|
|
source: snap
|
|
config:
|
|
after: [neutron]
|
|
plugin: dump
|
|
source: http://tarballs.openstack.org/neutron/neutron-stable-ocata.tar.gz
|
|
organize:
|
|
etc/*.conf: etc/neutron/
|
|
etc/*.ini: etc/neutron/
|
|
etc/*.json: etc/neutron/
|
|
etc/rootwrap.d/*: etc/neutron/rootwrap.d/
|
|
filesets:
|
|
etc:
|
|
- etc/neutron/*
|
|
stage: [$etc]
|
|
prime: [$etc]
|