Skip to content

A simple tool to generate ansible inventory files from triton cloud api.All the tags will be considered as ansible host variables

Notifications You must be signed in to change notification settings

skanayi/triton-ansible-inventory-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

triton-ansible-inventory-generator

A simple tool to generate ansible inventory files from triton cloud api.All the tags will be considered as ansible host variables

Usage

  • clone repo
  • go build (tested with go1.16.4 )
  • Make sure ansible.tmpl file is already available in the same directory
  • Set the environment variables as seen under inventory.env and export them (Change values accordingly)
  • execute ./triton-ansible-inventory-generator
  • wait for ansible.inventory files to be ready
  • you can use the same exported variables and golang templates to create various other formats (example: json |yml or anything)

About

A simple tool to generate ansible inventory files from triton cloud api.All the tags will be considered as ansible host variables

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published