snap-keystone/snap/snap-openstack.yaml
Corey Bryant e62cd74e7e 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, keystone configs are installed in $SNAP_COMMON/etc/keystone
which has a symlink at /etc/keystone.

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

Change-Id: Ib33d958adab660a092110c4beae928dc9661d0c6
2017-03-16 15:22:38 +00:00

36 lines
1.2 KiB
YAML

setup:
dirs:
- "{snap_common}/etc/keystone/keystone.conf.d"
- "{snap_common}/etc/keystone/fernet-keys"
- "{snap_common}/etc/uwsgi"
- "{snap_common}/lib/keystone"
- "{snap_common}/lock/keystone"
- "{snap_common}/log/keystone"
- "{snap_common}/log/uwsgi"
- "{snap_common}/run/keystone"
symlinks:
"{snap_common}/etc/keystone": /etc/keystone
"{snap_common}/etc/uwsgi": /etc/uwsgi
"{snap_common}/lib/keystone": /var/lib/keystone
"{snap_common}/lock/keystone": /var/lock/keystone
"{snap_common}/log/keystone": /var/log/keystone
"{snap_common}/log/uwsgi": /var/log/uwsgi
"{snap_common}/run/keystone": /var/run/keystone
templates:
keystone-snap.conf.j2: "{snap_common}/etc/keystone/keystone.conf.d/keystone-snap.conf"
admin.ini.j2: "{snap_common}/etc/uwsgi/keystone-admin.ini"
public.ini.j2: "{snap_common}/etc/uwsgi/keystone-public.ini"
copyfiles:
"{snap}/etc/keystone": "{snap_common}/etc/keystone"
entry_points:
keystone-manage:
binary: keystone-manage
config-files:
- "/etc/keystone/keystone.conf"
config-dirs:
- "/etc/keystone/keystone.conf.d"
keystone-api:
type: uwsgi
uwsgi-dir: "/etc/uwsgi"
log-file: "/var/log/uwsgi/keystone.log"