snap-gnocchi/snap/snap-openstack.yaml
Pete Vander Giessen 78d9683011 Snap is installable.
This commit takes the cookie cutter output and fixes it up into a snap
that builds and installs.

- Added required names and such in openstack-snap.yaml and nginx and
  wsgi config templates.

- Python packages that are declared in setup.cfg and not in
  requirements.txt are now called out explicitly in the
  snapcraft.yaml. (Note: a better fix might be to update snapcraft to
  be able to parse dependencies from setup.cfg.)

- Removed upper constraints files on Python packages (and removed oslo
  patch). Gnocchi does not appear to respect the upper constraints.

- Added gnocchi-config-generator command to apps.

- Used the above to generate a default config.

- Added snapstack tests (though they don't work yet).

There's still plenty to do: snapstack tests need to be fixed up (see
the TODO in tests/gnocchi.sh), and the snap as a whole needs to be
thoroughly tested.
2017-08-17 21:31:53 +00:00

52 lines
1.8 KiB
YAML

setup:
dirs:
- "{snap_common}/etc/gnocchi/gnocchi.conf.d"
- "{snap_common}/lib"
- "{snap_common}/lock"
- "{snap_common}/log"
- "{snap_common}/run"
- "{snap_common}/etc/nginx/sites-enabled"
- "{snap_common}/etc/nginx/snap/sites-enabled"
- "{snap_common}/etc/uwsgi/snap"
templates:
gnocchi-snap.conf.j2: "{snap_common}/etc/gnocchi/gnocchi.conf.d/gnocchi-snap.conf"
gnocchi-nginx.conf.j2: "{snap_common}/etc/nginx/snap/sites-enabled/gnocchi.conf"
nginx.conf.j2: "{snap_common}/etc/nginx/snap/nginx.conf"
entry_points:
gnocchi-api:
binary: "{snap}/bin/gnocchi-api"
config-files:
- "{snap}/etc/gnocchi/gnocchi.conf"
config-files-override:
- "{snap_common}/etc/gnocchi/gnocchi.conf"
config-dirs:
- "{snap_common}/etc/gnocchi/gnocchi.conf.d"
log-file: "{snap_common}/log/gnocchi-api.log"
gnocchi-metricd:
binary: "{snap}/bin/gnocchi-metricd"
config-files:
- "{snap}/etc/gnocchi/gnocchi.conf"
config-files-override:
- "{snap_common}/etc/gnocchi/gnocchi.conf"
config-dirs:
- "{snap_common}/etc/gnocchi/gnocchi.conf.d"
log-file: "{snap_common}/log/gnocchi-metricd.log"
gnocchi-uwsgi:
type: uwsgi
uwsgi-dir: "{snap_common}/etc/uwsgi/snap"
uwsgi-dir-override: "{snap_common}/etc/uwsgi"
uwsgi-log: "{snap_common}/log/uwsgi.log"
config-files:
- "{snap}/etc/gnocchi/gnocchi.conf"
config-files-override:
- "{snap_common}/etc/gnocchi/gnocchi.conf"
config-dirs:
- "{snap_common}/etc/gnocchi/gnocchi.conf.d"
log-file: "{snap_common}/log/gnocchi-api.log"
templates:
gnocchi-api.ini.j2: "{snap_common}/etc/uwsgi/snap/gnocchi-api.ini"
gnocchi-nginx:
type: nginx
config-file: "{snap_common}/etc/nginx/snap/nginx.conf"
config-file-override: "{snap_common}/etc/nginx/nginx.conf"