7.9. CephFS-NFS 백엔드 환경 파일
CephFS-NFS 백엔드 manila-cephfsganesha-config.yaml 을 정의하는 환경 파일은 언더클라우드 노드의 /usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsganesha-config.yaml.yaml 경로에 있습니다.
manila-cephfsganesha-config.yaml 환경 파일에는 Shared File Systems 서비스(manila)의 배포와 관련된 설정이 포함되어 있습니다. 백엔드 기본 설정은 대부분의 환경에서 작동합니다. 다음 예제에서는 Shared File Systems 서비스를 배포하는 동안 director가 사용하는 기본값을 보여줍니다.
[stack@undercloud ~]$ cat /usr/share/openstack-tripleo-heat-templates/environments/manila-cephfsganesha-config.yaml
# A Heat environment file which can be used to enable a
# a Manila CephFS-NFS driver backend.
resource_registry:
OS::TripleO::Services::ManilaApi: ../deployment/manila/manila-api-container-puppet.yaml
OS::TripleO::Services::ManilaScheduler: ../deployment/manila/manila-scheduler-container-puppet.yaml
# Only manila-share is pacemaker managed:
OS::TripleO::Services::ManilaShare: ../deployment/manila/manila-share-pacemaker-puppet.yaml
OS::TripleO::Services::ManilaBackendCephFs: ../deployment/manila/manila-backend-cephfs.yaml
# ceph-nfs (ganesha) service is installed and configured by Director
# but it's still managed by pacemaker
OS::TripleO::Services::CephNfs: ../deployment/cephadm/ceph-nfs.yaml
parameter_defaults:
ManilaCephFSBackendName: cephfs
ManilaCephFSDriverHandlesShareServers: false
ManilaCephFSCephFSAuthId: 'manila'
# manila cephfs driver supports either native cephfs backend - 'CEPHFS'
# (users mount shares directly from ceph cluster), or nfs-ganesha backend -
# 'NFS' (users mount shares through nfs-ganesha server)
ManilaCephFSCephFSProtocolHelperType: 'NFS'
parameter_defaults 헤더는 구성의 시작을 나타냅니다. resource_registry 에 설정된 기본값을 재정의하려면 이 manila-cephfsganesha-config.yaml 환경 파일을 로컬 환경 파일 디렉터리 /home/stack/templates/ 에 복사하고 환경에 필요한 대로 매개변수 설정을 편집합니다. 여기에는 OS::Tripleo::Services::ManilaBackendCephFs 에서 설정한 값이 포함되며, 이 값은 CephFS 백엔드의 기본값을 설정합니다.
- 1
ManilaCephFSBackendName은 CephFS 백엔드의 manila 구성 이름을 설정합니다. 이 경우 기본 백엔드 이름은cephfs입니다.- 2
ManilaCephFSDriverHandlesShareServers는 공유 서버의 라이프사이클을 제어합니다.false로 설정하면 드라이버가 라이프사이클을 처리하지 않습니다. 지원되는 유일한 옵션입니다.- 3
ManilaCephFSCephFSAuthId는 director가 Ceph 클러스터에 액세스하기 위해manila서비스에 대해 생성하는 Ceph 인증 ID를 정의합니다.
환경 파일에 대한 자세한 내용은 director를 사용하여 Red Hat OpenStack Platform 설치 및 관리의 환경 파일을 참조하십시오.