Commit Graph

8 Commits

Author SHA1 Message Date
Corey Bryant 05001ec249 Switch back to strict confinement
The following are included in the switch to strict confinement:
* Set snapcraft.yaml confinement to strict and restore/update plugs
* Drop building of python as it's not required for strict snaps
* Switch back to running apps under root

Change-Id: I4704cac75230df5514ce42cdd6cde2b7ad9ed9b3
2017-06-22 12:16:08 +00:00
Corey Bryant a4222ce874 Switch from conf.d to <project>.conf.d
This aligns with the extension that oslo.config expects.

Change-Id: I86f590d97a41756258aa3184cf94de827f36c0eb
2017-06-14 15:28:40 +00:00
Corey Bryant 7f0d4d4847 Enable override of config files
Enable the ability for default config files to be overridden.

Also refresh the README while documenting how default config files can
be overridden.

Change-Id: I792475bd20adda2626bbf3775924a21c811df15e
2017-06-05 14:10:50 +00:00
Corey Bryant 7470cb25fd Drop privileges when running commands
Drop privileges to a regular user when running commands defined
by this snap.

Change-Id: I8ada8f30506756a48a70063ac6444ee9167bfbc7
2017-05-18 16:14:29 +00:00
Corey Bryant eb8c4708b1 Use both SNAP and SNAP_COMMON with --config-file
Change-Id: Ife9181a8da53b15b8688666b84d0694255232416
2017-05-05 18:20:15 +00:00
Corey Bryant b05ef80bde Go back to installing files to SNAP_COMMON
The symlinks setup key is dropped, and SNAP_COMMON is used as the
root directory where setup dirs, templates, and copyfiles are
installed. This aligns better with how snaps should behave.

Change-Id: Ie9c6ba930798dcb6c0bfd43a6504d3fdb357befa
2017-04-24 13:49:58 +00:00
Corey Bryant cd9990d665 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, 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
2017-03-21 12:32:02 +00:00
James Page 286b64f4cf Rename conf folder to snap 2016-11-23 09:18:28 +00:00