1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
Commit graph

16 commits

Author SHA1 Message Date
Matt Martz
1e92aadb5a Add support for reading from a config file 2014-11-10 11:27:39 -06:00
Matt Martz
2bd927fd81 Support RackConnect v3 by allowing a network to be specified for use in determining ansible_ssh_host 2014-11-10 11:27:35 -06:00
Matt Martz
21a2d32ffc Fix empty group in rax.py output 2014-04-12 15:57:59 -04:00
Matt Martz
5142297076 Improvements to the rax inventory script 2014-03-20 12:47:00 -05:00
Paul Durivage
f63a6fafe9 Move regions until after authentication; otherwise pyrax.regions is an empty tuple and no inventory is returned. 2013-10-29 13:47:26 -05:00
Paul Durivage
3bfdaad060 Implement @cchurch suggestions 2013-10-29 13:47:26 -05:00
Paul Durivage
859c6c6d44 Make creds file env var optional; look for ~/.rackspace_cloud_credentials if not supplied 2013-10-29 13:47:26 -05:00
Paul Durivage
d59f9b4289 Remove grouping of hosts by trying to discern subdom in server name 2013-10-29 13:47:26 -05:00
Paul Durivage
7c88ac0a5e Accept a comma-separated list of regions 2013-10-29 13:47:26 -05:00
Paul Durivage
16336db9f6 Documentation updates for region env var 2013-10-29 13:47:26 -05:00
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
2013-10-29 13:47:25 -05:00
Paul Durivage
ccc607eaa5 Documentation updates 2013-10-29 13:40:31 -05:00
Constantine Peresypkin
4bd485d87f fixed identity type not set in inventory/rax.py plugin 2013-10-14 11:57:19 -04:00
Paul Durivage
532c7db03b Update example to use RAX_CREDS_FILE env var 2013-09-27 15:51:07 -05:00
Paul Durivage
e366712aca Use set_setting; alleviates pyrax requiring the ~/pyrax.cfg in order to establish identity_type 2013-09-27 15:50:32 -05:00
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.
2013-03-30 23:04:07 -07:00