729f5d286c
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: I6e76d095bb0f78ef4962f1150da94e4d4153a374
32 lines
885 B
Puppet
32 lines
885 B
Puppet
# == Class: barbican::plugins::simple_crypto
|
|
#
|
|
# Sets up Barbican simple_crypto plugin
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*simple_crypto_plugin_kek*]
|
|
# (optional) Key encryption key to be used by Simple Crypto Plugin.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# [*global_default*]
|
|
# (optional) set plugin as global default
|
|
# Defaults to false
|
|
#
|
|
class barbican::plugins::simple_crypto (
|
|
$simple_crypto_plugin_kek = $facts['os_service_default'],
|
|
$global_default = false,
|
|
) {
|
|
|
|
include barbican::deps
|
|
|
|
barbican_config {
|
|
'secretstore:simple_crypto/secret_store_plugin': value => 'store_crypto';
|
|
'secretstore:simple_crypto/crypto_plugin': value => 'simple_crypto';
|
|
'secretstore:simple_crypto/global_default': value => $global_default;
|
|
}
|
|
|
|
barbican_config {
|
|
'simple_crypto_plugin/kek': value => $simple_crypto_plugin_kek, secret => true;
|
|
}
|
|
}
|