Commit Graph

12 Commits (317c2f4bc03b3d800a9c983ae6141d48d15ad65f)

Author SHA1 Message Date
Paul Durivage f63a6fafe9 Move regions until after authentication; otherwise pyrax.regions is an empty tuple and no inventory is returned. 11 years ago
Paul Durivage 3bfdaad060 Implement @cchurch suggestions 11 years ago
Paul Durivage 859c6c6d44 Make creds file env var optional; look for ~/.rackspace_cloud_credentials if not supplied 11 years ago
Paul Durivage d59f9b4289 Remove grouping of hosts by trying to discern subdom in server name 11 years ago
Paul Durivage 7c88ac0a5e Accept a comma-separated list of regions 11 years ago
Paul Durivage 16336db9f6 Documentation updates for region env var 11 years ago
Paul Durivage 25c3bec6ef Eliminate the RAX_REGION environment variable; iterate through all regions available to an account and present servers in region groups; default to using server name to identify servers in groups; set ansible_ssh_host key for each server; utilize the _meta key to provide all the hostvars for each server; all grouping by web, db, sql, lb, app based on server name; pretty print JSON output for some human-readable inventory action
Add set_setting to alleviate requirement that ~/.pyrax.cfg exists

Add regions as a optional env var to narrow our inventory scope

Clean up
11 years ago
Paul Durivage ccc607eaa5 Documentation updates 11 years ago
Constantine Peresypkin 4bd485d87f fixed identity type not set in inventory/rax.py plugin 11 years ago
Paul Durivage 532c7db03b Update example to use RAX_CREDS_FILE env var 11 years ago
Paul Durivage e366712aca Use set_setting; alleviates pyrax requiring the ~/pyrax.cfg in order to establish identity_type 11 years ago
Jesse Keating c47fd199bd Initial commit of rax inventory plugin
The rax inventory plugin provides a way to discovery inventory in the
Rackspace Public Cloud by way of pyrax, the official SDK. Grouping will
be done if a group:name is found in the instance metadata. When a single
host is queried all the instance details are returned with a rax_
prefix.

Because inventory plugins cannot take extra arguments, ENV variables
must be set to point to the pyrax compatible credentials file and the
region to query against.
12 years ago