Skip to content

Inventory script to use Red Hat Satellite 6 as an inventory for Ansible - DEPRECATED

Notifications You must be signed in to change notification settings

eselvam/ansible-satellite6

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

DO NO USE - use https://github.com/theforeman/foreman_ansible_inventory instead.

Ansible Dynamic Inventory for Red Hat Satellite 6

Introduction

This is a dynamic inventory script to drive Ansible from Red Hat Satellite 6. It's based on the Cobbler inventory script here It uses the same caching mechanism as that script so you might want to refer to that to understand it a little better.

Currently, hosts are grouped by hostgroups only. I will add functionality to group by host collection, lifecycle environment, location, organisation etc.

Usage

Copy satellite-inventory.py and hammer.ini to /etc/ansible and ensure that satellite-inventory.py is executable. Put your satellite credentials in the hammer.ini file.

You should then be able to run ansible against hostgroups e.g.:

ansible <my_hostgroup> -i /etc/ansible/satellite-inventory.py -m setup

About

Inventory script to use Red Hat Satellite 6 as an inventory for Ansible - DEPRECATED

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%