1.3. Ansible Automation Platform과 자동화 대시보드 통합


Ansible Automation Platform 인스턴스를 자동화 대시보드 구성에 통합하여 데이터를 수집 및 시각화하고 자동화에 대한 통찰력을 얻습니다.

사전 요구 사항

  • 자동화 대시보드를 설치했습니다.
  • 자동화 대시보드가 Red Hat Enterprise Linux 호스트의 HTTPS 포트 8447에서 실행되고 있는지 확인했습니다.

    참고
    • 이 확인에는 Ansible Automation Platform 로그인 세부 정보가 필요합니다.
    • 포트 8447은 기본적으로 활성화되어 있지만 구성 가능합니다.

프로세스

  1. 개인 액세스 토큰을 구성합니다. 자세한 내용은 토큰 기반 인증을 사용하여 외부 애플리케이션에 대한 액세스 구성 을 참조하십시오.
  2. clusters.yaml 파일을 생성하거나 업데이트합니다. 영구 인증 및 자동 토큰 교체를 활성화하려면 access_token,refresh_token,client_id, client_secret 을 포함해야 합니다.

    clusters:
      - protocol: https
        address: <aap_controller_url>
        port: 443
        access_token: <access_token_string>
        refresh_token: <refresh_token_string>
        client_id: <client_id_string>
        client_secret: <client_secret_string>
        verify_ssl: false
        name: <unique_cluster_name>

    TLS 확인 구성

    verify_ssl 매개변수를 구성할 때 Ansible Automation Platform 인증서 유형과 일치하는 설정을 선택합니다.

    • 상용 인증서: verify_ssl 을 설정합니다.
    • 자체 서명된 인증서: verify_ssl: false 를 설정합니다.

      참고

      자동화 대시보드는 사용자 정의 CA(인증 기관)에 대해 자체 서명된 인증서를 확인할 수 없습니다.

  3. 다음을 사용하여 데이터를 가져오고 결합하기 위해 자동화 대시보드 구성에 하나 이상의 Ansible Automation Platform 인스턴스(동일한 Ansible Automation Platform 버전)를 추가할 수 있습니다.

    참고

    하나의 Ansible Automation Platform 인스턴스만 있는 경우 두 번째 항목을 제거합니다.

    ---
    clusters:
      - protocol: https			<--- Normally https
        address: my-aap.example.com  <--- Can use IP or FQDN without http(s)://
        port: 443				<--- Normally 443
        access_token: sampleToken	<--- Your preconfigured Ansible Automation Platform read access token
      Platform read access token
        refresh_token: myRefreshToken
        client_id: myClientID
        client_secret: myClientSecret
        verify_ssl: false		<--- Can be used when using self signed certs
        sync_schedules:
          - name: Every 5 minutes sync
            rrule: DTSTART;TZID=Europe/Ljubljana:20250630T070000 FREQ=MINUTELY;INTERVAL=5
            enabled: true
     # If there is one Ansible Automation Platform instance, then remove the second entry below.
      # Alternately. If there is more than one AAP instance to connect, copy additional entries.
      - protocol: https
        address: aap2.example.com
        port: 443
        access_token: WRn2swiqg5spEwUndDkrJoCeg4Qwuw
        verify_ssl: true
        sync_schedules:
          - name: Every 5 minutes sync
            rrule: DTSTART;TZID=Europe/Ljubljana:20250630T070000 FREQ=MINUTELY;INTERVAL=5
           enabled: true
    참고

    access_token,refresh_token, client_secret 은 자동화 대시보드 데이터베이스에 저장됩니다. 이러한 값은 보안을 위해 암호화됩니다.

  4. 자동화 대시보드 구성을 로드 및 활성화합니다. 구성 파일을 컨테이너의 /tmp/ 디렉터리에 복사해야 합니다. 성공적인 처리 후 시스템에서 파일을 자동으로 제거합니다.

    podman cp clusters.yaml automation-dashboard-web:/tmp
    podman exec -it automation-dashboard-web /venv/bin/python manage.py setclusters /tmp/clusters.yaml
    참고

    시스템이 /tmp/ 디렉토리에서 파일을 제거할 수 없는 경우 오류 메시지가 표시되고 계속 실행됩니다.

    참고

    토큰 회전: 자동화 대시보드는 보안을 위해 내부적으로 토큰을 순환하지만 로컬 cluster .yaml 파일을 업데이트하지 않습니다. 나중에 setclusters 명령을 다시 실행해야 하는 경우 정의된 토큰이 만료될 수 있습니다.

    현재 유효한 토큰을 검색하려면 다음 명령을 실행하고 새 파일에 출력을 저장합니다.

    podman exec -it automation-dashboard-web /venv/bin/python manage.py getclusters --decrypt > clusters_current.yaml

1.3.1. 자동화 대시보드에 데이터 동기화

연결된 Ansible Automation Platform 클러스터의 데이터를 자동화 대시보드에 동기화하여 최신 자동화 메트릭을 확인합니다.

사전 요구 사항

  • 자동화 대시보드를 설치했습니다.
  • 플랫폼 세부 정보를 사용하여 cluster.yaml 파일을 구성했습니다.

프로세스

  1. 실행 중인 자동화 대시보드 컨테이너를 확인합니다.

    $ podman ps | grep automation-dashboard-web
  2. 다음 방법 중 하나를 사용하여 동기화 명령을 실행합니다.

    • 대화형 모드: 인수 없이 syncdata 를 실행합니다. 메시지가 표시되면 동기화 요청을 확인해야 합니다.

      $ podman exec -it automation-dashboard-web /venv/bin/python manage.py syncdata
    • 비대화형 모드: --since--until 플래그를 사용하여 날짜 범위를 정의합니다. 이 방법은 사용자 프롬프트를 바이패스하며 자동화된 스크립트 또는 cron 작업에 필요합니다.

      $ podman exec -it automation-dashboard-web /venv/bin/python manage.py syncdata --since=2024-01-01 --until=2024-06-30

검증

  1. 터미널에 클러스터 <cluster_url>에 대해 성공적으로 생성된 동기화 작업이라는 메시지가 표시되는지 확인합니다.
  2. 브라우저에서 자동화 대시보드를 새로 고침하여 업데이트된 메트릭을 확인합니다.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

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

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동