55 lines
2.2 KiB
YAML
55 lines
2.2 KiB
YAML
setup:
|
|
dirs:
|
|
- "{snap_common}/etc/gnocchi/gnocchi.conf.d"
|
|
- "{snap_common}/lib"
|
|
- "{snap_common}/lock"
|
|
- "{snap_common}/log"
|
|
- "{snap_common}/run"
|
|
# If the OpenStack service has an API that runs behind uwsgi+nginx,
|
|
# define uwsgi and nginx etc dirs.
|
|
- "{snap_common}/etc/nginx/sites-enabled"
|
|
- "{snap_common}/etc/nginx/snap/sites-enabled"
|
|
- "{snap_common}/etc/uwsgi/snap"
|
|
templates:
|
|
# The gnocchi snap will likely require a template for the corresponding
|
|
# OpenStack service(s). For example, you may need to render a template such
|
|
# as the following.
|
|
gnocchi-snap.conf.j2: "{snap_common}/etc/gnocchi/gnocchi.conf.d/gnocchi-snap.conf"
|
|
# If the OpenStack service has an API that runs behind uwsgi+nginx,
|
|
# render nginx config templates.
|
|
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:
|
|
# This is where entry_points are defined for the OpenStack service. For example,
|
|
# the service may have a database command-line tool such as the following.
|
|
gnocchi-manage:
|
|
binary: "{snap}/bin/gnocchi-manage"
|
|
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"
|
|
# If the OpenStack service has an API that runs behind uwsgi+nginx, the
|
|
# following entry_point must be defined.
|
|
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"
|
|
# If the OpenStack service has an API that runs behind uwsgi+nginx, the
|
|
# following entry_point must be defined.
|
|
gnocchi-nginx:
|
|
type: nginx
|
|
config-file: "{snap_common}/etc/nginx/snap/nginx.conf"
|
|
config-file-override: "{snap_common}/etc/nginx/nginx.conf"
|