ansible/contrib/inventory
Tom Paine bb5a1f7440 Add RDS cluster info to EC2 dynamic inventory
Add db_clusters to the ec2 inventory. Show tags. Only show clusters
matching tags in the `.ini`. Set `include_rds_clusters = True` option to
enable RDS cluster inventory collection.

Example inventory output:

```
{
  "db_clusters": {
    "ryansb-cluster-test": {
      "AllocatedStorage": 1,
      "AvailabilityZones": [
        "us-west-2a",
        "us-west-2b",
        "us-west-2c"
      ],
      "BackupRetentionPeriod": 1,
      "DBClusterIdentifier": "ryansb-cluster-test",
      "DBClusterMembers": [
        {
          "DBClusterParameterGroupStatus": "in-sync",
          "DBInstanceIdentifier": "ryansb-test",
          "IsClusterWriter": true,
          "PromotionTier": 1
        },
        {
          "DBClusterParameterGroupStatus": "in-sync",
          "DBInstanceIdentifier": "ryansb-test-us-west-2b",
          "IsClusterWriter": false,
          "PromotionTier": 1
        }
      ],
      "DBClusterParameterGroup": "default.aurora5.6",
      "DBSubnetGroup": "default",
      "DatabaseName": "mydb",
      "DbClusterResourceId": "cluster-OB6H7JQURFKFD4BYNHG5HSRLBA",
      "Endpoint": "ryansb-cluster-test.cluster-c9ntgaejgqln.us-west-2.rds.amazonaws.com",
      "Engine": "aurora",
      "EngineVersion": "5.6.10a",
      "MasterUsername": "admin",
      "Port": 3306,
      "PreferredBackupWindow": "06:09-06:39",
      "PreferredMaintenanceWindow": "mon:11:22-mon:11:52",
      "ReadReplicaIdentifiers": [],
      "Status": "available",
      "StorageEncrypted": false,
      "VpcSecurityGroups": [
        {
          "Status": "active",
          "VpcSecurityGroupId": "sg-47eaea20"
        }
      ]
    }
  },
  "rds": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "rds_aurora": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "rds_parameter_group_default_aurora5_6": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "ryansb-test": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "ryansb-test-us-west-2b": [
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "type_db_r3_large": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "us-west-2": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "us-west-2a": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "us-west-2b": [
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ],
  "vpc_id_vpc_3ca34459": [
    "ryansb_test_c9ntgaejgqln_us_west_2_rds_amazonaws_com",
    "ryansb_test_us_west_2b_c9ntgaejgqln_us_west_2_rds_amazonaws_com"
  ]
}
```
2016-07-06 10:57:31 -04:00
..
abiquo.ini Fix some typos (#16498) 2016-06-29 14:31:25 -04:00
abiquo.py Fix urlopen usage to use open_url instead 2015-09-16 20:40:17 -07:00
apache-libcloud.py Replace type() checks with isinstance() 2015-09-04 09:47:17 +03:00
azure_rm.ini Rename azure inventory script. Fix bug preventing AD user login via environment vars. 2016-04-21 14:34:08 -04:00
azure_rm.py Fix whitespace. 2016-05-23 10:45:37 +01:00
brook.ini Brook inventory (#15264) 2016-04-25 11:42:57 -04:00
brook.py errors now print to stderr 2016-04-25 11:43:54 -04:00
cloudstack.ini
cloudstack.py Fix filtering by project in Cloudstask inventory 2016-03-09 11:19:39 +07:00
cobbler.ini add cobbler api authentication options 2016-04-18 17:29:03 -04:00
cobbler.py add cobbler api authentication options 2016-04-18 17:29:03 -04:00
collins.ini
collins.py Fix urlopen usage to use open_url instead 2015-09-16 20:40:17 -07:00
consul.ini
consul_io.py update documentation (#15838) 2016-05-16 10:44:35 -04:00
digital_ocean.ini [contrib] Add option to define group vars in DigitalOcean dynamic inventory script 2016-02-14 17:04:26 +01:00
digital_ocean.py The output of the digital ocean script was invalid for ID and droplet name groups. Hosts is now an array of strings rather than a string for these groups. (#16297) 2016-06-15 09:49:14 -04:00
docker.py Update and fix typos in docker inventory docstrings. (#15616) 2016-04-27 17:17:34 -04:00
docker.yml Update and fix typos in docker inventory docstrings. (#15616) 2016-04-27 17:17:34 -04:00
ec2.ini Add RDS cluster info to EC2 dynamic inventory 2016-07-06 10:57:31 -04:00
ec2.py Add RDS cluster info to EC2 dynamic inventory 2016-07-06 10:57:31 -04:00
fleet.py Use print() as function under contrib/ 2015-08-28 09:18:13 +03:00
freeipa.py Use print() as function under contrib/ 2015-08-28 09:18:13 +03:00
gce.ini Adding instance_states option to gce inventory 2016-06-17 10:11:23 -04:00
gce.py Adding instance_states option to gce inventory 2016-06-17 10:11:23 -04:00
jail.py Use print() as function under contrib/ 2015-08-28 09:18:13 +03:00
landscape.py
libcloud.ini
libvirt_lxc.py Correct connection type returned by libvirt_lxc inventory script 2015-11-13 15:43:12 +01:00
linode.ini
linode.py When the linode inventory is generated the linode label is used as the 2016-02-10 18:54:52 -05:00
lxc_inventory.py Add inventory script for LXC containers 2016-06-03 23:22:56 +03:00
nagios_ndo.ini Add Nagios NDO inventory plugin 2015-09-01 17:10:37 +02:00
nagios_ndo.py Add Nagios NDO inventory plugin 2015-09-01 17:10:37 +02:00
nova.ini
nova.py Replace .iteritems() with six.iteritems() 2015-09-03 09:23:27 +03:00
nsot.py Removed version argument from argparse 2015-11-18 14:01:30 -08:00
nsot.yaml Added NSoT Inventory script to pull from Device resources 2015-09-15 00:53:34 -07:00
openshift.py Fix urlopen usage to use open_url instead 2015-09-16 20:40:17 -07:00
openstack.py Merge pull request #14699 from jhesketh/devel 2016-06-07 11:21:51 +03:00
openstack.yml Allow fail_on_errors in openstack inventory 2016-04-05 20:31:54 +10:00
openvz.py Fixing typo 2015-10-26 17:13:00 -04:00
ovirt.ini
ovirt.py Fix indentation in ovirt.py inventory 2016-03-22 20:33:40 -05:00
proxmox.py If the notes don't contain JSON, add the string to the notes key of _meta 2016-01-24 01:10:47 -08:00
rackhd.py Bug Fix 2016-03-14 16:40:39 -04:00
rax.ini Add rax cache age ini documentation 2016-01-20 15:27:06 -05:00
rax.py Add a config option for rackspace inventory cache 2016-01-20 15:03:56 -05:00
rudder.ini Add Rudder inventory plugin 2015-08-28 10:25:18 +02:00
rudder.py made python 3 compatible 2015-11-13 21:57:28 -08:00
serf.py
softlayer.py Use print() as function under contrib/ 2015-08-28 09:18:13 +03:00
spacewalk.ini Added support for ini-file. 2015-07-31 14:18:59 +02:00
spacewalk.py Fix CACHE_DIR mode in contrib/inventory/spacewalk.py 2016-04-01 20:35:19 -04:00
ssh_config.py Use print() as function under contrib/ 2015-08-28 09:18:13 +03:00
vagrant.py Use print() as function under contrib/ 2015-08-28 09:18:13 +03:00
vbox.py Output proper JSON from vbox dynamic inventory contrib script 2015-09-26 18:25:58 +02:00
vmware.ini
vmware.py Python 3: use six.text_type instead of unicode 2015-09-04 08:40:10 +03:00
vmware_inventory.ini Add a new vmware inventory script backed by pyvmomi (#15967) 2016-05-30 20:41:48 -04:00
vmware_inventory.py * Fix broken indentation in vmware inventory (#16177) 2016-06-07 18:10:57 -04:00
windows_azure.ini Updates to Windows Azure inventory script from Tower. Includes changes from https://github.com/ansible/ansible/pull/8403. 2015-08-10 17:35:47 -04:00
windows_azure.py Allow to work with latest Azure Python SDK (#15467) 2016-04-21 23:18:45 -04:00
zabbix.ini
zabbix.py Added additional ini file search path into contrib/inventory/zabbix.py 2015-10-08 11:44:27 +03:00
zone.py Use print() as function under contrib/ 2015-08-28 09:18:13 +03:00