From e7d8fe976e6663a37e60ce2c886252754f69bb2c Mon Sep 17 00:00:00 2001 From: James Page Date: Wed, 23 Nov 2016 09:13:37 +0000 Subject: [PATCH] Update README with usage information --- README.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 66 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8e6f65c..0c0aef1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,67 @@ -Glance Snap -=========== +# Glance Snap -This repository contains the source code of the snap for the -OpenStack Image service, Glance. +This repository contains the source code of the snap for the OpenStack Image +service, Glance. + +## Installing this snap + +The glance snap can be installed directly from the snap store: + + sudo snap install [--edge] glance + +## Configuring Glance + +Snaps run in an AppArmor and seccomp confined profile, so don't read +configuration from `/etc/glance` on the hosting operating system install. + +This snap supports configuration via the $SNAP\_COMMON writable area for the +snap: + + etc + ├── glance + │   ├── glance-api.conf + │   └── glance-registry.conf + └── glance.conf.d + ├── database.conf + ├── glance-snap.conf + └── keystone.conf + +The glance daemons (api and registry) can be configured in a few ways. + +Firstly each daemon will detect and read `etc/glance/glance-.conf` +if it exists so you can just place all configuration in this file for each +daemon. + +Alternatively all daemons will load all configuration files from +`etc/glance.conf.d` - in the above example, database and keystone authtoken +onfiguration is shared across both daemons using configuration snippets in +separate files in `etc/glance.conf.d`. + +For reference, $SNAP\_COMMON is typically located under +`/var/snap/glance/common`. + +## Managing Glance + +Currently all snap binaries must be run as root; for example, to run the +glance-manage binary use: + + sudo glance.manage + +## Restarting Glance services + +To restart all glance services: + + sudo systemctl restart snap.glance.* + +or use the individual service name: + + sudo systemctl restart snap.glance.api + sudo systemctl restart snap.glance.registy + +## Support + +Please report any bugs related to this snap on +[Launchpad](https://bugs.launchpad.net/snap-glance/+filebug). + +Alternatively you can find the OpenStack Snap team in `#openstack-snaps` +on Freenode IRC.