snap-neutron/snap/snap-openstack.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

35 lines
1.1 KiB
YAML

setup:
dirs:
- "{snap_common}/etc/neutron/conf.d"
- "{snap_common}/etc/neutron/plugins/ml2"
- "{snap_common}/etc/neutron/policy.d"
- "{snap_common}/etc/neutron/rootwrap.d"
- "{snap_common}/lib/neutron"
- "{snap_common}/log/neutron"
- "{snap_common}/lock/neutron"
symlinks:
"{snap_common}/etc/neutron": /etc/neutron
"{snap_common}/lib/neutron": /var/lib/neutron
"{snap_common}/log/neutron": /var/log/neutron
"{snap_common}/lock/neutron": /var/lock/neutron
templates:
neutron-snap.conf.j2: "{snap_common}/etc/neutron/conf.d/neutron-snap.conf"
copyfiles:
"{snap}/etc/neutron": "{snap_common}/etc/neutron"
entry_points:
neutron-db-manage:
binary: neutron-db-manage
config-files:
- "/etc/neutron/neutron.conf"
- "/etc/neutron/plugins/ml2/ml2_conf.ini"
config-dirs:
- "/etc/neutron/conf.d"
neutron-server:
binary: neutron-server
config-files:
- "/etc/neutron/neutron.conf"
- "/etc/neutron/plugins/ml2/ml2_conf.ini"
config-dirs:
- "/etc/neutron/conf.d"
log-file: "/var/log/neutron/neutron-server.log"