
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.
17 lines
615 B
Django/Jinja
17 lines
615 B
Django/Jinja
# If the OpenStack service has an API that runs behind uwsgi+nginx, you'll need
|
|
# to define this template. Be sure to update the path for the wsgi-file and
|
|
# "api-name" for the socket. You may also want to rename this file according to
|
|
# the service it provides, and you may even need to provide multiple uwsgi files
|
|
# if there is more than one wsgi application.
|
|
[uwsgi]
|
|
wsgi-file = {{ snap }}/bin/gnocchi-api
|
|
uwsgi-socket = {{ snap_common }}/run/gnocchi-api.sock
|
|
buffer-size = 65535
|
|
master = true
|
|
enable-threads = true
|
|
processes = 4
|
|
thunder-lock = true
|
|
lazy-apps = true
|
|
home = {{ snap }}/usr
|
|
pyargv = {{ pyargv }}
|