Felix Fontein
aec1826c34
Reformat everything with black.
...
I had to undo the u string prefix removals to not drop Python 2 compatibility.
That's why black isn't enabled in antsibull-nox.toml yet.
2025-04-28 10:48:00 +02:00
Felix Fontein
aa9e7b6dfb
Add isort and flake8 to CI ( #869 )
...
* Run isort.
* Clean up unused assignments.
* Add flake8 linting step.
2025-04-27 22:18:29 +02:00
Felix Fontein
33ef158b09
Fix linting errors.
2025-04-26 12:18:21 +02:00
Felix Fontein
4ce9745d35
Put appropriate module attributes into doc fragments.
2024-12-29 16:17:03 +01:00
Felix Fontein
942be86635
Reformat documentation with 'andebox yaml-doc' ( #828 )
...
* Reformat documentation with 'andebox yaml-doc'.
* Fix/improve.
* Remaining fixes.
* One more.
2024-12-28 16:00:28 +00:00
Felix Fontein
99d1521266
Use semantic markup ( #626 )
...
* Enable semantic markup.
* Use semantic markup.
* Break long lines.
* Add ignores.
* Use real option, not alias.
2023-06-24 10:00:56 +02:00
Felix Fontein
ddfb18b609
openssl_csr: fix bad tests, avoid accepting invalid crl_distribution_points records ( #560 )
...
* Improve error handling.
* Remove invalid tests.
* Add changelog fragment.
* Fix tests.
* Improve exception catching.
Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com >
* Prevent empty full_name.
* Fix condition. Make sure errors are caught.
* Add more checks.
Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com >
2023-01-02 14:52:59 +00:00
Felix Fontein
7bbe8f467c
Document attributes ( #526 )
...
* Add 'acme' action group attribute.
* Compatibility with older ansible-core releases.
* Fix typo.
* Document standard attributes.
* Improve docs.
* Add shortcuts for common combinations.
2022-11-06 21:10:56 +01:00
Felix Fontein
0e15d6cea8
Convert yes/no to true/false. ( #503 )
2022-08-23 21:33:29 +02:00
Felix Fontein
2dafef1fab
Fix docs ( #497 )
...
* Fix docs.
* Fix YAML.
* Prevent crashes with older pyyaml versions.
2022-08-04 20:02:56 +02:00
Felix Fontein
6bf3ef47e1
Move licenses to LICENSES/, use SPDX-License-Identifier, mention all licenses in galaxy.yml ( #491 )
...
* Add SPDX license identifiers, mention all licenses in galaxy.yml.
* Add default copyright headers.
* Add headers for documents.
* Fix/add more copyright statements.
* Add copyright / license info for vendored code.
* Add extra sanity test.
* Add changelog fragment.
* Comment PSF-2.0 license out in galaxy.yml for now.
* Remove colon after 'Copyright'.
* Avoid colon after 'Copyright' in lint script.
* Mention correct filename.
* Add BSD-3-Clause.
* Improve lint script.
* Update README.
* Symlinks...
2022-07-21 07:27:26 +02:00
Felix Fontein
62272296da
Small docs improvements ( #374 )
...
* Small improvements.
* Document behavior changes.
2022-01-10 12:05:09 +00:00
Felix Fontein
9658a34605
Replace ansible.module_utils._text by ansible.module_utils.common.text.converters. ( #253 )
2021-06-26 13:45:28 +02:00
Felix Fontein
376d7cde12
Avoid crash in check mode ( #243 )
...
* Do not let AnsibleModule crash when setting permissions on not yet existing files in check mode.
* Add tests.
* Fix bugs.
2021-06-02 16:44:26 +02:00
Felix Fontein
d8ccebce60
openssl_csr: allow to specify CRL distribution endpoints ( #167 )
...
* Improve error messages for name decoding (not all names appear in SANs).
* Refactor DN parsing, add relative DN parsing code.
* Allow to specify CRL distribution points.
* Add changelog fragment.
* Fix typo.
* Make sure value argument to x509.NameAttribute is a text.
* Update changelogs/fragments/167-openssl_csr-crl-distribution-points.yml
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru >
* Add example.
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru >
2021-01-26 09:57:40 +01:00
Felix Fontein
9792188b0e
Refactor openssl_csr module, add openssl_csr_pipe module ( #123 )
...
* Extract doc fragment from openssl_csr.
* Refactor openssl_csr module into backend + module.
* Add openssl_csr_pipe module.
* Add seealso references.
* ...
* Use /dev/stdin instead of -, which seems to be only supported by newer openssl versions.
* Bump version.
* DRY: use select_message_digest.
* Fix deprecation version in docs.
* Docs improvements.
* Improve argument spec handling for module backends.
* Linting.
* Fix linting problems by using kwargs.
2020-10-27 12:37:40 +01:00
Felix Fontein
233d1afc29
CVE-2020-25646: no_log=True missing for private key content options ( #125 )
...
* Mark private key content options as no_log (CVE-2020-25646.)
* Mention no_log for openssl_privatekey's return_content option.
* Add change PR's URL.
* Plural.
2020-10-13 14:14:05 +02:00
Felix Fontein
a2f36f426a
openssl_csr: catch errors on bad SANs ( #106 )
...
* Catch errors on bad SANs.
* Add changelog fragment.
* Adjust cryptography version and error message.
2020-09-08 04:24:30 +00:00
Felix Fontein
84342fce4e
openssl_csr: add support for name constraints extension ( #92 )
...
* Add support for name constraints extension to openssl_csr.
* Linting.
* Add tests.
* Fix IP address general name handling.
2020-08-18 12:23:37 +02:00
Felix Fontein
390cb1ccc1
Prepare release ( #75 )
...
* Improve changelog generator config.
* We don't have docs at that URL.
* Require Ansible(-base) 2.9.10 or newer.
Needed for deprecation syntax.
* Update all deprecations from Ansible 2.1x to community.crypto 2.0.0.
* Forgot to check in fixes.
* Shorten lines.
* Fix unit test requirements.
* Fix YAML strings which only had a closing quote.
* Galaxy neither likes uppercase nor spaces in tags.
* General README improvements.
* Add roadmap section to README.
* Next release will be 1.0.0.
* Extend using instructions.
* Tags with dashes are also not allowed.
* Fix changelog link.
2020-07-01 13:49:25 +02:00
Felix Fontein
109edecd78
Add version_added: 1.0.0 for all new features. ( #37 )
2020-06-29 15:21:35 +02:00
Jordan Borean
70683e540d
Support otherName in subAltName in CSR for UTF8 strings ( #53 )
...
* Support otherName in subAltName in CSR for UTF8 strings
* Remove uneeded docs and added changelog fragment
* Missed a merge conflict
* Fix up sanity issues and added test expectation
* Rename function
2020-06-23 22:38:42 +02:00
Felix Fontein
cb384443e4
cryptography backend: parse dirName, RID and otherName names ( #9 )
2020-06-21 22:47:48 +02:00
Toshio Kuratomi
cc45650e82
Use fqcn for modules listed in M() and seealso. ( #72 )
2020-06-17 10:29:18 +02:00
Felix Fontein
9e5969a644
Remove ANSIBLE_METADATA from modules. ( #49 )
2020-05-14 13:22:12 +02:00
Felix Fontein
9a096dd146
Refactor module_utils/crypto.py ( #27 )
...
* Refactor module_utils/crypto.py: split up into multiple smaller modules
* Remove superfluous files.
* Fix sanity errors.
* Move CRL entry dumping code to module_utils.
* Move obj2txt usage from CRL modules to module_utils/crpyto/cryptography_crl.
* Move generic I/O functions to plugins/module_utils/io.py.
* Add helper method for retrieving serial number of certificate.
* Add compatibility code into __init__.py.
* Fix syntax error, and add ignore.txt entries for non-empty __init__.
2020-05-12 11:19:42 +02:00
Felix Fontein
5a6858472c
Remove version_added from return values. ( #28 )
2020-04-13 23:59:40 +02:00
Felix Fontein
f7dbd61fa7
Rename openssl_certificate* to x509_certificate* ( #7 )
...
* Rename openssl_certificate* to x509_certificate*.
* Update README.
* Add redirects.
* Also print warnings when using Ansible 2.9.
* Adjust ignore-2.9.txt.
* Update documentation.
2020-04-06 14:34:24 +02:00
Felix Fontein
4d157b93ee
Use FQCN in examples. ( #12 )
2020-03-31 16:23:45 +02:00
Felix Fontein
70615300fb
Remove dependency on ansible.netcommon collection ( #2 )
...
* Get rid of ansible.netcommon requirement by integrating module_utils/compat/ipaddress.py.
* Reorder imports.
* Update ignore.txt for plugins/module_utils/compat/ipaddress.py.
* Linting (flake8 / pep8).
* Remove accidentally commited test for ansible/ansible#66920 .
2020-03-29 18:44:40 +02:00
Ansible Core Team
a9f45b4d5b
Initial commit
2020-03-09 13:11:34 +00:00