- Heat Templates 중 roles_data, network_data 파일 복사
[stack@osp-director ~]$ cd /usr/share/openstack-tripleo-heat-templates/ [stack@osp-director openstack-tripleo-heat-templates]$ cp roles_data.yaml network_data.yaml ~/templates/main/
- roles_data, network_data 파일 수정 작업
- roles_data.yaml 파일
## 클라우드의 역활을 정의 하고 서비스를 각 역활에 매핑하는 파일 ## 아래와 같은 형식으로 되어 있으며, 이중 ** networks: ** 부분을 기존 물리서버의 NIC 사용 용도에 맞춰줘야 합니다. ############################################################################### # Role: Controller # ############################################################################### - name: Controller description: | Controller role that has all the controler services loaded and handles Database, Messaging and Network functions. CountDefault: 1 tags: - primary - controller networks: - External - InternalApi - Storage - StorageMgmt - Tenant default_route_networks: ['External'] HostnameFormatDefault: '%stackname%-controller-%index%' uses_deprecated_params: True deprecated_param_extraconfig: 'controllerExtraConfig' deprecated_param_flavor: 'OvercloudControlFlavor' deprecated_param_image: 'controllerImage' deprecated_nic_config_name: 'controller.yaml' update_serial: 1 ServicesDefault: - OS::TripleO::Services::Aide ....... ############################################################################### # Role: Compute # ############################################################################### - name: Compute description: | Basic Compute Node role CountDefault: 1 networks: - InternalApi - Storage - Tenant
- network_data .yaml 파일
- 오버 클라우드의 네트워크와 서브넷, 할당 풀 및 VIP 상태와 같은 네트워크 속성을 정의 하는 파일 : 외부,내부API,스토리지, 스토리지관리, 테넌트 및 관리 네트워크만 기본적으로 작성되어 있음
- name: Storage vip: true vlan: 30 name_lower: storage ip_subnet: '10.25.111.0/24' allocation_pools: [{'start': '10.25.111.4', 'end': '10.25.111.250'}] - name: StorageMgmt name_lower: storage_mgmt vip: true vlan: 40 ip_subnet: '10.25.112.0/24' allocation_pools: [{'start': '10.25.112.4', 'end': '10.25.112.250'}] - name: InternalApi name_lower: internal_api vip: true vlan: 20 ip_subnet: '10.25.113.0/24' allocation_pools: [{'start': '10.25.113.4', 'end': '10.25.113.250'}] - name: Tenant vip: false # Tenant network does not use VIPs name_lower: tenant vlan: 50 ip_subnet: '10.25.114.0/24' allocation_pools: [{'start': '10.25.114.4', 'end': '10.25.114.250'}] - name: External vip: true name_lower: external vlan: 10 ip_subnet: '10.25.115.0/24' allocation_pools: [{'start': '10.25.115.4', 'end': '10.25.115.250'}] gateway_ip: '10.25.115.1' - name: Management # Management network is enabled by default for backwards-compatibility, but # is not included in any roles by default. Add to role definitions to use. enabled: false vip: false # Management network does not use VIPs name_lower: management vlan: 60 ip_subnet: '10.0.1.0/24' allocation_pools: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
- Heat-Teampltes 랜더링 작업
// roles_data & network_data 작성 후 아래 명령어 수행 ( heat-template 랜더링 작업) [stack@osp-director ~]$ cd /usr/share/openstack-tripleo-heat-templates/ [stack@osp-director openstack-tripleo-heat-templates]$ ./tools/process-templates.py -o ~/openstack-tripleo-heat-templates-rendered -n /home/stack/templates/main/network_data.yaml -r /home/stack/templates/main/roles_data.yaml
로그인하면 댓글을 남길 수 있습니다.