3.2. 언더클라우드 준비
인벤토리 파일 및 SSH 인수 파일 ( 3.1절. “필수 Ansible 구성 파일 생성”에서)을 생성한 후 이제 인스턴스 HA를 위해 오버클라우드를 준비할 수 있습니다.
-
stack사용자로 언더클라우드에 로그인합니다. 이 TAR 아카이브 를
/home/stack/로 다운로드합니다. Ansible을 통해 인스턴스 HA를 활성화하는 데 필요한 플레이북, 역할 및 기타 유틸리티가 포함되어 있습니다.참고여기에 제공된 TAR 아카이브 는 업스트림 GIT 리포지토리의 테스트 및 수정된 버전입니다. 이 리포지토리를 복제하려면 다음을 실행합니다.
stack@director $ git clone git://github.com/redhat-openstack/tripleo-quickstart-utils
stack@director $ git clone git://github.com/redhat-openstack/tripleo-quickstart-utilsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 이 리포지토리는 통지 없이 업데이트할 수 있으므로 이 단계에서 사용할 수 있는 아카이브와 다를 수 있습니다.
TAR 아카이브를 추출합니다.
stack@director $ tar -xvf ansible-instanceha.tar
stack@director $ tar -xvf ansible-instanceha.tarCopy to Clipboard Copied! Toggle word wrap Toggle overflow 다음 콘텐츠를 사용하여
/home/stack/ansible.cfg를 생성합니다.[defaults] roles_path = /home/stack/ansible-instanceha/roles
[defaults] roles_path = /home/stack/ansible-instanceha/rolesCopy to Clipboard Copied! Toggle word wrap Toggle overflow ansible.cfg, hosts(인벤토리 파일) 및ssh.config.ansible(SSH 인수 파일)을 다음 환경 변수로 내보냅니다.stack@director $ export ANSIBLE_CONFIG="/home/stack/ansible.cfg" stack@director $ export ANSIBLE_INVENTORY="/home/stack/hosts" stack@director $ export ANSIBLE_SSH_ARGS="-F /home/stack/ssh.config.ansible"
stack@director $ export ANSIBLE_CONFIG="/home/stack/ansible.cfg" stack@director $ export ANSIBLE_INVENTORY="/home/stack/hosts" stack@director $ export ANSIBLE_SSH_ARGS="-F /home/stack/ssh.config.ansible"Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
오버클라우드의 노드 정의 템플릿(기본적으로
instackenv.json)이/home/stack/에 있는지 확인합니다. 노드 정의 템플릿에 대한 자세한 내용은 오버클라우드 노드 등록을 참조하십시오.