Abhijit Menon-Sen
9005f91bb0
Merge pull request #15068 from OwenTuz/issue-15067
...
Name the AWS inventory cache based on the profile in use
2016-03-22 05:51:14 +05:30
Brian Coca
6bf92e7398
Merge pull request #15037 from vladpanainte/gce_fix
...
remove logging warning from GCE inventory
2016-03-21 11:03:44 -07:00
Owen Tuz
3b8d753121
Avoid cache conflicts when using multiple AWS accounts
2016-03-21 14:58:55 +00:00
Brian Coca
d026bc5e17
Merge pull request #14471 from willdurand/contrib-do-inventory
...
[contrib] Add option to define group vars in DigitalOcean dynamic inventory script
2016-03-21 07:17:46 -07:00
James Cammarata
c9da48d5ba
Merge branch 'destination_format' of https://github.com/a13m/ansible into a13m-destination_format
2016-03-19 09:05:14 -04:00
Brian Coca
e1ee2ed5a5
Merge pull request #13550 from KrzysiekJ/connect_to_region-wrap
...
Use wrapped connect_to_region everywhere in ec2.py
2016-03-18 21:25:55 -07:00
Brian Coca
8838ed055c
Merge pull request #14872 from bcoca/ec2_inv_page_rds
...
page rds instances
2016-03-18 20:36:46 -07:00
James Cammarata
93542b3666
Merge pull request #14964 from keedya/devel
...
Fixing bug in the output format when displaying 2 or more hosts
2016-03-18 16:38:58 -04:00
Brian Coca
eceabec71f
page rds instances
...
fix #14861
2016-03-18 13:31:52 -07:00
Toshio Kuratomi
959711b56e
Merge pull request #14993 from karmab/ovirt_connection_fix
...
Fixes ovirt inventory to only override credentials when keys exist
2016-03-18 11:02:14 -07:00
karimb
421fb6df8b
Fixes ovirt inventory to only override credentials from environment when keys exist
2016-03-18 18:47:20 +01:00
Vlad Panainte
8259c091d6
fix logging
2016-03-18 16:25:40 +00:00
Abhijit Menon-Sen
ad0e707f97
Merge pull request #7395 from hkariti/ec2_hostname_variable
...
Add hostname_variable to ec2 inventory script
2016-03-18 15:37:00 +05:30
James Cammarata
6265d6fd2a
Merge pull request #14870 from zyegfryed/patch-1
...
Fix filtering by project in Cloudstask inventory
2016-03-17 15:57:51 -04:00
Hagai Kariti
8a17da299f
Clean up lines with only whitespaces in ec2.py
2016-03-17 20:06:01 +02:00
Hagai Kariti
53756af546
Added hostname_variable to ec2 inventory
2016-03-17 20:06:00 +02:00
Abhijit Menon-Sen
f0af07a5f4
Merge pull request #14761 from enbritely/fix-ec2-inventory
...
Fix AWS EC2 inventory script instance_filters read
2016-03-17 21:51:43 +05:30
Clark Boylan
7d5650219d
Fix openstack inventory for multiple servers
...
Fix openstack inventory for when we have multiple servers with the same
name but different IDs. Instead of giving every server with the same
name the details for the first server returned with that name add the
individual servers as they are returned.
This was a logic bug where in a loop over a list of servers we always
added the first server in that list despite having more than one server.
2016-03-15 16:42:06 -07:00
Andre Keedy
d180e0e05f
Bug Fix
...
-Corrected the format in case of multiple hosts
Remove empty spaces
2016-03-14 16:40:39 -04:00
Monty Taylor
82c150b72f
Detect empty cache files in openstack inventory
...
There are cases where it makes more sense to zero out a cache file as a
form of invalidation instead of removing it. Detect those approrpriately
2016-03-09 11:54:30 -06:00
Sébastien Fievet
83e748e315
Fix filtering by project in Cloudstask inventory
2016-03-09 11:19:39 +07:00
Brian Coca
061d35bbe3
Merge pull request #14297 from keedya/devel
...
Add rackHd inventory script
2016-03-03 18:12:15 -05:00
Joe
21ba6e9ce8
Do not use name tag
for intance filter
2016-03-02 20:06:14 +01:00
Joe
5975296770
Fix AWS EC2 external inventory script config read
...
EC2 inventory scripts reads configuration from an INI file. The `instance_filters` option controls which EC2 instances are retrieved for inventory. Filling this option and running the inventory script with Python 3 crashes with the following error:
```python
Traceback (most recent call last):
File "./contrib/inventory/ec2.py", line 1328, in <module>
Ec2Inventory()
File "./contrib/inventory/ec2.py", line 163, in __init__
self.read_settings()
File "./contrib/inventory/ec2.py", line 393, in read_settings
for instance_filter in config.get('ec2', 'instance_filters', '').split(','):
TypeError: get() takes 3 positional arguments but 4 were given
```
The problem is the last parameter of config.get() call, because `fallback` keyword argument is not specified.
The fix handles epmpty `instance_filers` in case of Python 2&3
2016-03-02 19:44:25 +01:00
Monty Taylor
c737bd48bc
Deduplicate true duplicate entries in the openstack inventory
...
There are cases where the host list back from the cloud comes back
duplicated. This causes us to report those with UUIDs, which we do to
support truly different servers with the same name. However, in the case
where duplicate host entries have the same UUID, we can know it's a data
hiccup.
2016-02-24 12:36:50 -06:00
Matt Martz
7bfb689de2
Merge pull request #8561 from sivel/vault-keyring-example
...
Add vault-keyring.py example script
2016-02-18 14:40:50 -06:00
William Durand
369cb8fa9f
[contrib] Add option to define group vars in DigitalOcean dynamic inventory script
2016-02-14 17:04:26 +01:00
James Cammarata
1b3c669ebe
Merge pull request #14428 from shawnsilva/linode-invscript-addips
...
Linode Dynamic Inventory: Add public IP's as hostvars
2016-02-11 22:46:39 -05:00
Brian Coca
3ddcabee0e
Merge pull request #14093 from MatthaeusHarris/proxmox_4_inventory
...
Proxmox 4 inventory
2016-02-11 01:39:33 -05:00
Shawn Silva
f450a4cb69
When the linode inventory is generated the linode label is used as the
...
inventory host. If the label isn't a FQDN ansible can't connect.
This will set the hostvars for the ansible_ssh_host to the linodes public IP.
2016-02-10 18:54:52 -05:00
Andre keedy
e46074c791
Address comments
2016-02-04 17:00:21 -05:00
Andre keedy
083530d8fa
Fix erros
2016-02-03 17:00:58 -05:00
Andre keedy
22382726fa
Add rackHd inventory script
...
- Allow ansible to get hosts inventory from rackHD by node id
2016-02-03 15:42:05 -05:00
Anthony Robinson
b73c7728f4
Update example vpc_desitnation_variable example with working settings
2016-02-01 11:05:46 -05:00
Brian Coca
37eac4592e
added back --profile to keep backwards compat
...
this was broken by #12548
2016-01-30 11:35:11 -05:00
Matt Martz
bf52e541fb
Add newline when printing the password
2016-01-28 16:20:59 -06:00
Matt Martz
6d1a834b81
Add vault-keyring.py contrib script that can be used with --vault-password-file
2016-01-28 16:17:57 -06:00
Matt Harris
f8e73714f6
If the notes don't contain JSON, add the string to the notes key of _meta
2016-01-24 01:10:47 -08:00
Matt Harris
e5493fa631
Added support for proxmox 4.x
2016-01-24 00:57:40 -08:00
Matthew Jones
a1318e1664
Add rax cache age ini documentation
2016-01-20 15:27:06 -05:00
Matthew Jones
a106382786
Add a config option for rackspace inventory cache
...
Adding a config and environment variable option for tuning the cache age
check in the rackspace inventory module
2016-01-20 15:03:56 -05:00
Krzysztof Jurewicz
73160e65e5
Use wrapped connect_to_region everywhere in ec2.py
2015-12-15 12:03:50 +01:00
Brian Coca
938c26d952
Merge pull request #13544 from emonty/inventory-config
...
Add OpenStack Inventory configuration
2015-12-14 13:22:19 -05:00
Monty Taylor
9f61144401
Optionally only use UUIDs for openstack hosts on duplicates
...
The OpenStack inventory lists hostnames as the UUIDs because hostsnames
are not guarnateed to be unique on OpenStack. However, for the common
case, this is just confusing.
The new behavior is a visible change, so make it an opt-in via config.
Only turn the hostnames to UUIDs if there are duplicate hostnames.
2015-12-14 10:19:43 -05:00
Monty Taylor
1f8e484b70
Fix the refresh flag in openstack inventory
...
Refresh will update the dogpile cache from shade, but doesn't cause
the ansible side json cache to be invalidated. It's a simple oversight.
2015-12-14 09:59:41 -05:00
Toshio Kuratomi
6472b3daee
Merge pull request #13157 from fghaas/lxc
...
LXC inventory scripts: fix libvirt_lxc, add lxc
2015-12-04 10:57:50 -08:00
Brian Coca
2f139dad3f
Merge pull request #12368 from coxley/nsot-inventory
...
Contrib Inventory: NSoT
2015-11-18 14:31:15 -08:00
Codey Oxley
9dcfbb1130
Removed version argument from argparse
...
This was breaking standalone execution and isn't needed
2015-11-18 14:01:30 -08:00
Florian Haas
0bc32cbaee
Correct connection type returned by libvirt_lxc inventory script
...
The correct connection type for LXC containers managed via libvirt is
libvirt_lxc, not lxc.
2015-11-13 15:43:12 +01:00
Brian Coca
3952fc7f97
made python 3 compatible
2015-11-13 21:57:28 -08:00