자동화 서비스 카탈로그 작업자 설치

Red Hat Ansible Automation Platform 2.1

Ansible Automation Platform 2.0 설치 또는 설치 번들 설치 프로그램을 사용하여 cloud.redhat.com의 자동화 서비스 카탈로그에 연결하도록 Red Hat Ansible Automation Platform을 확장합니다.

Red Hat Customer Content Services

초록

피드백 제공:
이 문서를 개선하기 위한 제안이 있거나 오류를 발견한 경우, Docs 구성 요소를 사용하여 Ansible Automation Platform Jira 프로젝트에서 문제를 생성하기 위해 기술 지원에 문의하십시오 https://access.redhat.com.

머리말

Ansible Automation Platform 설정 또는 설치 번들 설치 프로그램을 사용하여 cloud.redhat.com의 자동화 서비스 카탈로그에 연결하도록 Red Hat Ansible Automation Platform을 확장할 수 있습니다.

이는 Day 2 활동이며 자동화 컨트롤러의 모든 기본 리소스/오브젝트에 대한 쓰기 권한이 있는 서비스 계정 (조직, 사용자, 프로젝트, 작업 템플릿 및 인벤토리)을 설정해야 합니다.

카탈로그 작업자에는 Red Hat Ansible Automation Platform 네트워크의 호스트에 할당된 변수 세트가 필요합니다. 카탈로그 작업자를 실행하면 애플리케이션과 애플리케이션 토큰이 생성되고, 필요한 패키지를 설치한 다음, 서비스를 시작합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 용어를 교체하기 위해 최선을 다하고 있습니다. 먼저 마스터(master), 슬레이브(slave), 블랙리스트(blacklist), 화이트리스트(whitelist) 등 네 가지 용어를 교체하고 있습니다. 이러한 변경 작업은 작업 범위가 크므로 향후 여러 릴리스에 걸쳐 점차 구현할 예정입니다. 자세한 내용은 CTO Chris Wright의 메시지를 참조하십시오.

1장. 자동화 서비스 카탈로그 작업자 설치

다음 지침을 사용하여 Red Hat Ansible Automation Platform을 확장하여 cloud.redhat.com의 {Catalog} 호스팅 서비스에 연결할 수 있습니다.

1.1. 사전 요구 사항

  • 자동화 컨트롤러 및 /inventory에 지정된 조직 서비스 계정과 연결된 인스턴스 그룹 노드는 RHEL 8.4 가상 머신에서 실행해야 합니다.
  • Red Hat Subscription Manager에 RHEL 8.4 가상 머신을 등록했습니다. 설치 프로그램은 cloud.redhat.com으로 인증하는 데 사용되는 인증서를 생성합니다.
  • Ansible Automation Platform SKU를 Catalog Worker 노드에 연결했습니다.
  • 자동화 서비스 카탈로그 작업자를 실행하는 RHEL 8.4 가상 머신에서 SSH를 활성화했습니다.
  • 인벤토리, 프로젝트 및 작업 템플릿을 포함하여 하나 이상의 조직이 구성된 자동화 컨트롤러입니다.
  • 위에서 언급한 모든 오브젝트에 대한 쓰기 권한이 있는 각 조직에 대해 서비스 계정이 생성됩니다. 애플리케이션 토큰은 설치 프로그램을 실행할 때 생성되며 사전 요구 사항으로 필요하지 않습니다.

1.2. 설치 프로그램에 호스트 변수 추가

자동화 서비스 카탈로그 작업자를 설치하려면 설치 매개변수에 사용되는 Red Hat Ansible Automation Platform 설치 프로그램에 host vars 를 추가해야 합니다. 'host_vars' 파일은 지정하는 각 호스트에 대한 매개변수 정보를 저장합니다. 사용 가능한 필수 매개 변수는 아래 매개변수 표를 참조하십시오.

표 1.1. 사용 가능한 host_vars 매개변수

매개변수필수 항목

servicescatalog_controller_hostname

 

servicescatalog_controller_name

 

servicescatalog_controller_user

제공됨

servicescatalog_controller_password

제공됨

servicescatalog_controller_validate_certs

 

servicescatalog_http_proxy

 

servicescatalog_https_proxy

 

servicescatalog_no_proxy

 

절차

  1. Ansible Automation Platform 설정 또는 설치 번들 설치 프로그램 디렉터리로 이동합니다.

    # cd ansible-automation-platform-setup-<latest>
  2. host_vars 라는 새 디렉터리를 만듭니다.

    # mkdir host_vars
  3. 필요한 각 호스트에 대해 파일을 생성합니다. 다음은 두 호스트의 매개 변수가 있는 예입니다.

    1. localhost 의 서비스 계정:

      # touch finance
      ansible_connection: local
      
      servicescatalog_controller_name: Finance
      
      servicescatalog_controller_user: finance_sa
      servicescatalog_controller_password: <password>
    2. 추가 호스트의 서비스 계정:

      # touch marketing
      ansible_host: IP address
      ansible_user: [User should have sudo access to install packages and write to system-level configuration files]
      ansible_become: true
      
      servicescatalog_controller_name: Marketing
      
      servicescatalog_controller_user: marketing_sa
      servicescatalog_controller_password: password
  4. 각 파일을 저장합니다.
  5. Ansible Automation Platform 설치 프로그램에서 인벤토리 파일을 엽니다.

    # vi inventory
  6. [servicescatalog_workers] 아래의 각 호스트에 host_vars 를 추가합니다.

    [servicescatalog_workers]
    finance
    marketing
  7. 인벤토리 파일을 저장합니다.

1.3. 설치 프로그램 실행

이제 설치 프로그램을 실행할 수 있습니다.

  • Ansible Automation Platform 설정 스크립트를 실행합니다.

    # ./setup.sh

자동화 서비스 카탈로그 작업자를 실행하면 애플리케이션과 애플리케이션 토큰이 생성되고, 필요한 패키지를 설치하고, cloud.redhat.com에 연결하고, 서비스를 시작합니다.

검증

자동화 서비스 카탈로그 작업자가 자동화 서비스 카탈로그가 설치 및 연결되어 있는지, 자동화 서비스 카탈로그에서 정렬된 작업이 자동화 컨트롤러에서 실행되는지 확인할 수 있습니다.

사전 요구 사항

카탈로그 관리자이며 포트폴리오를 생성하고 제품을 추가할 수 있습니다.

  1. cloud.redhat.com에 로그인합니다.
  2. Ansible Automation PlatformAutomation Services Catalog 로 이동합니다.
  3. 플랫폼을 클릭합니다.
  4. host_vars 에 대해 생성한 호스트와 연결된 플랫폼을 찾습니다.
  5. 플랫폼을 클릭합니다.
  6. 자동화 컨트롤러의 인벤토리템플릿이 포함되어 있는지 확인합니다.

법적 공지

Copyright © 2023 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.