Skip to content

w4hf/aaprofiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

AAProfiler

Description

This python Script scrape AWX or AAP Controller (Tower) API and Generate csv files Reports. The objects audited are :

  • host_metrics
  • credentials (sensitive data cannot be collected)
  • projects
  • hosts
  • job_templates
  • workflow_job_templates
  • inventories
  • inventory sources
  • teams
  • users
  • roles

The results and script log file will be generated under the folder results_XXXX where XXXX is the fqdn of the controller.

All the variables are described below.

Requirements

All you need is python3 (and love)

Demo

asciicast

PS: In the demo, I removed the roles extraction because it is time-consuming

Editable Variables

The user should only edit the following variables :

Variable Type Default Value Description
controller_fqdn String www.controller.company.com AWX or AAP Controller hostname or IP
controller_user String admin AWX or AAP username
controller_pass String ***** AWX or AAP password
page_size Integer 200 API page object count limit
resources_to_extract List ['credentials', 'projects', 'hosts', 'job_templates', 'roles', 'inventories'] A list containing the resources to export You can pick and chose which resources to extract.
Restrictions:
- cannot be empty
- resource name should be written exactly as in the default value
get_hosts_org_name Boolean False Wether to extract Org names or OrgIDs when extracting hosts. Setting this to 'True' makes the extraction much slower (depending on how many hosts you have) limit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages