snap-neutron/snapcraft.yaml
Corey Bryant fd1265eb20 Switch to classic confinement
Classic confinement allows the snap to behave like a traditionally
packaged application with full access to the system, and enables the
use of traditional directories such as /etc and /var/log.

We will continue to store all of the snap's files in $SNAP* directories.
This enables the snap to cleanup after itself if it is removed. However,
traditional directory locations are symlinked to their corresponding
$SNAP* directories.

For example, neutron configs are installed in $SNAP_COMMON/etc/neutron
which has a symlink at /etc/neutron.

The neutron apps then use the traditional directories when running
commands and services.

Change-Id: I392ba95cfaad1509b58beb2f82ba865b73971d5a
2017-03-21 12:47:52 +00:00

51 lines
1.2 KiB
YAML

name: neutron
version: ocata
summary: OpenStack Network Service (neutron)
description: OpenStack Network Service (neutron)
confinement: classic
grade: devel
environment:
PATH: $PATH:$SNAP/bin
apps:
api:
command: snap-openstack neutron-server
daemon: simple
manage:
command: snap-openstack neutron-db-manage
parts:
neutron:
plugin: python
python-version: python2
source: http://tarballs.openstack.org/neutron/neutron-master.tar.gz
python-packages:
- pymysql
- python-memcached
- git+https://github.com/openstack/snap.openstack#egg=snap.openstack
constraints: https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt
build-packages:
- gcc
- libffi-dev
- libssl-dev
templates:
after: [neutron]
plugin: dump
source: snap
# TODO: replace below with scriplets once implemented in snapcraft
config:
after: [neutron]
plugin: dump
source: http://tarballs.openstack.org/neutron/neutron-master.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]
snap: [$etc]