1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/contrib/inventory
Toshio Kuratomi e238ae999b Cyptography pr 20566 rebase (#25560)
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
2017-06-27 06:00:15 -07:00
..
abiquo.ini Fix some typos (#16498) 2016-06-29 14:31:25 -04:00
abiquo.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
apache-libcloud.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
apstra_aos.ini [inventory/aos] Few fixes and small tweaks (#22259) 2017-03-03 19:38:46 +00:00
apstra_aos.py Fix spelling mistakes (comments only) (#25564) 2017-06-12 07:55:19 +01:00
azure_rm.ini Upgrade to azure 2.0.0rc5 and add locations parameter. 2016-07-09 01:42:39 -04:00
azure_rm.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
brook.ini Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
brook.py Brook inventory (#16122) 2017-03-27 14:54:33 -04:00
cloudforms.ini add cloudforms inventory script (#17037) 2016-08-18 14:37:31 -07:00
cloudforms.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
cloudstack.ini poreted log_plays, syslog_json and osx_say callbacks to v2 2015-07-10 10:30:33 -04:00
cloudstack.py cloudstack: fix pep8 cloudstack inventory (#22092) 2017-02-28 19:14:03 +01:00
cobbler.ini add cobbler api authentication options 2016-04-18 17:29:03 -04:00
cobbler.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
collins.ini Fix auth in collins.py inventory 2016-11-23 14:39:25 -05:00
collins.py Fixed import of urlencode and pathname2url from urllib for python3 (#24424) 2017-05-19 12:22:16 -05:00
consul.ini poreted log_plays, syslog_json and osx_say callbacks to v2 2015-07-10 10:30:33 -04:00
consul_io.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05: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 fix comment in inventory/digital_ocean.py (#25828) 2017-06-18 10:51:42 +02:00
docker.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
docker.yml Update and fix typos in docker inventory docstrings. (#15616) 2016-04-27 17:17:34 -04:00
ec2.ini Only read EC2 regions_exclude list if necessary (#18720) 2017-03-22 09:31:58 -04:00
ec2.py Fix spelling mistakes (comments only) (#25564) 2017-06-12 07:55:19 +01:00
fleet.py Misc typo fix in fleet inventory (#25174) 2017-05-30 13:31:35 -04:00
foreman.ini foreman.py: create Ansible groups from Satellite 6 host collections (#25269) 2017-06-09 17:10:55 -07:00
foreman.py foreman.py: create Ansible groups from Satellite 6 host collections (#25269) 2017-06-09 17:10:55 -07:00
freeipa.py contrib: PEP8 compliancy (#24680) 2017-05-30 21:08:09 +01:00
gce.ini Added support for specifying zone for gce dynamic inventory (#20938) 2017-03-16 08:28:30 -04:00
gce.py Cyptography pr 20566 rebase (#25560) 2017-06-27 06:00:15 -07:00
jail.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
landscape.py poreted log_plays, syslog_json and osx_say callbacks to v2 2015-07-10 10:30:33 -04:00
libcloud.ini poreted log_plays, syslog_json and osx_say callbacks to v2 2015-07-10 10:30:33 -04:00
libvirt_lxc.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
linode.ini Add public_ip option to linode dynamic inventory (#17390) 2016-09-09 09:14:27 -04:00
linode.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
lxc_inventory.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
lxd.ini A basic lxd dynamic inventory script (#15848) 2017-03-27 14:52:23 -04:00
lxd.py Address lxd inventory pep8 error (#23021) 2017-03-27 20:12:17 -05:00
mdt.ini Move mdt dynamic inventory plugin into contrib/inventory where it 2016-11-07 12:02:29 -08:00
mdt_dynamic_inventory.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
nagios_livestatus.ini Fix spelling mistakes (comments only) (#25564) 2017-06-12 07:55:19 +01:00
nagios_livestatus.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
nagios_ndo.ini Add Nagios NDO inventory plugin 2015-09-01 17:10:37 +02:00
nagios_ndo.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
nova.ini poreted log_plays, syslog_json and osx_say callbacks to v2 2015-07-10 10:30:33 -04:00
nova.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
nsot.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
nsot.yaml Added NSoT Inventory script to pull from Device resources 2015-09-15 00:53:34 -07:00
openshift.py Use sys.exit(msg) i/o print() and sys.exit() (#15465) 2016-08-23 11:09:23 -04:00
openstack.py [openstack] Adds the non-deprecated ansible_host var (#23153) 2017-04-03 16:02:54 -04:00
openstack.yml Allow fail_on_errors in openstack inventory 2016-04-05 20:31:54 +10:00
openvz.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
ovirt.ini Add dynamic inventory for oVirt version 4 and RHV version 4 (#17910) 2016-11-17 09:18:46 -05:00
ovirt.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
ovirt4.py inventory: ovirt4: Add support for devices without IP (#24287) 2017-05-04 12:22:48 -07:00
packet_net.ini Dynamic inventory for Packet host (https://packet.net) (#20635) 2017-02-06 09:56:17 +00:00
packet_net.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
proxmox.py Fixed import of urlencode and pathname2url from urllib for python3 (#24424) 2017-05-19 12:22:16 -05:00
rackhd.py contrib: PEP8 compliancy (#24680) 2017-05-30 21:08:09 +01:00
rax.ini Add rax cache age ini documentation 2016-01-20 15:27:06 -05:00
rax.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
rhv.py Add dynamic inventory for oVirt version 4 and RHV version 4 (#17910) 2016-11-17 09:18:46 -05:00
rudder.ini minor spelling changes 2016-12-13 13:51:13 -05:00
rudder.py made python 3 compatible 2015-11-13 21:57:28 -08:00
serf.py poreted log_plays, syslog_json and osx_say callbacks to v2 2015-07-10 10:30:33 -04:00
softlayer.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
spacewalk.ini Added support for ini-file. 2015-07-31 14:18:59 +02:00
spacewalk.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
ssh_config.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
stacki.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
stacki.yml Stacki inventory (#19608) 2017-01-17 14:01:58 -05:00
vagrant.py Fix compile errors in scripts. 2016-12-08 11:35:20 -05:00
vbox.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
vmware.ini vmware inventory script enhancements (#17106) 2016-08-17 17:44:15 -04:00
vmware.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
vmware_inventory.ini vmware_inventory: permit to group by custom field & customize skip_keys (#20125) 2017-01-12 09:37:18 -05:00
vmware_inventory.py contrib: PEP8 compliancy (#24680) 2017-05-30 21:08:09 +01: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 pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
zabbix.ini poreted log_plays, syslog_json and osx_say callbacks to v2 2015-07-10 10:30:33 -04:00
zabbix.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
zone.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00