
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.
12 lines
325 B
Django/Jinja
12 lines
325 B
Django/Jinja
# gnocchi-api
|
|
server {
|
|
listen 8041;
|
|
access_log {{ snap_common }}/log/nginx-access.log;
|
|
error_log {{ snap_common }}/log/nginx-error.log;
|
|
location / {
|
|
include {{ snap }}/usr/conf/uwsgi_params;
|
|
uwsgi_param SCRIPT_NAME '';
|
|
uwsgi_pass unix://{{ snap_common }}/run/gnocchi-api.sock;
|
|
}
|
|
}
|