Skip to content

djordje-petrovic/ansible_tower_sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansible_tower_sync

This is opensource project for PROVISIONING AN AUTOSCALING INFRASTRUCTURE USING ANSIBLE Tower AWX .

This script is polls aws SQS service and creates

1] Inventory in Ansible Tower with Name - e.g Its mandatory to have Role and Environment tag to instance.

e.g

        Role=mongodb 	
        Environment=staging 

Inventory for this instance will be created with staging-mongodb and host gets added with private IP adderess.

2] This script also triggers job with template name so its important to have role template created in ansible tower. e.g mongodb

This Script needs following environment is

  AWS_SQS_QUEUE_NAME: "aws-autoscaling-sqs"
  AWS_REGION: us-east-1
  ORGANIZATION: 1
  TOWER_USER_NAME: admin
  TOWER_PASSWORD: password
  TOWER_VERIFY_SSL: "False"
  TOWER_HOST: http://awxweb
  AWS_SECRET_ACCESS_KEY: "XXXXXX"
  AWS_ACCESS_KEY_ID: "XXXXXXX"

This is available with dockerhub with docker pull sachinpgade/tower_sync

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%