Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cipher and hash options to luks_create #97

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

Arnoways
Copy link
Contributor

@Arnoways Arnoways commented Aug 4, 2020

SUMMARY

Pull request to Add the "cipher" and "hash" option to luks_create, allowing the user to specify the encryption they want.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

luks_device

ADDITIONAL INFORMATION

These options will only be used at LUKS container creation, since they are coming from luksFormat in cryptsetup.
I refered to the manpage to write the documentation, I hope it will fit into the module.

First PR here, I'm obviously open to critics, suggestions etc... 😃

Copy link
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior of only using the new values on creation is ok, that's also what is currently done for keysize. There are some minor details I noticed, I added comments for them.

In any case, you need a changelog fragment (category minor_changes).

plugins/modules/luks_device.py Outdated Show resolved Hide resolved
plugins/modules/luks_device.py Outdated Show resolved Hide resolved
plugins/modules/luks_device.py Outdated Show resolved Hide resolved
Copy link
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felixfontein
Copy link
Contributor

CC @mulatinho you might also be interested in this.

@felixfontein felixfontein mentioned this pull request Aug 9, 2020
@felixfontein felixfontein merged commit e4c12fa into ansible-collections:main Aug 13, 2020
@felixfontein
Copy link
Contributor

@Arnoways thanks a lot for contributing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants