Alan Bishop aa1f4bf621 Fix selinux context for glance-api
Remove the z flag from glance-api's service directory. The service
directory does not need to be shared with other containers, and
podman fails to apply setting with glance is using NFS (i.e.
/var/lib/glance/images is a mount point).

Also update the NFS mount options to use svirt_sandbox_file_t, which
is consistent with the parent service directory.

Closes-Bug: #1834857
Closes-Bug: #1844465
Change-Id: I7e135615fb53815ce14a3bcfec42b28f86d6dbae
2019-09-18 05:47:56 -07:00

59 lines
2.2 KiB
YAML

# *******************************************************************
# This file was created automatically by the sample environment
# generator. Developers should use `tox -e genconfig` to update it.
# Users are recommended to make changes to a copy of the file instead
# of the original, if any customizations are needed.
# *******************************************************************
# title: Enable Glance NFS Backend
# description: |
# Configure and include this environment to enable the use of an NFS
# share as the backend for Glance.
parameter_defaults:
# List of enabled Image Import Methods. Valid values in the list are 'glance-direct' and 'web-download'
# Type: comma_delimited_list
GlanceEnabledImportMethods: web-download
# When using GlanceBackend 'file', Netapp mount NFS share for image storage.
# Type: boolean
GlanceNetappNfsEnabled: False
# NFS mount options for image storage (when GlanceNfsEnabled is true)
# Type: string
GlanceNfsOptions: _netdev,bg,intr,context=system_u:object_r:svirt_sandbox_file_t:s0
# NFS share to mount for image storage (when GlanceNfsEnabled is true)
# Type: string
GlanceNfsShare: ''
# URI that specifies the staging location to use when importing images
# Type: string
GlanceNodeStagingUri: file:///var/lib/glance/staging
# NFS mount options for NFS image import staging
# Type: string
GlanceStagingNfsOptions: _netdev,bg,intr,context=system_u:object_r:svirt_sandbox_file_t:s0
# NFS share to mount for image import staging
# Type: string
GlanceStagingNfsShare: ''
# Netapp share to mount for image storage (when GlanceNetappNfsEnabled is true)
# Type: string
NetappShareLocation: ''
# ******************************************************
# Static parameters - these are values that must be
# included in the environment but should not be changed.
# ******************************************************
# The short name of the Glance backend to use. Should be one of swift, rbd, cinder, or file
# Type: string
GlanceBackend: file
# When using GlanceBackend 'file', mount NFS share for image storage.
# Type: boolean
GlanceNfsEnabled: True
# *********************
# End static parameters
# *********************