Skip to content

ryanmaclean/ansible-joyent-inventory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-joyent-inventory

Ansible dynamic inventory script. Supports smart caching

Dependencies:

Install

pip install -r requirements.txt
  • Put it the file in your ansible directory
  • chmod +x joyent.ini

Configure

  • You can use joyent.ini or setup environment variable for all options.
  • Precedence will go to environmental variable

bash env setting

JOYENT_INV_AUTH_USERNAME (no default)
JOYENT_INV_AUTH_KEY_NAME (no default)
JOYENT_INV_CACHE_EXPIRE (default 300)
JOYENT_INV_CACHE_FILE (default /tmp/ansible_inventory_joyent.cache")
JOYENT_INV_URI (default "eu-ams-1.api.joyentcloud.com")
JOYENT_INV_AUTH_KEY (default ~/.ssh/id_rsa)

ini env setting

auth_username (no default)
auth_key (no default)
cache_expire (default 300)
cache_file (default /tmp/ansible_inventory_joyent.cache")
uri (default "eu-ams-1.api.joyentcloud.com")
auth_key (default ~/.ssh/id_rsa)

Usage:

python joyent.py --list
python joyent.py --host <HOSTNAME>

About

Ansible dynamic inventory for joyent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%