persist ha slot and make it available to hsmproxy
This commit is contained in:
parent
5615bb7490
commit
73a9aea348
4 changed files with 26 additions and 2 deletions
|
@ -0,0 +1,8 @@
|
|||
VirtualToken = {
|
||||
VirtualToken00Label = sc_ha;
|
||||
VirtualToken00SN = 1462371088;
|
||||
VirtualToken00Members = 462371088,462344047;
|
||||
}
|
||||
HASynchronize = {
|
||||
sc_ha = 1;
|
||||
}
|
8
eumd-common/overlay/etc/Chrystoki.conf.d/50-ha-slot.conf
Normal file
8
eumd-common/overlay/etc/Chrystoki.conf.d/50-ha-slot.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
VirtualToken = {
|
||||
VirtualToken00Label = sc_ha;
|
||||
VirtualToken00SN = 1462371088;
|
||||
VirtualToken00Members = 462371088,462344047;
|
||||
}
|
||||
HASynchronize = {
|
||||
sc_ha = 1;
|
||||
}
|
|
@ -147,13 +147,13 @@ class eidas_metadata_key {
|
|||
|
||||
class eidas_hsm_client($luna_version="6.2") {
|
||||
$pkcs11pin = hiera('pkcs11pin',"")
|
||||
sunet::snippets::reinstall::keep {'/etc/luna': } ->
|
||||
sunet::snippets::reinstall::keep {['/etc/luna','/etc/Chrystoki.conf.d']: } ->
|
||||
file {['/etc/luna','/etc/luna/cert']: ensure => directory } ->
|
||||
sunet::docker_run {"${name}_hsmproxy":
|
||||
hostname => "${::fqdn}",
|
||||
image => 'docker.sunet.se/luna-client',
|
||||
imagetag => $luna_version,
|
||||
volumes => ['/dev/log:/dev/log','/etc/luna/cert:/usr/safenet/lunaclient/cert'],
|
||||
volumes => ['/dev/log:/dev/log','/etc/Chrystoki.conf.d:/etc/Chrystoki.conf.d','/etc/luna/cert:/usr/safenet/lunaclient/cert'],
|
||||
env => ["PKCS11PIN=${pkcs11pin}"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
VirtualToken = {
|
||||
VirtualToken00Label = sc_ha;
|
||||
VirtualToken00SN = 1462371088;
|
||||
VirtualToken00Members = 462371088,462344047;
|
||||
}
|
||||
HASynchronize = {
|
||||
sc_ha = 1;
|
||||
}
|
Loading…
Add table
Reference in a new issue