ansible/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
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
azure_rm.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
brook.ini
brook.py Brook inventory (#16122) 2017-03-27 14:54:33 -04:00
cloudforms.ini
cloudforms.py
cloudstack.ini
cloudstack.py cloudstack: fix pep8 cloudstack inventory (#22092) 2017-02-28 19:14:03 +01:00
cobbler.ini
cobbler.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
collins.ini
collins.py Fixed import of urlencode and pathname2url from urllib for python3 (#24424) 2017-05-19 12:22:16 -05:00
consul.ini
consul_io.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
digital_ocean.ini
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
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
libcloud.ini
libvirt_lxc.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
linode.ini
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
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
nagios_ndo.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
nova.ini
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
openshift.py
openstack.py [openstack] Adds the non-deprecated ansible_host var (#23153) 2017-04-03 16:02:54 -04:00
openstack.yml
openvz.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
ovirt.ini
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
rax.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
rhv.py
rudder.ini
rudder.py
serf.py
softlayer.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
spacewalk.ini
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
vbox.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
vmware.ini
vmware.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
vmware_inventory.ini
vmware_inventory.py contrib: PEP8 compliancy (#24680) 2017-05-30 21:08:09 +01:00
windows_azure.ini
windows_azure.py pep8 fixes for contrib (#24344) 2017-05-09 16:38:08 -05:00
zabbix.ini
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