OCI 로그인 >> Identity & Security >> 사용자
사용자 >> 사용자 생성 또는 이미 생성된 사용자 클릭(여기서는 awx_user)
사용자 화면에서 구성 파일 보기 클릭 >> 구성 파일 미리 보기 화면에서 다음을 메모한다.
user, fingerprint, tenancy, region
AWX 로그인 >> Administration >> Credentials Types에서 아래 그림과 같이 Input configuration과 Injector configuration을 붙여 넣는다.
fields:
- id: user_ocid
type: string
label: User OCID
- id: fingerprint
type: string
label: Fingerprint
- id: tenant_ocid
type: string
label: Tenant OCID
- id: region
type: string
label: Region
- id: private_user_key
type: string
label: Private User Key
secret: true
multiline: true
required:
- user_ocid
- tenant_ocid
- region
- fingerprint
- private_user_key
env:
OCI_CONFIG_FILE: '{{ tower.filename.config }}'
OCI_USER_KEY_FILE: '{{ tower.filename.keyfile }}'
file:
template.config: |-
[DEFAULT]
user={{ user_ocid }}
fingerprint={{ fingerprint }}
tenancy={{ tenant_ocid }}
region={{ region }}
template.keyfile: '{{ private_user_key }}'
Resources >> Credentials
Resources >> Projects 설정
Resources >> Inventories >> Add(Add inventory) >> Name에 Oci Inventory 입력 >> Save
Resources >> Inventories >> 목록에서 oci inventory 클릭 >> Sources 아래와 같이 설정
Resources >> Inventories >> oci inventory >> Sources >> Sync all 클릭
Resources >> Inventories >> oci inventory >> Hosts