
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.
The credential type can be found in the credential type list:
Once you select ‘Red Hat Satellite 6’, the field to add the Satellite URL will be available:
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:
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:
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
to begin the first sync.
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
About the author
Browse by channel
Automation
The latest on IT automation for tech, teams, and environments
Artificial intelligence
Updates on the platforms that free customers to run AI workloads anywhere
Open hybrid cloud
Explore how we build a more flexible future with hybrid cloud
Security
The latest on how we reduce risks across environments and technologies
Edge computing
Updates on the platforms that simplify operations at the edge
Infrastructure
The latest on the world’s leading enterprise Linux platform
Applications
Inside our solutions to the toughest application challenges
Original shows
Entertaining stories from the makers and leaders in enterprise tech
Products
- Red Hat Enterprise Linux
- Red Hat OpenShift
- Red Hat Ansible Automation Platform
- Cloud services
- See all products
Tools
- Training and certification
- My account
- Customer support
- Developer resources
- Find a partner
- Red Hat Ecosystem Catalog
- Red Hat value calculator
- Documentation
Try, buy, & sell
Communicate
About Red Hat
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Select a language
Red Hat legal and privacy links
- About Red Hat
- Jobs
- Events
- Locations
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit