2.6. 인벤토리 파일 구성
인벤토리 파일을 사용하여 Ansible Automation Platform 설치를 제어할 수 있습니다. 인벤토리 파일은 설치를 사용자 지정하는 데 필요한 정보를 정의합니다. 예를 들어 호스트 세부 정보, 인증서 세부 정보 및 다양한 구성 요소별 설정이 포함됩니다.
이 문서에서 예제 인벤토리 파일을 복사하여 변경하여 빠르게 시작할 수 있습니다.
또한 확장 토폴로지 및 엔터프라이즈 토폴로지 인벤토리 파일은 다음 위치에서 사용할 수 있습니다.
다운로드한 설치 프로그램 패키지에서 다음을 수행합니다.
-
inventory라는 기본
인벤토리파일은 엔터프라이즈 토폴로지 패턴입니다. -
증가 토폴로지(all-in-one) 패턴을 배포하려면 대신
inventory-growth파일을 사용합니다.
-
inventory라는 기본
- 테스트된 배포 모델의 컨테이너 토폴로지 에서 .
예제 인벤토리 파일을 사용하려면 < > 자리 표시자를 특정 변수로 교체하고 호스트 이름을 업데이트합니다.
선택 사항 및 필수 변수에 대한 자세한 내용은 설치 디렉터리 또는 인벤토리 파일 변수 의 README.md 파일을 참조하십시오.
2.6.1. 컨테이너화된 성장 토폴로지를 위한 온라인 설치를 위한 인벤토리 파일(all-in-one) 링크 복사링크가 클립보드에 복사되었습니다!
예제 인벤토리 파일을 사용하여 컨테이너화된 성장 토폴로지(all-in-one)에 대한 온라인 설치를 수행합니다.
# This is the Ansible Automation Platform installer inventory file intended for the container growth deployment topology.
# This inventory file expects to be run from the host where Ansible Automation Platform will be installed.
# Consult the Ansible Automation Platform product documentation about this topology's tested hardware configuration.
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/tested_deployment_models/container-topologies
#
# Consult the docs if you are unsure what to add
# For all optional variables consult the included README.md
# or the Ansible Automation Platform documentation:
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation
# This section is for your platform gateway hosts
# -----------------------------------------------------
[automationgateway]
aap.example.org
# This section is for your automation controller hosts
# -----------------------------------------------------
[automationcontroller]
aap.example.org
# This section is for your automation hub hosts
# -----------------------------------------------------
[automationhub]
aap.example.org
# This section is for your Event-Driven Ansible controller hosts
# -----------------------------------------------------
[automationeda]
aap.example.org
# This section is for the Ansible Automation Platform database
# -----------------------------------------------------
[database]
aap.example.org
[all:vars]
# Ansible
ansible_connection=local
# Common variables
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#general-variables
# -----------------------------------------------------
postgresql_admin_username=postgres
postgresql_admin_password=<set your own>
registry_username=<your RHN username>
registry_password=<your RHN password>
redis_mode=standalone
# Platform gateway
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#platform-gateway-variables
# -----------------------------------------------------
gateway_admin_password=<set your own>
gateway_pg_host=aap.example.org
gateway_pg_password=<set your own>
# Automation controller
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#controller-variables
# -----------------------------------------------------
controller_admin_password=<set your own>
controller_pg_host=aap.example.org
controller_pg_password=<set your own>
controller_percent_memory_capacity=0.5
# Automation hub
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#hub-variables
# -----------------------------------------------------
hub_admin_password=<set your own>
hub_pg_host=aap.example.org
hub_pg_password=<set your own>
hub_seed_collections=false
# Event-Driven Ansible controller
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#event-driven-ansible-variables
# -----------------------------------------------------
eda_admin_password=<set your own>
eda_pg_host=aap.example.org
eda_pg_password=<set your own>
ansible_connection=local- 설치 프로그램이 Ansible Automation Platform을 호스팅하는 동일한 노드에서 실행되는 올인원 설치에 사용됩니다.-
설치 프로그램이 별도의 노드에서 실행되는 경우
ansible_connection=local을 포함하지 마십시오. 이 경우 대신 SSH 연결을 사용합니다.
-
설치 프로그램이 별도의 노드에서 실행되는 경우
2.6.2. 컨테이너화된 엔터프라이즈 토폴로지를 위한 온라인 설치를 위한 인벤토리 파일 링크 복사링크가 클립보드에 복사되었습니다!
예제 인벤토리 파일을 사용하여 컨테이너화된 엔터프라이즈 토폴로지에 대한 온라인 설치를 수행합니다.
# This is the Ansible Automation Platform enterprise installer inventory file
# Consult the docs if you are unsure what to add
# For all optional variables consult the included README.md
# or the Red Hat documentation:
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation
# This section is for your platform gateway hosts
# -----------------------------------------------------
[automationgateway]
gateway1.example.org
gateway2.example.org
# This section is for your automation controller hosts
# -----------------------------------------------------
[automationcontroller]
controller1.example.org
controller2.example.org
# This section is for your Ansible Automation Platform execution hosts
# -----------------------------------------------------
[execution_nodes]
hop1.example.org receptor_type='hop'
exec1.example.org
exec2.example.org
# This section is for your automation hub hosts
# -----------------------------------------------------
[automationhub]
hub1.example.org
hub2.example.org
# This section is for your Event-Driven Ansible controller hosts
# -----------------------------------------------------
[automationeda]
eda1.example.org
eda2.example.org
[redis]
gateway1.example.org
gateway2.example.org
hub1.example.org
hub2.example.org
eda1.example.org
eda2.example.org
[all:vars]
# Common variables
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#general-variables
# -----------------------------------------------------
postgresql_admin_username=<set your own>
postgresql_admin_password=<set your own>
registry_username=<your RHN username>
registry_password=<your RHN password>
# Platform gateway
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#platform-gateway-variables
# -----------------------------------------------------
gateway_admin_password=<set your own>
gateway_pg_host=externaldb.example.org
gateway_pg_database=<set your own>
gateway_pg_username=<set your own>
gateway_pg_password=<set your own>
# Automation controller
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#controller-variables
# -----------------------------------------------------
controller_admin_password=<set your own>
controller_pg_host=externaldb.example.org
controller_pg_database=<set your own>
controller_pg_username=<set your own>
controller_pg_password=<set your own>
# Automation hub
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#hub-variables
# -----------------------------------------------------
hub_admin_password=<set your own>
hub_pg_host=externaldb.example.org
hub_pg_database=<set your own>
hub_pg_username=<set your own>
hub_pg_password=<set your own>
# Event-Driven Ansible controller
# https://docs.redhat.com/en/documentation/red_hat_ansible_automation_platform/2.5/html/containerized_installation/appendix-inventory-files-vars#event-driven-ansible-variables
# -----------------------------------------------------
eda_admin_password=<set your own>
eda_pg_host=externaldb.example.org
eda_pg_database=<set your own>
eda_pg_username=<set your own>
eda_pg_password=<set your own>
2.6.3. registry_username 및 registry_password 설정 링크 복사링크가 클립보드에 복사되었습니다!
온라인 번들 설치에 registry_username 및 registry_password 변수를 사용하는 경우 새 레지스트리 서비스 계정을 생성해야 합니다.
레지스트리 서비스 계정은 배포 시스템과 같이 인증 정보를 공유할 환경에서 사용할 수 있는 토큰이라고 합니다.
프로세스
- https://access.redhat.com/terms-based-registry/accounts 로 이동합니다.
- 레지스트리 서비스 계정 페이지에서 클릭합니다.
- 허용된 문자만 사용하여 계정 이름을 입력합니다.
- 필요한 경우 계정에 대한 설명을 입력합니다.
- 을 클릭합니다.
- 검색 필드에서 이름을 검색하여 목록에서 생성된 계정을 찾습니다.
- 생성한 계정의 이름을 클릭합니다.
또는 토큰 이름을 알고 있는 경우 URL을 입력하여 페이지로 직접 이동할 수 있습니다.
https://access.redhat.com/terms-based-registry/token/<name-of-your-token>생성된 사용자 이름(계정 이름)과 토큰 을 표시하는 토큰 페이지가 열립니다.
- 토큰이 표시되지 않으면 클릭합니다. 이를 클릭하여 새 사용자 이름과 토큰을 생성할 수도 있습니다.
-
사용자 이름(예: "1234567|testuser")을 복사하고 이를 사용하여 변수
registry_username을 설정합니다. -
토큰을 복사하고 이를 사용하여 변수
registry_password를 설정합니다.