summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* Misc typo fixes (#45969) (#45978)John R Barker2018-09-211-3/+3
| | | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit 0ecbd50c3b45f241372d3ff9cad7bfa01c583cdb)
* [WIP] Backport/2.7/second batch (#45927)Sandra McCann2018-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Update influxdb_database.py (#39984) (cherry picked from commit 049a4620581672a7b6adc0b9d2faf5f7c369357c) * Link to the Galaxy platforms list from the meta file template (#34046) (cherry picked from commit fa18d45eb37949a5bac17bf7d3870f9e34bfb798) * fix gce_backend_service examples for healthchecks (#31134) (cherry picked from commit e26d758d6fe960b7728895f754935c0b47a720f0) * Clarify the creates and removes options (#45485) (cherry picked from commit bf90a44468a1a952eb948dd6c101b7331e34789f) * lineinfile note belongs in changelog for 2.6, not 2.7 (#45517) (cherry picked from commit 228fee4f3abb1f131bfc063fd37e58fb3661606c) * Update keycloak_client.py (#43547) (cherry picked from commit cb460dee74f20d2684a2352c20c88c4f97e22c84) * The keyword 'cloud' has been deprecated in favor of the 'profile' keyword by os-client-config. (#31389) (cherry picked from commit 17ca0a9bd9d025a99f733af522c5881f8201fdcd) * Clarified documentation for the unsafe_writes option (#27471) (cherry picked from commit dd5d191d7a6985ff068ee458d6dd56c46273e6f8)
* ec2 inventory: python 3.7 compatibility (#43716)Simon Wydooghe2018-09-061-10/+10
| | | | | | | | | | ec2 inventory script was throwing errors when using Python 3.7: TypeError: option values must be strings This changes the None ConfigParser options to empty strings instead. (cherry picked from commit 505ce6ccf6e40f67b30fa8a84d9704c28013d841)
* Update vault-keyring to ConfigManager internals (#41967)Yves Martin2018-08-221-2/+2
| | | Fix failure since ConfigManager changes
* Fix #43917 (#43929)Miguel C2018-08-131-1/+1
| | | Support upper/lower case resource groups
* Remove use of simplejson throughout code base (#43548)Matt Martz2018-08-1031-127/+31
| | | | | | | | | | * Remove use of simplejson throughout code base. Fixes #42761 * Address failing tests * Remove simplejson from contrib and other outlying files * Add changelog fragment for simplejson removal
* add group_by_os_family in azure dynamic inventory (#40702)Etienne Deneuve2018-08-092-1/+10
|
* VMware: remove unused imports (#43804)Abhijeet Kasurde2018-08-091-4/+3
| | | | | Idea taken from https://github.com/ansible/ansible/pull/43402 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Surround top-level function and class definitions with two blank lines.Joren Vrancken2018-07-3120-1/+20
|
* Update openstack inventory script to keep basic functionality (#43432)Alan Rominger2018-07-301-1/+6
| | | | | | | | re-applies commit 6667ec447466abf1641787afccf9175369319d1f which fixed the plugin to the script so that it will work with current ansible-inventory. Also redirect stdout before dumping the ouptput, because not doing so will cause JSON parse errors in some cases.
* scaleway: initialise auth_token to none (#43183)Theodotos Andreou2018-07-241-0/+1
| | | Fixes: #43132
* VMware: blacklist custom fields in vmware_inventory.py (#36877)tod-uma2018-07-182-1/+16
| | | | | | | * Provide the ability to blacklist custom fields from having groups created for them. * Updated configuration parameter name
* Zabbix inventory improvement (#42669)Filippo1252018-07-142-1/+9
| | | | | | | | | | * Add validate_certs option to zabbix inventory * Add validation option * Fix pep8 * Add changelog
* Changed 'all' group to 'scaleway' group to avoid conflict with real 'all' ↵Marcos Alano2018-07-051-3/+3
| | | | group. Closes ##35092 (#42367)
* Name of global custom attributes are not managed by the inventory (#41786)smutel2018-07-051-1/+1
|
* Retrive subscription id from env (#42036)Yuwei Zhou2018-06-281-0/+1
|
* Remove redundant API method from foreman inventory (#41720)Abhijeet Kasurde2018-06-211-4/+0
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fix openstack inventory script for multi-cloud case (#41664)Monty Taylor2018-06-181-2/+6
| | | | | | | | The shift to openstacksdk left us with a bug in that when running bare with --list, the cloud argument to get_one is None. We just need _one_ of the clouds to pull the cache settings, since they are global (yet, we'll go back and fix this in sdk) If it's None, just use get_all and grab the first one.
* Prefer readthedocs.io instead of readthedocs.org for doc links (#41537)Jon Dufresne2018-06-185-5/+5
| | | | | | | | | | | | | | Read the Docs moved hosting to readthedocs.io instead of readthedocs.org. Fix all links in the project. For additional details, see: https://blog.readthedocs.com/securing-subdomains/ > Starting today, Read the Docs will start hosting projects from > subdomains on the domain readthedocs.io, instead of on > readthedocs.org. This change addresses some security concerns around > site cookies while hosting user generated data on the same domain as > our dashboard.
* VMware: Add documentation for customValue (#41399)Abhijeet Kasurde2018-06-151-1/+4
| | | | | | | | | | | | | | * VMware: Add documentation for customValue In order to populate custom values (custom attributes of virtual machine) inside hostvars, customValue needs to be uncommented under the section properties in vmware_inventory.ini * Remove unwanted single quotes from custom_field_group_prefix Fixes: #41395 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* DigitalOcean - Fix TypeError when users have tags named the same as droplets ↵ABond2018-06-151-11/+21
| | | | | | | (#41368) * Fix TypeError when users have tags named the same as droplets * Updated code based on review comments
* add adfs_authority_url arg in azure_rm.py (#41071)Yunge Zhu2018-06-041-3/+5
|
* Fixes #40661 fixed elasticache inventory node limit issue. (#40674)rubal0332018-05-311-12/+15
| | | | | | | | | | | | * fixed elasticache inventory node limit issue * fixed elasticache inventory node limit issue, sanity fixes * fixed elasticache inventory node limit issue, sanity fixes * fixed elasticache inventory node limit issue, spelling corrections * fixed elasticache inventory node limit issue, removed blank lines
* Pass cloud parameter to get_one call (#40892)Monty Taylor2018-05-301-1/+2
| | | | When we switch this to pull from the CloudRegion object, we missed passing the parameter along.
* retire shade in favor of openstacksdk for openstack modules (#40532)Artem Goncharov2018-05-251-11/+11
| | | | | | | | * Establish connection through openstacksdk * Switch from shade to openstacksdk * fix typo in link to openstacksdk * remove nova_client usage * further remove of min_version from openstack modules
* Remove old openstack nova dynamic inventory script (#40465)Jesse Pretorius2018-05-252-277/+0
| | | | | | This script was deprecated in 2.0.0. There is no point carrying it around any longer given that there is now a replacement dynamic inventory script and an inventory plugin too.
* Added ability to read config from env. instead of .init for use in Asible ↵uberlinuxguy2018-05-241-1/+34
| | | | | | | | | | | Tower (and AWX) (#36179) * Added ability to read config from env. instead of .init for use in Ansible Tower (and AWX) * Detect when NoneType is passed to cache_path * Formatting fixes
* Use DOCKER env variables when defined (#36759)denraf2018-05-231-7/+10
| | | | | | | | * Use DOCKER_DEFAULT_IP when defined * default localhost value overwrites DOCKER_TLS_HOSTNAME * Backward compatibility, allow localhost as default docker_tls_hostname
* Fixes #36621, support adfs auth through adal (#37909)Yunge Zhu2018-05-231-1/+46
| | | | | | | | * update username/password auth to use adal lib * remove default client_id after discussion * fix lint error: trailing whitespace
* Fix shebangs and file modes and update tests. (#40563)Matt Clay2018-05-221-0/+0
| | | | | | * Add execute bit sanity test and apply fixes. * Add shebang test for `lib` dirs and apply fixes. * Shebang and execute bit cleanup.
* Update all pypi.python.org URLs to pypi.org (#38988)Jon Dufresne2018-05-144-5/+5
| | | | | For details on the new PyPI, see the blog post: https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
* cloudstack: use paging for listVirtualMachines (#40018)Peter Farmer2018-05-121-4/+4
| | | | Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
* Adding multiple project support for GCE (#39473)John Roach2018-05-112-15/+24
| | | | | | * Adding multiple project support for GCP inventory. * Adding some documentation on the .ini file
* add user-agent to Azure API calls, and support MSI/CLI cred for inventory ↵Yuwei Zhou2018-05-111-21/+75
| | | | | | | | | | | | | | | | | | | | (#39785) * add user agent * add msi * support cli * check subscription * lint * fix lint * fix lint * fix lint
* VMware: Custom Field in vmware_inventory (#39796)Abhijeet Kasurde2018-05-101-6/+10
| | | Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* [ec2 contrib script] Add ability to filter EC2 instances via shell ↵Daryl Banttari2018-05-021-2/+9
| | | | environment (#39034)
* [contrib] azure_rm.py add mechanism to force use of private ip as ↵Sylvain Rabot2018-05-021-2/+7
| | | | | ansible_host (#36109) Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
* ovirt: Clarify secrets configuration (#39501)Ondra Machacek2018-05-011-1/+2
| | | Fixes: https://github.com/ansible/ansible/issues/39478
* Convert more http links to https.Matt Clay2018-04-251-4/+2
|
* [cloud][aws] PEP8 renaming in EC2 dynamic inventory (#39164)Javier Beaumont2018-04-231-7/+7
|
* VMware: Support for multiple jinja filters in vmware_inventory (#38173)Abhijeet Kasurde2018-04-111-3/+15
| | | | | | | | This fix adds support for multiple jinja filters for groupby_patterns and host_filters. Fixes: #37961 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fixes Making sure that the key value returns a string to avoid concatenation ↵John Roach2018-04-051-1/+1
| | | | issues (#37445)
* Set `raw=True` when reading passwords from ConfigParser files. (#35582)Bill Nottingham2018-04-054-4/+4
| | | | | | | | | | * Set `raw=True` when reading passwords from ConfigParser files. The assumption is that no one is actually doing interpolation on the password value, even if they may for other configuration values, and passwords are far more likely to contain '%'. * Add vmware_inventory as well.
* Fix dynamic inventory for vagrant does not work on python3 (#37631)Hideki Saito2018-03-221-4/+9
| | | * Fix dynamic inventory for vagrant does not work on python3 #35129
* Remove unused import from azure dyn inventory (#34980)Patrick Marques2018-03-221-2/+0
|
* Removed windows_azure inventory script to avoid confusion with azure_rm.py ↵Jordan Borean2018-03-222-310/+0
| | | | (#37439)
* Set win_rm protocol to the name, not the full ProtocolTypes object (#37499)Tyler Gregory2018-03-211-1/+1
|
* Allow filtering of instances by tags in GCE dynamic inventory (#35770)Peter Schiffer2018-03-142-1/+30
| | | | | | | | * Allow filtering of instances by tags in GCE dynamic inventory * Optimize instance tags configuration * Fix for PEP8
* FreeIPA inventory (ipalib 4.6.2): avoid exception (#34356)Pilou2018-02-261-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Workaround for https://pagure.io/freeipa/issue/7345. mentions: - IPA_CONFDIR environment variable when directory doesn't exist - domain, xmlrpc_uri or jsonrpc_uri parameters when one is missing Exception was: $ IPA_CONFDIR=/path/to/empty/dir ./ansible/contrib/inventory/freeipa.py --list Traceback (most recent call last): File "./ansible/contrib/inventory/freeipa.py", line 95, in <module> api = initialize() File "./ansible/contrib/inventory/freeipa.py", line 18, in initialize api.finalize() File "local/lib/python2.7/site-packages/ipalib/plugable.py", line 738, in finalize self.__do_if_not_done('load_plugins') File "local/lib/python2.7/site-packages/ipalib/plugable.py", line 425, in __do_if_not_done getattr(self, name)() File "local/lib/python2.7/site-packages/ipalib/plugable.py", line 618, in load_plugins for package in self.packages: File "local/lib/python2.7/site-packages/ipalib/__init__.py", line 949, in packages ipaclient.remote_plugins.get_package(self), File "local/lib/python2.7/site-packages/ipaclient/remote_plugins/__init__.py", line 120, in get_package server_info = ServerInfo(api) File "local/lib/python2.7/site-packages/ipaclient/remote_plugins/__init__.py", line 26, in __init__ hostname = DNSName(api.env.server).ToASCII() AttributeError: 'Env' object has no attribute 'server'
* Add a module_utils OpenStack Cloud constructor (#20974)Monty Taylor2018-02-151-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Start using this to construct shade OpenStack Cloud objects in a consistent manner. This will let us centralize things like dealing with password arguments and whatnot. It also allows us to introduce the ability to pass a fully formed config dict directly to the module. Migrate all OpenStack modules to use openstack_cloud_from_module. Have it return the shade library since it's responsible for importing shade and shade is needed for the exceptions. Only pull specific OpenStack arguments for the constructor Rather than passing **module.params to the shade constructor, pull out only the values that make sense. This should prevent the issues with module parameters stepping on shade parameters. Replace module.params.pop with module.params.get We don't need to pop these anymore since the shade constructor is now using opt-in values. Using real urls is ungood. Use example.com domains. Also, get rid of the antiquated port numbers.