setup: dirs: - "{snap_common}/etc/cinder/cinder.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 cinder 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. cinder-snap.conf.j2: "{snap_common}/etc/cinder/cinder.conf.d/cinder-snap.conf" # If the OpenStack service has an API that runs behind uwsgi+nginx, # render nginx config templates. cinder-nginx.conf.j2: "{snap_common}/etc/nginx/snap/sites-enabled/cinder.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. cinder-manage: binary: "{snap}/bin/cinder-manage" config-files: - "{snap}/etc/cinder/cinder.conf" config-files-override: - "{snap_common}/etc/cinder/cinder.conf" config-dirs: - "{snap_common}/etc/cinder/cinder.conf.d" # If the OpenStack service has an API that runs behind uwsgi+nginx, the # following entry_point must be defined. cinder-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/cinder/cinder.conf" config-files-override: - "{snap_common}/etc/cinder/cinder.conf" config-dirs: - "{snap_common}/etc/cinder/cinder.conf.d" log-file: "{snap_common}/log/cinder-api.log" templates: cinder-api.ini.j2: "{snap_common}/etc/uwsgi/snap/cinder-api.ini" # If the OpenStack service has an API that runs behind uwsgi+nginx, the # following entry_point must be defined. cinder-nginx: type: nginx config-file: "{snap_common}/etc/nginx/snap/nginx.conf" config-file-override: "{snap_common}/etc/nginx/nginx.conf"