James Cassell
bc4ef99533
standardize TLS connection properties ( #54315 )
...
* openstack: standardize tls params
* tower: tower_verify_ssl->validate_certs
* docker: use standard tls config params
- cacert_path -> ca_cert
- cert_path -> client_cert
- key_path -> client_key
- tls_verify -> validate_certs
* k8s: standardize tls connection params
- verify_ssl -> validate_certs
- ssl_ca_cert -> ca_cert
- cert_file -> client_cert
- key_file -> client_key
* ingate: verify_ssl -> validate_certs
* manageiq: standardize tls params
- verify_ssl -> validate_certs
- ca_bundle_path -> ca_cert
* mysql: standardize tls params
- ssl_ca -> ca_cert
- ssl_cert -> client_cert
- ssl_key -> client_key
* nios: ssl_verify -> validate_certs
* postgresql: ssl_rootcert -> ca_cert
* rabbitmq: standardize tls params
- cacert -> ca_cert
- cert -> client_cert
- key -> client_key
* rackspace: verify_ssl -> validate_certs
* vca: verify_certs -> validate_certs
* kubevirt_cdi_upload: upload_host_verify_ssl -> upload_host_validate_certs
* lxd: standardize tls params
- key_file -> client_key
- cert_file -> client_cert
* get_certificate: ca_certs -> ca_cert
* get_certificate.py: clarify one or more certs in a file
Co-Authored-By: jamescassell <code@james.cassell.me>
* zabbix: tls_issuer -> ca_cert
* bigip_device_auth_ldap: standardize tls params
- ssl_check_peer -> validate_certs
- ssl_client_cert -> client_cert
- ssl_client_key -> client_key
- ssl_ca_cert -> ca_cert
* vdirect: vdirect_validate_certs -> validate_certs
* mqtt: standardize tls params
- ca_certs -> ca_cert
- certfile -> client_cert
- keyfile -> client_key
* pulp_repo: standardize tls params
remove `importer_ssl` prefix
* rhn_register: sslcacert -> ca_cert
* yum_repository: standardize tls params
The fix for yum_repository is not straightforward since this module is
only a thin wrapper for the underlying commands and config. In this
case, we add the new values as aliases, keeping the old as primary,
only due to the internal structure of the module.
Aliases added:
- sslcacert -> ca_cert
- sslclientcert -> client_cert
- sslclientkey -> client_key
- sslverify -> validate_certs
* gitlab_hook: enable_ssl_verification -> hook_validate_certs
* Adjust arguments for docker_swarm inventory plugin.
* foreman callback: standardize tls params
- ssl_cert -> client_cert
- ssl_key -> client_key
* grafana_annotations: validate_grafana_certs -> validate_certs
* nrdp callback: validate_nrdp_certs -> validate_certs
* kubectl connection: standardize tls params
- kubectl_cert_file -> client_cert
- kubectl_key_file -> client_key
- kubectl_ssl_ca_cert -> ca_cert
- kubectl_verify_ssl -> validate_certs
* oc connection: standardize tls params
- oc_cert_file -> client_cert
- oc_key_file -> client_key
- oc_ssl_ca_cert -> ca_cert
- oc_verify_ssl -> validate_certs
* psrp connection: cert_trust_path -> ca_cert
TODO: cert_validation -> validate_certs (multi-valued vs bool)
* k8s inventory: standardize tls params
- cert_file -> client_cert
- key_file -> client_key
- ca_cert -> ca_cert
- verify_ssl -> validate_certs
* openshift inventory: standardize tls params
- cert_file -> client_cert
- key_file -> client_key
- ca_cert -> ca_cert
- verify_ssl -> validate_certs
* tower inventory: verify_ssl -> validate_certs
* hashi_vault lookup: cacert -> ca_cert
* k8s lookup: standardize tls params
- cert_file -> client_cert
- key_file -> client_key
- ca_cert -> ca_cert
- verify_ssl -> validate_certs
* laps_passord lookup: cacert_file -> ca_cert
* changelog for TLS parameter standardization
2019-03-28 00:19:28 -05:00
Kyryl Galanov
4a5b9bd8eb
New lookup module: manifold ( #50435 )
...
* New lookup module: manifold
Add Manifold.co integration. The plugin fetches resource credentials
from Manifold service.
* module manifold: fix ansible lint warnings
* module manifold: fix false warning - split test assertion
* manifold module: fix unittest import
* manifold module: fix unittest patch
* manifold module: fix python3 requests getheader error
2019-03-27 07:20:15 -04:00
Tom Cooper
2b6413558b
hashi_vault: Use mount_point kwarg for ldap/userpass login ( #54358 )
...
Fixes : #54249
2019-03-27 09:41:09 +05:30
Sloane Hertel
54be769e8d
fix AWS plugin credential precedence for environment variables ( #52945 )
...
* fix AWS plugin credential precedence for environment variables
* Allow aliases in direct plugins options
Consolidate precedence fix just in the doc fragment using aliases for mismatched options
* Access options with the option name rather than alias
* fix indentation
* update unit tests
* Improve readability
2019-03-25 16:53:11 -04:00
Vlad Romanenko
e216aafc14
Fix syntax highlighting ( #53945 )
...
* Fix syntax highlighting
This fixes broken syntax highlighting for \' inside a single quoted string.
* Update lib/ansible/plugins/lookup/aws_ssm.py
Co-Authored-By: vlad-ro <vlad-ro@users.noreply.github.com>
2019-03-21 17:08:23 +00:00
Vlad Romanenko
fc2ad0e9de
[aws_ssm lookup plugin] Add example of using explicit aws credentials ( #53956 )
2019-03-18 09:38:08 -05:00
Rémi REY
c6aecf4704
Update aws_secret.py ( #53390 )
...
Update the version_added variable that should be 2.8
2019-03-06 13:31:55 -05:00
Martin Krizek
5734b4e69e
Clarify return value of the sequence lookup ( #53275 )
...
* Clarify return value of the sequence lookup
Fixes #17852
* Mention range filter
2019-03-04 14:09:55 -05:00
Jad Kik
79eeea8ea6
lookup: redis: fix plugin returning repr'd byte objects ( #52854 )
...
* Fix default port of redis lookup plugin
* Fix redis plugin returning repr'd byte objects
* Fix error handling in redis lookup plugin
2019-02-27 12:04:18 +01:00
Brian Coca
cd63a0714b
varnames lookup ( #51621 )
...
* varnames lookup
* doc updates from feedback lib/ansible/plugins/lookup/varnames.py
Co-Authored-By: bcoca <bcoca@users.noreply.github.com>
2019-02-26 13:59:24 -05:00
Rémi REY
30b3ce0f81
Add aws_secret module for managing secretsmanager on AWS ( #48486 )
...
* Adding module for managing AWS Secrets Manager resources
* adding aws_secret lookup plugin
Also use the data returned by describe_secret everywhere.
* replace the explicit /root use by a temporary dir
* aws_secret: rework module
Reworked module to use a class avoiding using client and module in every
functions.
* Added support of "recovery_window" parameter to allow user to provide
recovery period.
* updated return value to be the api output providing more details about
the secret.
* Fix Python 3 bug in tests if the role is not removed
* Add unsupported alias due to issue restricting resource for creating secrets
2019-02-25 14:27:33 -06:00
Jordan Borean
9717bc4bcf
Add laps_password lookup for retrieving a Windows LAPS Password ( #52012 )
...
* Add laps_password lookup for retrieving a Windows LAPS Password
* Remove python-ldap from requirements and fix doc typos
* enable unit tests without ldap dependency
* use config options for lookup plugin
* Update docs and tests based on further distro testing
2019-02-25 05:30:12 +10:00
John R Barker
b3a3328ea6
Better document the return type of the fileglob filter ( #52801 )
...
https://github.com/ansible/ansible/pull/44986
Fixes #33465
Thanks to DaveB93 for the suggestion.
2019-02-22 10:23:15 +00:00
Sumit Jaiswal
8a2ff1cde6
PR to start support for Skydive integration with Ansible ( #50857 )
...
* skydive modules
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* skydive modules
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* skydive modules
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* skydive modules
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* skydive modules
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* skydive modules
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* skydive modules
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* modifying file name
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* renamed
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* skydive lookup
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* change in str
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* change in str
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable error
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* renamed file
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable error
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* change in str
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable error
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable error
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix review comments
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix review comments
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* deleting file to add to new PR
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix review comments
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* shippable and doc fix
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* placing doc at correct path
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* shippable and doc fix
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* placing doc at correct path
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* updated with review and shippable fix
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* updated with review and shippable fix
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* updated with review and shippable fix
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* updated with review and shippable fix
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fixing review comment
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fixing review comment
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fixing review comment
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fixing review comment
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fixing review comment
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable errors
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix shippable error
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix review comments
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fixing shippable errors
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* fix review comments
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* review comments
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* shippable fix
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
* review comment
Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com>
2019-02-19 16:18:40 +05:30
Alex Vasilenko
20ed819acd
Fix exception handling in credtash lookup ( #51099 )
...
Exception does not have property message and ansible returns completely different exception because of this
2019-02-18 18:28:35 -05:00
Emmanouil Kampitakis
1219aa811a
Feature/alphanumeric password in passwordstore ( #38121 )
...
* Alphanumeric only password may be generated
* Bump the ansible version this will have been added to 2.8
2019-02-14 17:02:24 -05:00
Abhijeet Kasurde
32fce43311
hashi_vault: fix multiple spaces in params ( #51524 )
...
Fixes param parsing in hashi_vault
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-02-13 18:32:00 +05:30
Jadi
bf40b8d118
Fixed wrong limit on 'Fetch all deployments' sample ( #51897 )
...
Fixes : #51675
the sample for 'Fetch all deployments' is "{{ lookup('k8s', kind='Deployment', namespace='testing') }}" but it should be "{{ lookup('k8s', kind='Deployment') }}"
2019-02-08 08:17:50 +05:30
Abhijeet Kasurde
18ed84b877
hashi_vault: add support for userpass authentication ( #51538 )
...
Added support for username and password authentication in hashi_vault
lookup plugin.
Fixes : #38878
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-02-02 12:32:53 +01:00
Abhijeet Kasurde
67f95cb499
Onepassword document fixes ( #51527 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2019-01-31 09:48:55 -05:00
Fabian von Feilitzsch
09bfe42a5c
Bubble up import exception content for k8s module ( #50657 )
...
* Bubble up import exception content for k8s module
Signed-off-by: Fabian von Feilitzsch <fabian@fabianism.us>
* Track down other places import exception is reported
* Add changelog fragment
2019-01-15 10:44:59 +10:00
Semyon Deviatkin
618caf2168
add env variable VAULT_AUTH_METHOD ( #50572 )
2019-01-07 22:13:00 +01:00
Martin Krizek
6d604f9b01
Allow for vaulted templates in template lookup ( #49819 )
...
Fixes #34209
2019-01-07 10:06:01 -05:00
Martin Krizek
82c95e07b5
Fix searchpath in the template lookup ( #50488 )
2019-01-07 11:33:39 +01:00
Arne Jørgensen
15fb9d3bc0
Fix lastpass lookup error
...
Fixes #42062 .
2019-01-03 23:56:41 -08:00
drewmullen
04a9a887d5
allow for vault enterprise namespaces ( #50462 )
...
* enable namespaces feature for hashi_vault lookup
* include version_added dict in options documentation
2019-01-03 11:51:13 -05:00
Richlv
bb9bad89bb
Update ini.py ( #50171 )
...
Typo/grammar/consistency fixes.
2018-12-20 10:07:05 -05:00
Yannig Perré
6b41588e93
Fix with_ini example and unittest
...
* Fix example in ini.py
* Fix unittest in test_ini.py to pass CI as latest ansible returns list in
different order. To prevent such issues in future results are sorted
* PEP8 E501 styling improvements
Co-Authored-By: Sergii Golovatiuk <sgolovat@redhat.com>
2018-12-18 12:25:02 -08:00
Toshio Kuratomi
3fba006207
Update bare exceptions to specify Exception.
...
This will keep us from accidentally catching program-exiting exceptions
like KeyboardInterupt and SystemExit.
2018-12-16 15:03:19 -08:00
Chad Anderson
6ff7797eaa
Move verify up so approle and other methods work as intended.
2018-12-14 11:14:12 -08:00
Abhijeet Kasurde
013c42b14f
Misc typo fixes ( #49816 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2018-12-14 15:12:58 +05:30
Abhijeet Kasurde
e464c543f6
Add support for variable_{start,end}_string ( #49711 )
...
Template lookup plugin now support variable_start_string and
variable_end_string, just like template module.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2018-12-11 15:22:12 +05:30
Brian Coca
e17a2b502d
updated ff docs to include and deprecate skip ( #45167 )
...
* updated ff docs to include and deprecate skip
* fine tuned requires
* deprecate
* fixes
2018-12-05 12:08:30 -05:00
spike77453
bd35069495
Non-existent RR returns empty string ( #40680 )
2018-11-29 14:58:16 +00:00
Matt Martz
9773a1f289
Add a Singleton metaclass, use it with Display ( #48935 )
...
* Add a Singleton class, use it with Display
* update six import
* Move remaining failes to display singleton
* Fix rebase issues
* Singleton improvements
* Add code-smell for 'from __main__ import display'. ci_complete
* s/self/cls/g
* Add docs for no-main-display
* Address linting issues
* Add changelog fragment. ci_complete
* Implement reentrant lock for class instantiation in Singleton
* Add Display singleton porting guide
2018-11-20 17:06:51 -06:00
Martin Krizek
a80c25cbd9
Do not use str() on exceptions ( #46950 )
2018-11-09 07:59:30 +01:00
James E. King III
3a4ee965f5
Improve debug logging of filetree with path being walked and items found ( #47884 )
2018-11-07 21:32:23 +01:00
Gaël Lambert
0c95453a70
Doc: k8s_raw_module fixing typo K8S_AUTH_HOST -> K8S_AUTH_KEY_FILE ( #46947 )
...
The current doc of k8s_raw_module contain a copy paste of the env var name :
```
host :
Provide a URL for accessing the API. Can also be specified via K8S_AUTH_HOST environment variable.
key_file : Path to a key file used to authenticate with the API. Can also be specified via K8S_AUTH_HOST environment variable.
```
2018-11-05 12:13:57 -05:00
Dmitry Polyakovsky
5b27de41bd
fixed parentheses ( #48067 )
...
* fixed parentheses
* Add space after lookup
2018-11-05 12:42:54 +01:00
Will Thames
2b02e43614
Document template plugin's convert_data option
...
This is a useful option that I can never remember the name of
2018-11-02 16:09:51 -04:00
Toshio Kuratomi
9906daa83c
Fix password lookup for FIPS
...
Fixes #47297
2018-10-31 12:50:23 -07:00
Adrián López
a4b9af740a
cyberarkpassword: Typo in cquery parameter ( #47605 )
...
Removed extraneous quotes from docs
2018-10-27 11:40:58 +05:30
John Imison
5ba4e4411b
Adding headers to be returned for retrieved messages. ( #47375 )
2018-10-24 12:38:32 +01:00
Brian Coca
a5bd84758a
simpler/shorter option names for user
...
- internally we can keep long names, but user should not require extra typing
2018-10-12 11:23:42 -04:00
Johannes Brunswicker
b3063e37be
Convert results with to_native in consul_kv plugin ( #46551 )
...
* #42851 convert results with to_native
* added missing ANSIBLE_METADATA
* removed unneeded brackets
* * replaced to_native with to_text to avoid getting bytecode
2018-10-11 09:35:49 -04:00
markafarrell
4c169a1a6d
Enable HTTP Authentication for url lookup ( #43467 )
...
* Add url_username and url_password options for url lookup
* Update url.py
Fix documentation
* Fix options documentation
Default value for url_password and url_username is None not an empty string
* Add version added to documentation
* Break command over multiple lines to fix linting
* Fix more linting
* Update version_added in url.py to 2.8
2018-10-11 09:30:56 -04:00
Matt Clay
a11f631ee4
Python 3.8 collections compatibility fixes.
...
Includes a new pylint blacklist plugin to prevent regressions.
2018-10-08 11:26:37 -07:00
Colin McCarthy
84a40b71c2
Added (Define Values From CSV File) to example section ( #46620 )
...
Adding a new example demonstrating setting facts from a CSV file, from a real-world network use case.
2018-10-08 10:48:46 -05:00
Abhijeet Kasurde
25dfa78dc2
Add missing bracket in documentation ( #46564 )
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2018-10-06 02:48:07 -05:00
John Imison
c4cfa387ea
Lookup plugin for rabbitmq ( #44070 )
...
* Adding a basic get lookup for rabbitmq.
* Always return a list
* If content type is JSON, make accessible via dict.
* Fixed incorrect json.loads variable and missing raise
* Change to document returned data
* Fixed pep8 issues
* Adding integration testing
* Moving lookup intgration tests to new target
* New rabbitmq lookup plugin (#44070 ).
* New rabbitmq lookup plugin (#44070 ).
* PR review feedback updates
* Testing pika is installed
* Minor mods to tests
* Check if connection is already closed or closing
* Updated tests and connection testing
* PR review feedback updates
* PR review include ValueError in AnsibleError output
* Suggesting to use set_fact when using returned variable more than once.
* Cleaned up some tests, added some notes and handling connection closure on some exceptions.
* Removed finally statement and added some additional error handling.
* Added some additional error handling.
* PR review updates.
* Additional integration tests and removing return in finally
* Updated version
* Changing back to running tests on ubuntu.
* Additional tests
* Running tests on Ubuntu only
* Fixing syntax error
* Fixing ingtegration tests and a string/byte issue
* Removed non-required test and fixed BOTMETA
* Trying to fix integration test failure on ubuntu1404
* Some issues occured when handling messages from the queue with to_native. Switching to to_text resolved the issues.
* Renaming channel to queue (thanks dch). Disabling trusty tests.
2018-10-04 11:25:09 +10:00