Puppet Class: tripleo::profile::base::barbican::backends
- Defined in:
- manifests/profile/base/barbican/backends.pp
Overview
Copyright 2017 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Class: tripleo::profile::base::barbican::backends
Barbican’s secret store plugin profile for tripleo
Parameters
- simple_crypto_backend_enabled
-
(Optional) Whether the simple crypto backend is enabled or not. This is dynamically set via t-h-t. Defaults to lookup(‘barbican_backend_simple_crypto_enabled’, undef, undef, false)
- dogtag_backend_enabled
-
(Optional) Whether the Dogtag backend is enabled or not. This is dynamically set via t-h-t. Defaults to lookup(‘barbican_backend_dogtag_enabled’, undef, undef, false)
- p11_crypto_backend_enabled
-
(Optional) Whether the pkcs11 crypto backend is enabled or not. This is dynamically set via t-h-t. Defaults to lookup(‘barbican_backend_pkcs11_crypto_enabled’, undef, undef, false)
- kmip_backend_enabled
-
(Optional) Whether the KMIP backend is enabled or not. This is dynamically set via t-h-t. Defaults to lookup(‘barbican_backend_kmip_enabled’, undef, undef, false)
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'manifests/profile/base/barbican/backends.pp', line 41
class tripleo::profile::base::barbican::backends (
$simple_crypto_backend_enabled = lookup('barbican_backend_simple_crypto_enabled', undef, undef, false),
$dogtag_backend_enabled = lookup('barbican_backend_dogtag_enabled', undef, undef, false),
$p11_crypto_backend_enabled = lookup('barbican_backend_pkcs11_crypto_enabled', undef, undef, false),
$kmip_backend_enabled = lookup('barbican_backend_kmip_enabled', undef, undef, false),
) {
if $simple_crypto_backend_enabled {
include barbican::plugins::simple_crypto
$backend1 = 'simple_crypto'
} else {
$backend1 = undef
}
if $dogtag_backend_enabled {
include barbican::plugins::dogtag
$backend2 = 'dogtag'
} else {
$backend2 = undef
}
if $p11_crypto_backend_enabled {
include barbican::plugins::p11_crypto
$backend3 = 'pkcs11'
} else {
$backend3 = undef
}
if $kmip_backend_enabled {
include barbican::plugins::kmip
$backend4 = 'kmip'
} else {
$backend4 = undef
}
$enabled_backends_list = delete_undef_values([$backend1, $backend2, $backend3, $backend4])
$enabled_secret_stores = join($enabled_backends_list, ',')
}
|