Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

2.5. 기능 맵

기능 맵은 계획 및 해당 종속 항목의 환경 파일 매핑을 제공합니다. 이 파일을 사용하여 director의 웹 UI를 통해 환경 파일을 설명하고 활성화합니다. Overcloud 계획에서 감지되지만 capabilities-map.yaml 에 나열되지 않은 사용자 지정 환경 파일은 2 배포 구성 > 웹 UI의 전체 설정 지정 2기타 하위 탭에 나열되어 있습니다.

기본 파일은 /usr/share/openstack-tripleo-heat-templates/capabilities-map.yaml 에 있습니다.

다음은 기능 맵의 구문 예입니다.

topics: 1
  - title: My Parent Section
    description: This contains a main section for different environment files
    environment_groups: 2
      - name: my-environment-group
        title: My Environment Group
        description: A list of environment files grouped together
        environments: 3
          - file: environment_file_1.yaml
            title: Environment File 1
            description: Enables environment file 1
            requires: 4
              - dependent_environment_file.yaml
          - file: environment_file_2.yaml
            title: Environment File 2
            description: Enables environment file 2
            requires: 5
              - dependent_environment_file.yaml
          - file: dependent_environment_file.yaml
            title: Dependent Environment File
            description: Enables the dependent environment file
1
topics 매개 변수에는 UI 배포 구성에 섹션 목록이 포함되어 있습니다. 각 주제는 단일 환경 옵션 화면으로 표시되며, environment _groups 매개 변수로 정의된 여러 환경 그룹이 포함되어 있습니다. 각 항목에는 일반 텍스트 제목과 설명이 있을 수 있습니다.
2
environment_groups 매개 변수는 UI의 배포 구성에 있는 환경 파일 그룹을 나열합니다. 예를 들어 스토리지 주제에서 Ceph 관련 환경 파일을 위한 환경 그룹이 있을 수 있습니다. 각 환경 그룹에는 일반 텍스트 제목과 설명이 있을 수 있습니다.
3
environments 매개 변수는 환경 그룹에 속하는 모든 환경 파일을 보여줍니다. file 매개 변수는 환경 파일의 위치입니다. 각 환경 항목에는 일반 텍스트 제목과 설명이 있을 수 있습니다.
4 5
requires 매개 변수는 환경 파일의 종속성 목록입니다. 이 예에서 environment_file_1.yamlenvironment_file_2.yaml 모두 dependent_environment_file.yaml 도 활성화해야 합니다.
참고

Red Hat OpenStack Platform은 이 파일을 사용하여 director UI에 기능에 대한 액세스를 추가합니다. 최신 버전의 Red Hat OpenStack Platform이 이 파일을 재정의할 수 있으므로 이 파일을 수정하지 않는 것이 좋습니다.