
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
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: keystone
|
|
version: ocata
|
|
summary: OpenStack Identity Service (keystone)
|
|
description: |
|
|
Keystone provides authentication, authorization and service discovery
|
|
mechanisms via HTTP primarily for use by projects in the OpenStack
|
|
family. It is most commonly deployed as an HTTP interface to existing
|
|
identity systems, such as LDAP.
|
|
confinement: classic
|
|
grade: devel
|
|
|
|
environment:
|
|
PATH: $PATH:$SNAP/bin/
|
|
|
|
apps:
|
|
api:
|
|
command: snap-openstack keystone-api
|
|
daemon: simple
|
|
manage:
|
|
command: snap-openstack keystone-manage
|
|
|
|
parts:
|
|
keystone:
|
|
plugin: python
|
|
python-version: python2
|
|
source: http://tarballs.openstack.org/keystone/keystone-master.tar.gz
|
|
python-packages:
|
|
- pymysql
|
|
- uwsgi
|
|
- 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: [keystone]
|
|
plugin: dump
|
|
source: snap
|
|
config:
|
|
after: [keystone]
|
|
plugin: dump
|
|
source: http://tarballs.openstack.org/keystone/keystone-master.tar.gz
|
|
organize:
|
|
etc/*.conf: etc/keystone/
|
|
etc/*.ini: etc/keystone/
|
|
etc/*.json: etc/keystone/
|
|
etc/*.templates: etc/keystone/
|
|
filesets:
|
|
etc:
|
|
- etc/keystone/*.conf
|
|
- etc/keystone/*.ini
|
|
- etc/keystone/*.json
|
|
- etc/keystone/*.templates
|
|
stage: [$etc]
|
|
snap: [$etc]
|