Commit Graph

618 Commits (d9698a6effd5ca71536547bf2a1c6bdcb7550091)

Author SHA1 Message Date
Olivier Clavel 2511932158
Self promotion for openssl_privatekey (#88)
* Self promotion for ansible modules

ACME private keys can be created with openssl_privatekey module

* Fix module link. Rewrite to push module forward
2020-07-17 14:44:28 +02:00
Felix Fontein a19756ee77
Fix acme_inspect problem with Python 3.5 (#87)
* Fix JSON loading problem with Python 3.5.

* Add changelog fragment.

* Enable 3.5 tests.
2020-07-13 21:10:23 +02:00
Baptiste Mille-Mathias 0786e93bb9
Add SNI support to module get_certificates (#84)
* get_certificate - Add support of SNI

For python versions supporting `create_default_context` support SNI by using low-level
SSLContext.wrap_socket().getpeercert().

Add also more information in the error message

fixes #69

* Make sure default CA certificates are not loaded when ca_cert is specified.

* Refactor to combine common code.

* Update changelogs/fragments/get_certificate-add_support_for_SNI.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-07-13 18:05:58 +02:00
Baptiste Mille-Mathias c43d7c8725
Run tests for missing python versions (#85)
* Add unit tests and cloud on python 2.6

* Add all python 3.x we support

Co-authored-by: Felix Fontein <felix@fontein.de>

* disable 3.5 because of acme_inspect

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2020-07-12 18:50:56 +02:00
Felix Fontein 1f3a402b23 Make sure changelogs/fragments/ is kept. 2020-07-12 11:29:45 +02:00
Baptiste Mille-Mathias f404031d01
Fix FQCNs (#83) 2020-07-08 21:37:33 +02:00
Felix Fontein 86c2878d43 Next (tentative) release: 1.1.0. 2020-07-03 13:52:59 +02:00
Felix Fontein dbda650bbd
Release 1.0.0 (#82)
* Add release notes.

* Create changelog for 1.0.0.
2020-07-03 13:35:31 +02:00
Felix Fontein 640839fa7c master -> main 2020-07-02 07:23:28 +02:00
Abhijeet Kasurde 5b8cd4944b
x509_certificate: Update docs for macOS 10.15 requirements (#78)
selfsigned_not_after and ownca_not_after values for macOS 10.15,
can be +825d. Updated the docs accordingly.

Migrated from ansible/ansible#64563

Thanks to Sironheart

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-07-01 15:28:50 +02:00
Felix Fontein 79f4d869ad
Fix sanity test errors. (#79) 2020-07-01 14:16:52 +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 ca58a1d2ee Remove no longer necessary hack for stable-2.9. 2020-06-23 13:38:14 +02:00
Felix Fontein cb384443e4
cryptography backend: parse dirName, RID and otherName names (#9) 2020-06-21 22:47:48 +02:00
Felix Fontein 8651a6af6c
Prepare for stable-2.10 branching of ansible-base (#71)
* Prepare for 2.11.

* Fix script.

* Add some Ansible 2.10 runs.
2020-06-17 23:00:30 +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 ff17a341af
Prepare for devel version bump. (#70) 2020-06-16 21:16:30 +02:00
Felix Fontein 54e9de26b3
Porting guide (#67)
* Add changelog fragments for community.crypto related things from ansible/ansible's 2.10 porting guide.

* Update gitignore.
2020-06-15 22:26:17 +02:00
Felix Fontein 15288753cb
Disable extra changelog fragment lint sanity test. (#68) 2020-06-14 17:43:49 +02:00
Sloane Hertel bbb48b6961
Remove unused field from meta/runtime.yml (#66) 2020-06-10 22:25:58 +02:00
Felix Fontein ddcbb04432
Adjust tests/sanity/ignore-2.10.txt to deprecation changes. (#65)
ci_complete
2020-06-10 06:33:40 +00:00
Felix Fontein 79fd1397a9
antsibull-changelog moved to its own repo. (#62) 2020-05-30 01:26:56 +02:00
Felix Fontein 1e1c101910
Adjust to stricter ansible-test sanity tests. (#61) 2020-05-29 07:57:12 +02:00
Felix Fontein 724cdbdbe8
Support action groups (#60)
* Prepare for action groups PR (ansible/ansible#67291).

* Remove removal_date (as removal_version is already specified).
2020-05-29 00:06:17 +02:00
Felix Fontein 68d56c7709
Adjust hack to only consider OSX with Anible 2.9. (#59) 2020-05-27 01:28:13 +02:00
Felix Fontein 06891337d1
Use pypi antsibull package. (#58) 2020-05-27 01:10:49 +02:00
Felix Fontein 3fae4be64d
ansibulled -> antsibull. (#57) 2020-05-26 22:58:36 +02:00
Felix Fontein 5f47780f80
Rename meta/routing.yml -> meta/runtime.yml. (#56) 2020-05-26 22:06:38 +02:00
Lucas Hoffmann a3b5ff9f4f
Fix docs of openssh_keypair (#55)
The documentation diverted from the actual behaviour, the comment field is
actually considered when checking the state of an existing key.

Fixes #54.
2020-05-23 13:42:41 +02:00
Felix Fontein 46d881407e galaxy.yml should only have license_file 2020-05-19 22:26:32 +02:00
Felix Fontein f77a03f70e
Smoketests are not needed in collections, and none exist in this collection anyway. (#52) 2020-05-19 09:02:53 +02:00
Andrew Klychkov 6da3125720
Fix example formatting (#51) 2020-05-16 18:53:29 +03:00
Felix Fontein a8fb38f74a
Add extra sanity tests (#43)
* Prepare extra sanity tests.

* Run some extra sanity tests.

* Linting.

* Experimenting

* Linting.

* Run tests in docker container.

* Improve run code.

* Use requests instead of Ansible code (which needs to be installed first).

* Refactor and add more debugging.

* More ls.

* More ls.

* More ls in container.

* Copy cwd into container.

* Improve container handling.

* Make tests configurable.

* Using proper argument parser.

* Add colors.

* Allow to disable test.

* Always run all tests for now. (Change detection needs to know about git I think).

* Use argument parser for main executable. Force colors for CI.

* Allow to specify targets.

* Linting.

* Switch to ansibulled-changelog.

* Use runner from community.internal_test_tools (current dev branch for runner).

* Clone official repository instead of my fork/branch.
2020-05-16 12:05:03 +00:00
Felix Fontein caf2ee2d6a
Add tags for Galaxy (#42)
* Add tags for Galaxy

* Set build_ignore.
2020-05-15 16:23:58 +01:00
Felix Fontein de3c99eeac
Add support for CRLs in DER format. (#29) 2020-05-15 09:57:07 +02:00
Felix Fontein 9e5969a644
Remove ANSIBLE_METADATA from modules. (#49) 2020-05-14 13:22:12 +02:00
Felix Fontein f2aa6f3ae8
Ignore invalid deprecation version numbers. (#48) 2020-05-13 23:45:21 +02:00
Felix Fontein eadac87501
Add Fedora 32 to CI. (#47) 2020-05-12 21:31:41 +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 43b6765c00
[TEMP] Switch to Ansible 2.9 from ansible/ansible#69377 which should fix change detection for 2.9. (#45) 2020-05-08 08:27:08 +02:00
Felix Fontein 970d44a25c
Avoid sanity excludes so that users can run ansible-test sanity --docker and it usually passes. (#41) 2020-05-01 12:21:15 +02:00
Felix Fontein 4f7e2c0d2e
Update CI from RHEL 8.1 to 8.2. (#40) 2020-04-30 22:33:58 +02:00
Felix Fontein cb61069ce3 Fix repo name. 2020-04-25 11:31:36 +02:00
Felix Fontein 9cf994f2eb Adjust coverage part in CI for Ansible 2.9. 2020-04-24 14:19:33 +02:00
Felix Fontein 5686c74e76
Hack, v2. (#36)
ci_complete
2020-04-23 22:48:52 +02:00
Felix Fontein 1289e56ab1
Hack: install latest cryptography + pyOpenSSL versions on macOS until https://github.com/ansible/ansible/issues/68701 has been fixed (#35) 2020-04-23 22:02:56 +02:00
John R Barker d88c90b148
Correct codecov token 2020-04-23 20:02:14 +01:00
Felix Fontein 9204687835
Fix URLs (: -> /). (#33) 2020-04-17 17:29:50 +02:00