10.2. 오버클라우드 환경 수정

오버클라우드를 수정하여 다른 기능을 추가하거나 작동 방식을 변경할 수 있습니다. 오버클라우드를 수정하려면 사용자 정의 환경 파일 및 Heat 템플릿을 수정한 다음 초기 오버클라우드 생성 시의 openstack overcloud deploy 명령을 재실행합니다. 예를 들어 6.11절. “배포 명령”을 사용하여 오버클라우드를 생성한 경우 다음 명령을 재실행합니다.

$ source ~/stackrc
(undercloud) $ openstack overcloud deploy --templates \
  -e ~/templates/node-info.yaml \
  -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
  -e ~/templates/network-environment.yaml \
  -e ~/templates/storage-environment.yaml \
  --ntp-server pool.ntp.org

director는 heat에서 overcloud 스택을 확인한 다음 스택의 각 항목을 환경 파일 및 heat 템플릿으로 업데이트합니다. director는 오버클라우드를 다시 생성하지 않고 기존 오버클라우드를 변경합니다.

새 환경 파일을 추가하려면 `-e` 옵션을 사용하여 openstack overcloud deploy 명령에 파일을 추가합니다. 예를 들면 다음과 같습니다.

$ source ~/stackrc
(undercloud) $ openstack overcloud deploy --templates \
  -e ~/templates/new-environment.yaml \
  -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
  -e ~/templates/network-environment.yaml \
  -e ~/templates/storage-environment.yaml \
  -e ~/templates/node-info.yaml \
  --ntp-server pool.ntp.org

이 명령을 수행하면 환경 파일의 새 매개변수와 리소스가 스택에 추가됩니다.

중요

오버클라우드 설정을 수동으로 변경하지 않는 것이 좋습니다. director가 나중에 이러한 변경 사항을 덮어쓸 수 있습니다.