Ansible-Sat

 Welcome to another entry in the Getting Started series! In this post we’ll talk about how to use Red Hat Satellite 6 as an inventory source within Ansible Tower. A common scenario we see is the use of Satellite 6.3 to manage Red Hat Enterprise Linux infrastructure, which makes adding Red Hat Ansible Tower to the existing environment a snap.

First, Create a User in Satellite

Ansible Tower will need to authenticate to Satellite, so create a user with an integration role that has the permissions needed to manage inventory. The permissions needed are:

Resource Permission Access Type
Fact value view_facts Read Satellite Server facts.
Host view_hosts  Read Satellite Server hosts.
Host group view_hostgroups  View Satellite Server host groups.

Once you’ve created your user, log in to the Tower host.

Create Credential in Tower With the Satellite User

Navigate to Settings >> Credentials in Tower and create a new credential.

Ansible-Tower-Sat-6-Screen-1

The credential type can be found in the credential type list:

Ansible-Tower-Sat-6-Screen-4
 

Once you select ‘Red Hat Satellite 6’, the field to add the Satellite URL will be available:

Ansible-Tower-Sat-6-Screen-6

Add New Inventory

With the Satellite server prepared and the credential in place within Tower, all that’s left is creating the new inventory and setting the source. Navigate to Inventories and add a new inventory:

Ansible-Tower-Sat-6-Screen-3

Give your inventory a name that you’ll remember.

Add Sat6 as the Source

Now to connect to Satellite. In your new inventory, navigate to the Sources tab. You’ll create a Source for the inventory to search:

Ansible-Tower-Sat-6-Screen-2

Like the inventory, set the name and choose the corresponding credential. Choose your verbosity level-- if this is your first time, setting the verbosity higher will give you more information for troubleshooting.

Choose your update options to match your desired behavior. Checking ‘Overwrite’ means that changes in the Satellite inventory will overwrite the inventory in Ansible Tower when synced. If hosts are removed in Satellite, they’ll be removed from Tower when syncing. The ‘Overwrite Variables’ selection covers all groups and hosts within the inventory, with the same behavior as above. If checked, then the Satellite version of variables are written to the Tower inventory. If not checked, the variables are merged from both sources. ‘Update On Launch’ is self-describing in what the option does. When a playbook is run using the inventory, a sync will occur using the options selected.

Once you save the new source, you can click the sync icon  Sync to begin the first sync.

Ansible-Tower-Sat-6-Screen-5

That’s it! Now you can use Ansible Tower with the Red Hat Satellite 6 inventory for streamlining your provisioning process using callbacks without managing two separate inventories. Integrating Ansible Tower and Satellite shortens and automates provisioning for your Red Hat products.

Resources

Explore Red Hat Satellite Documentation

Read more about adding a source in Ansible Tower 
 


저자 소개

John Lieske is a Partner Engineer with Ansible at Red Hat. Having worked in technology since 2003, he's worn a lot of different hats. Here at Red Hat Ansible, John works with partners looking to contribute modules and other content. John's also an amateur musician & aspiring illustrator in his spare time. He can be found on Twitter and on Github at @johnlieske.
UI_Icon-Red_Hat-Close-A-Black-RGB

채널별 검색

automation icon

오토메이션

기술, 팀, 인프라를 위한 IT 자동화 최신 동향

AI icon

인공지능

고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트

open hybrid cloud icon

오픈 하이브리드 클라우드

하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요

security icon

보안

환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보

edge icon

엣지 컴퓨팅

엣지에서의 운영을 단순화하는 플랫폼 업데이트

Infrastructure icon

인프라

세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보

application development icon

애플리케이션

복잡한 애플리케이션에 대한 솔루션 더 보기

Virtualization icon

가상화

온프레미스와 클라우드 환경에서 워크로드를 유연하게 운영하기 위한 엔터프라이즈 가상화의 미래