
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, glance configs are installed in $SNAP_COMMON/etc/glance which has a symlink at /etc/glance. The glance apps then use the traditional directories when running commands and services. Change-Id: Ic763f9c8f34ab3096e8592520db00cdf81b0d9ef
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
name: glance
|
|
version: ocata
|
|
summary: OpenStack Image Service (glance)
|
|
description: |
|
|
Glance is a project that provides services and associated libraries
|
|
to store, browse, share, distribute and manage bootable disk images,
|
|
other data closely associated with initializing compute resources,
|
|
and metadata definitions.
|
|
confinement: classic
|
|
grade: devel
|
|
|
|
environment:
|
|
PATH: $PATH:$SNAP/bin/
|
|
|
|
apps:
|
|
api:
|
|
command: snap-openstack glance-api
|
|
daemon: simple
|
|
registry:
|
|
command: snap-openstack glance-registry
|
|
daemon: simple
|
|
manage:
|
|
command: snap-openstack glance-manage
|
|
aliases:
|
|
- glance-manage
|
|
|
|
parts:
|
|
glance:
|
|
plugin: python
|
|
python-version: python2
|
|
source: http://tarballs.openstack.org/glance/glance-master.tar.gz
|
|
python-packages:
|
|
- pymysql
|
|
- httplib2
|
|
- python-swiftclient
|
|
- os-brick
|
|
- python-cinderclient
|
|
- oslo.rootwrap
|
|
- oslo.vmware
|
|
- 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: [glance]
|
|
plugin: dump
|
|
source: snap
|
|
# TODO: replace below with scriplets once implemented in snapcraft
|
|
config:
|
|
after: [glance]
|
|
plugin: dump
|
|
source: http://tarballs.openstack.org/glance/glance-master.tar.gz
|
|
organize:
|
|
etc/*.conf: etc/glance/
|
|
etc/*.ini: etc/glance/
|
|
etc/*.json: etc/glance/
|
|
filesets:
|
|
etc:
|
|
- etc/glance/*.conf
|
|
- etc/glance/*.ini
|
|
- etc/glance/*.json
|
|
stage: [$etc]
|
|
snap: [$etc]
|