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

Adding an option to disable creating keys when enabling hiera-eyaml and #42

Merged
merged 1 commit into from
Jan 6, 2015

Conversation

mattkirby
Copy link
Contributor

managing the keys files. Adding a default owner and group for file
resources in eyaml.pp to reduce duplication.

@danieldreier
Copy link
Contributor

+1, would help us in ops because without this flexibility managing keys from outside the module is much more awkward; we end up with a conflicting file resource.

file { "${confdir}/keys/private_key.pkcs7.pem":
ensure => file,
mode => '0600',
require => Exec['createkeys'],
Copy link
Member

Choose a reason for hiding this comment

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

This dependency will fail if create_keys => false, manage_keys => true

Is that even a valid use case, though?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably not. I will update it.

@mattkirby
Copy link
Contributor Author

I have removed the manage_keys option since it didn't make sense and instead manage the file resource if the keys are created. The create_keys option has been documented. I've also updated the commit message to be more descriptive.

@@ -34,4 +34,6 @@
$backends = ['yaml']
$logger = 'console'
$eyaml_extension = undef
$create_keys = true
$manage_keys = true
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove this line also, now that it's not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I have removed it now.

Without this change hiera-eyaml generates pkcs7 keys automatically if
the eyaml backend is enabled. This adds a parameter called create_keys
to allow disabling key creation. The parameter defaults to true, so the
current module behavior is preserved. If set to false you are able to
manage the keys outside of this module. Adding a default owner and group
for file resources in eyaml.pp to reduce duplication.
hunner added a commit that referenced this pull request Jan 6, 2015
Adding an option to disable creating keys when enabling hiera-eyaml and
@hunner hunner merged commit 29ca821 into voxpupuli:master Jan 6, 2015
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.

3 participants