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

fact for datasets/volumes #73

Open
tuxmaster5000 opened this issue Feb 15, 2024 · 0 comments
Open

fact for datasets/volumes #73

tuxmaster5000 opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tuxmaster5000
Copy link

Use Case

If you want to create encrypted datasets/volumes automatically, the key material may only be generated during the initial setup.
This requires a fact that makes it possible to test for the presence of datasets/volumes in a pool so that the key material is not generated again.

Describe the Solution You Would Like

An simple puppet like this:
$facts['zfs']['']['<volume/dataset name>']
Optional the fact can provide additional information about the pool and the volumes/datasets
So that this code will work:

if $facts['zfs']['foo']['bar'] {
exec { 'create_key_material':
....
}
zfs { 'bar':
...
require => Exec[...]
}
}

Describe Alternatives You've Considered

Do this manual on the server, because the key material will only present temporary on an ram disk on the server.
So the "creates" of exec will not an option.

@tuxmaster5000 tuxmaster5000 added the enhancement New feature or request label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant