summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* python 3 compatibility: import guard around ConfigParserJames Elford2017-06-031-1/+5
| | | | | | | In python3 `ConfigParser` has become `configparser`. Added an import guard that aliases it back to the old name. (cherry picked from commit bc9dbf38b0ea5a87089b8fc3e8bf5811e8dfadda)
* Misc typo fix in fleet inventory (#25174)Abhijeet Kasurde2017-06-011-1/+0
| | | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>(cherry picked from commit 3a82246d829fdd67cbb774b5c96f09fa6ac40100)
* Fix errors reported by pylint. (#23282)Matt Clay2017-04-132-2/+2
| | | | | | | | | | | * Fix pylint misplaced-bare-raise errors. * Fix pylint return-in-init error. * Fix pylint bad-format-character error. * Fix pylint too-many-format-args errors. * Fix pylint too-few-format-args errors. * Fix pylint truncated-format-string error. (cherry picked from commit 48eeab8a5374ac9a84d337f892b2bb85089cf83b)
* Fix Elasticcache issue where ec2 script would fail on finding lack of ↵William Holroyd2017-03-101-4/+5
| | | | primary endpoint address on Redis cluster (#20190)
* ovirt: dyn_inventory fix Python2 and Python3 compat (#22453)Ondra Machacek2017-03-101-4/+8
|
* azure_rm inventory version comparison fix (#22341)Matt Davis2017-03-061-4/+4
|
* [inventory/aos] Few fixes and small tweaks (#22259)Damien2017-03-032-8/+27
| | | | | | | | | | | | * Add ads server itself as an host in the inventory * Comment all value in example * Add Id in variable list per device * Centralize code to add device status to variables * Fix device variable name for blueprint
* Clean up group name before creation to remove spaces etc .. (#22020)Damien2017-03-011-11/+29
|
* cloudstack: fix pep8 cloudstack inventory (#22092)René Moser2017-02-281-12/+7
|
* Make sure all inventory scripts are executable.Matt Clay2017-02-223-0/+0
|
* inventory/Aos - Add session information to group all variables (#21719)Damien2017-02-221-1/+13
| | | | | | | | * Add aos.session information to group all variables * Revert IP address change * Remove space in empty line for PEP8
* use safe load insteadBrian Coca2017-02-211-1/+1
| | | | fixes #21724
* Add Foreman inventory (#19510)Daniel Lobato García2017-02-212-0/+501
| | | | | This commit adds the foreman inventory based on https://github.com/theforeman/foreman_ansible_inventory and its configuration file.
* Fix for crash on missing privileges, closes #21051 (#21518)Roman Belyakovsky2017-02-211-1/+4
|
* vmware_inventory: permit to skip nopermission error on host subkeys (notify ↵Loïc Blot2017-02-211-6/+9
| | | | | | | user in debug mode) (#21663) example use case: you have rights on guest but you cannot see the VMWare host Signed-off-by: nerzhul <loic.blot@unix-experience.fr>
* Allow ec2.py to be imported (#21637)Alex Trevino2017-02-201-2/+3
|
* Fix py3 issue in nagios_livestatus inv script. (#21687)Matt Clay2017-02-201-7/+8
| | | | | * Fix py3 issue in nagios_livestatus inv script. * Fix PEP 8 issues.
* Add Nagios livestatus inventory plugin. (#12342)Yannig2017-02-202-0/+216
| | | | | | | | | | | | | * Add Nagios livestatus inventory plugin. * Add new capabilities for the nagios_livestatus inventory: - host_field: set the name returned (default: 'name') - group_field: set the field used for group (default: 'groups') - host_filter: filter host using this filter (default: None) To be more consistent, prefix was renamed into var_prefix. * Fix py34 runtests errors against print call.
* [cloud][inventory] Let ec2.py be renamed and search for a matching .ini file ↵rafstef2017-02-201-2/+12
| | | | | | (#21567) With this proposed PR, we want to make the use of many ec2 dynamic inventory files more flexible. We are using multiple AWS accounts. We want to use different ini file (one for every account) and only one ec2.py.
* manually integrated from PR #10350Brian Coca2017-02-201-1/+1
|
* inventory/apstra_aos - Add a new output format when a blueprint name is ↵Damien2017-02-172-41/+193
| | | | | | | | provided (#21434) * Add a new output format when a blueprint name is provided * Add author name
* [cloud][aws] Use binary read for inventory cache fileRyan S. Brown2017-02-161-1/+1
|
* [cloud][aws] Use `with` statement for file rw in EC2 dynamic inventory (#21390)Alex Trevino2017-02-161-11/+7
| | | | | | | | * Use with statement when doing rw on files * Deserialize file-like object directly instead of a string For python 2/3 compatibility reasons, per PR feedback.
* Pass boto_profile to get_route53_records (#14354)Jonathan McCall2017-02-161-1/+4
| | | | | | * Pass boto_profile to get_route53_records * Add conditional around r53_conn to check for boto_profile
* Feature: adding route53_hostnames option to set the hostnames from route 53 ↵Ian White2017-02-142-1/+20
| | | | | | | | | | | | | | (#20909) * adding route53_hostnames option to set the hostnames from route 53 * checking whether the route53_hostnames option is present as suggested by @s-hertel * setting route53_hostnames to None when config option not present * skip the to_safe only when using route53_hostnames option, as suggested by @ryansb * skipping the to_safe strip only for the hostnames that came from route53 as suggested by @ryansb
* [cloud] Add group_by_instance_state to EC2 Dynamic Inventory (#20430)gregorydulin2017-02-142-0/+9
|
* Update nsot.py (#19421)Allan2017-02-101-2/+2
| | | To make this compatible with NSoT v1.x, removing ['data']['devices'].
* New dynamic inventory for Apstra AOS (#21045)Damien2017-02-092-0/+407
| | | | * Initial release of dynamic inventory for AOS
* [cloud][docs] Add more EC2 dynamic inventory stack_filter docsRyan S. Brown2017-02-091-2/+4
|
* [cloud] Add stack_filters option to EC2 inventory scriptIlya Kalinin2017-02-092-2/+18
|
* Support multiple vault passwords in keyring scriptJustin Mayer2017-02-081-21/+40
| | | | | | | | | | | | | | Allows users to specify a key name in a given project’s `ansible.cfg` file and thus handle keyring integration with vaults with different passwords. If no key name is specified, the original default `ansible` key name will be used. Other improvements: * `username` is now optional; defaults to user that invokes the script * change string interpolation to new `.format()` style * clean up and expand upon documentation * enforce PEP 8 compliance
* Legacy pep8 clean fixes for contrib and hacking (#21081)Matt Martz2017-02-077-27/+35
|
* pep8 fixes for recent packet_net inventory (#21066)Matt Martz2017-02-061-10/+9
|
* Dynamic inventory for Packet host (https://packet.net) (#20635)Tomáš Karásek2017-02-062-0/+550
| | | | | | | | | | | | | | | | | | | | | * Add dynamic inventory script and config for Packet.net * The script and config have been shamelessly cargo culted from the `ec2.py` and `ec2.ini` dynamic inventory script. * This is an initial version and could very well be enhanced and made better. Examples: `PACKET_NET_API_KEY=<MY_AUTH_TOKEN> --list` to get inventory for all hosts in Packet.net in all projects (defaults to `--list` if no argument provided). `PACKET_NET_API_KEY=<MY_AUTH_TOKEN> --host HOST` to get variables for a single host. * improvements in Packet host dynamic inventory
* PEP 8 fix.Matt Clay2017-02-011-1/+1
|
* ec2.py support region auto (#15427)Naoya Nakazawa2017-02-012-2/+10
|
* Improve boto profile handling for EC2 inventory (#20280)Will Thames2017-01-311-10/+7
| | | | | | Ensure command line profile argument and AWS_PROFILE environment variable overrides config file Remove unnecessary `lambda` function Fix cache file path construction to be more pythonic (and windows-ready)
* PEP 8 E111 cleanup.Matt Clay2017-01-301-281/+281
|
* PEP 8 E111 & E114 cleanup. (#20838)Matt Clay2017-01-308-24/+24
|
* PEP 8 indent cleanup. (#20800)Matt Clay2017-01-297-24/+24
| | | | | | | | * PEP 8 E121 cleanup. * PEP 8 E126 cleanup. * PEP 8 E122 cleanup.
* PEP 8 cleanup. (#20790)Matt Clay2017-01-281-1/+1
| | | | | * PEP 8 E115 cleanup. * PEP 8 E131 cleanup.
* PEP 8 cleanup. (#20789)Matt Clay2017-01-2813-33/+45
| | | | | | | * PEP 8 E703 cleanup. * PEP 8 E701 cleanup. * PEP 8 E711 cleanup. * PEP 8 W191 and E101 cleanup.
* PEP 8 W291 whitespace cleanup.Matt Clay2017-01-276-20/+20
|
* PEP 8 whitespace cleanup. (#20783)Matt Clay2017-01-277-11/+11
| | | | | | * PEP 8 E271 whitespace cleanup. * PEP 8 W293 whitespace cleanup. * Fix whitespace issue from recent PR.
* Fix infrequent PEP 8 issues.Matt Clay2017-01-273-5/+3
|
* fix typoPeter Hoffmann2017-01-271-1/+1
|
* Add account ID grouping and attribute to ease multi-account managementMatthew Wedgwood2017-01-232-0/+15
|
* Fix bug 17934 : Azure register failure must not be blocking (#18695)Laurent Mazuel2017-01-181-1/+5
| | | | | | * Fix bug 17934 * Update link in Azure provider warning log
* vmware_inventory.py: skip_keys can use a full key path (#20389)Loïc Blot2017-01-181-1/+1
| | | | | use inkey attribute in _process_object_types recursive loop to generate key name in skip_keys directive. This permit to ignore nested variables, for example summary.vm to optimize inventory collect
* added metadata to vault scryptBrian Coca2017-01-171-0/+4
|