summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Fix undefined variables, basestring usage, and some associated python3 issuesToshio Kuratomi2017-07-254-26/+25
|
* updated readme with vault and 2.4 inv plugins (#26361)Brian Coca2017-07-241-7/+17
| | | | | | | | | | * updated readme with vault and 2.4 inv plugins * fixed as per feedback * Edits Need clarification for lines 10 and 11.
* Fix undefined variable in libcloud dyn inv scriptToshio Kuratomi2017-07-231-2/+1
| | | | References #27193
* Python 3 fix for consul_io inventory (#26510)Greg Dahlman2017-07-201-3/+10
| | | | | | | | | | * Python 3 fix for consul_io inventory * Remove configparser CamelCase try statement * revert to python2.6 compatible try;except * Fix pip8 error E302
* Add grouping by hostname for the Packet inventory (#21069)Tomáš Karásek2017-07-182-0/+8
| | | | | | * Add grouping by hostname for the Packet inventory * remove space after eol
* Update vmware_inventory (#26308)Abhijeet Kasurde2017-07-181-23/+31
| | | | | | | Fix adds * Exception handling * Unit tests Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Update ansible_ssh_host->ansible_host in ec2.py dynamic inventory (#17113)Josh Smift2017-07-171-2/+2
|
* Consolidate boolean/mk_boolean conversion functions into a single locationToshio Kuratomi2017-07-171-2/+3
| | | | | | | | Consolidate the module_utils, constants, and config functions that convert values into booleans into a single function in module_utils. Port code to use the module_utils.validate.convert_bool.boolean function isntead of mk_boolean.
* Add GPl License header to rackhd inventory file. (#24354)Alejandro Bednarik2017-07-101-2/+17
|
* [cluster] Name Consul dynamic inventory config consistently w/ the scriptRyan S. Brown2017-07-052-3/+6
|
* switched to elifBrian Coca2017-07-051-4/+4
|
* ec2.py: Better error messages for OptInRequiredLorin Hochstein2017-07-051-0/+8
| | | | Improve error messages for RDS and ElastiCache failures for code OptInRequired.
* PEP 8 fixes.Matt Clay2017-06-281-6/+6
|
* Update dynamic inventory zabbix.py (#19862)Ronny2017-06-281-3/+9
| | | Added _meta to improve the speed when using this dynamic inventory file
* Cyptography pr 20566 rebase (#25560)Toshio Kuratomi2017-06-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make pyca/cryptography the preferred backend for cryptographic needs (mainly vault) falling back to pycrypto pyca/cryptography is already implicitly a dependency in many cases through paramiko (2.0+) as well as the new openssl_publickey module, which requires pyOpenSSL 16.0+. Additionally, pyca/cryptography is an optional dep for better performance with vault already. This commit leverages cryptography's padding, constant time comparisons, and CBC/CTR modes to reduce the amount of code ansible needs to maintain. * Handle wrong password given for VaultAES format * Do not display deprecation warning for cryptography on python-2.6 * Namespace all of the pycrypto imports and always import them Makes unittests better and the code less likely to get stupid mistakes (like using HMAC from cryptogrpahy when the one from pycrypto is needed) * Add back in atfork since we need pycrypto to reinitialize its RNG just in case we're being used with old paramiko * contrib/inventory/gce: Remove spurious require on pycrypto (cherry picked from commit 9e16b9db275263b3ea8d1b124966fdebfc9ab271) * Add cryptography to ec2_win_password module requirements * Fix python3 bug which would pass text strings to a function which requires byte strings. * Attempt to add pycrypto version to setup deps * Change hacking README for dual pycrypto/cryptography * update dependencies for various CI scripts * additional CI dockerfile/script updates * add paramiko to the windows and sanity requirement set This is needed because ansible lists it as a requirement. Previously the missing dep wasn't enforced, but cryptography imports pkg_resources so you can't ignore a requirement any more * Add integration test cases for old vault and for wrong passwords * helper script for manual testing of pycrypto/cryptography * Skip the pycrypto tests so that users without it installed can still run the unittests * Run unittests for vault with both cryptography and pycrypto backend
* fix comment in inventory/digital_ocean.py (#25828)loqutus2017-06-181-1/+1
|
* Fix spelling mistakes (comments only) (#25564)Abhijeet Kasurde2017-06-123-5/+5
| | | | | | | | Original Author : klemens <ka7@github.com> Taking over previous PR as per https://github.com/ansible/ansible/pull/23644#issuecomment-307334525 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* foreman.py: create Ansible groups from Satellite 6 host collections (#25269)Carsten Clasohm2017-06-092-25/+99
| | | | | | | | | | | | | | | | | | | | | | | | * create Ansible groups from host collections * fix paging logic in _get_json * replace Satellite with Foreman * improve comment for environment variables * enable host collections by default * use requests params instead of urllib.quote_plus * disable host collections by default * change organization filter * clean up load_cache methods * remove usage of function defaults * replace environment variables with host_filters
* 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.
* Fix inventory script for Foreman where group by pattern are not prope… ↵Eric L2017-05-311-6/+3
| | | | | | | | (#25173) * Fix inventory script for Foreman where group by pattern are not properly safe-guarded. * Fix pep8 error about tab mixed with blanks.
* [cloud] EC2 dynamic inventory default filename is documented as ec2.ini - ↵Sloane Hertel2017-05-311-0/+5
| | | | | | | | | | fixes #24396 (#24515) * the default filename is ec2.ini (to override that use the env var EC2_INI_PATH) * allow fallback to ec2.ini
* contrib: PEP8 compliancy (#24680)Dag Wieers2017-05-303-18/+22
| | | - Make PEP8 compliant
* Misc typo fix in fleet inventory (#25174)Abhijeet Kasurde2017-05-301-1/+0
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fixed import of urlencode and pathname2url from urllib for python3 (#24424)Michael2017-05-192-4/+4
|
* take into account if cache file exists when loading data from digitalocean ↵Jorge Quintás2017-05-171-2/+2
| | | | even with --force-cache
* pep8 fixes for contrib (#24344)Matt Martz2017-05-0936-342/+324
|
* [cloud][inventory] Get tags for RDS instances. (#23989)Elijah Lynn2017-05-091-1/+15
| | | | | | | | | | | | * Get tags for RDS instances. Boto3 only at this time. Relates to #11569, #14464. * Add a check for boto3 * Fix HAS_BOTO3 error
* inventory: ovirt4: Add support for devices without IP (#24287)Ondra Machacek2017-05-041-2/+2
|
* Added subnetwork parameter to inventory instance dictionary. (#23984)Tom Melendez2017-04-261-0/+6
|
* Fix errors reported by pylint. (#23282)Matt Clay2017-04-062-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.
* Migrate most uses of if type() to if isinstance()Toshio Kuratomi2017-04-043-6/+9
| | | | | | Also convert those checks to use abcs instead of dict and list. Make a sentinel class for strategies to report when they've reache the end
* fetch spacewalk.ini from the environment if setWayne Witzel III2017-04-031-1/+4
|
* [openstack] Adds the non-deprecated ansible_host var (#23153)Tim Rupp2017-04-031-0/+1
| | | | | OpenStack dynamic inventory is still using the deprecated ansible_ssh_host. This patch adds ansible_host until such time as ansible_ssh_host is removed
* Fix vmware property filter (#23228)rafstef2017-04-031-1/+4
| | | Fixes errors on properties that do not exist.
* Address lxd inventory pep8 error (#23021)Matt Martz2017-03-271-1/+1
|
* Brook inventory (#16122)Francisco Ros2017-03-271-7/+10
| | | | | | | | | | * Do not ask for templates in Brook inventory if they do not exist * Add availability zone variable to Brook inventory * Add provider id variable to Brook inventory * Error output sent to stderr in Brook inventory
* A basic lxd dynamic inventory script (#15848)Andrew Clarke2017-03-272-0/+116
| | | | | | | | | | | | | | | | | | | | * A basic start on an lxd dynamic inventory script The script is a fairly basic start on an lxd dynamic inventory script. Only tested on ubuntu 16.04 and currently only reports ipv4 container addresses. Improvements to come. * Updated formatting, indenting and python3 support Updated to work on python3 * Additional options read from the ini file Added options for connection and group to the ini file and modified to use these. Host returned is now the name by default. For non-lxd connection, the ansible_host var is populated with the ip address. * Additional options for group and connection * Minor change to re-run tests
* Update module_utils.six to latest (#22855)Toshio Kuratomi2017-03-231-6/+6
| | | | | | | | * Update module_utils.six to latest We've been held back on the version of six we could use on the module side to 1.4.x because of python-2.4 compatibility. Now that our minimum is Python-2.6, we can update to the latest version of six in module_utils and get rid of the second copy in lib/ansible/compat.
* Only read EC2 `regions_exclude` list if necessary (#18720)Steve Kuznetsov2017-03-222-3/+4
| | | | | | | | | When specifying a literal whitelist of AWS EC2 regions in the dynamic inventory configuration file, it should not be necessary to also include a literal blacklist, especially as the blacklist is not honored in this case anyway. By reading the literal blacklist only when necessary, it is possible for a user to provide a more minimal EC2 configuration file. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
* [cloud][contrib] IAM role support for EC2 dynamic inventory (#15196)Rune T. Sorensen2017-03-202-0/+19
| | | | | | | | | | * EC2 inventory can now connect using an IAM role * Fix comment indentation * Make sure that Ec2Inventory.iam_role is always defined * Add missing import
* Add a custom regex_match filter to the vmware_inventory script (#21488)jctanner2017-03-171-2/+16
|
* Added support for specifying zone for gce dynamic inventory (#20938)Markus Liljedahl2017-03-162-5/+9
|
* 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