2018-06-26 21:35:47 +00:00
<SplashPage as |Page|>
<Page.header>
<h1 class="title is-4">
Disaster Recovery Secondary is enabled
</h1>
</Page.header>
<Page.content>
2018-04-03 14:16:57 +00:00
<nav class="tabs sub-nav is-marginless">
<ul>
<li class=" {{ if ( eq action '' ) 'is-active' }} ">
{{ # link-to 'vault.cluster.replication-dr-promote' ( query-params action = '' ) }}
2018-06-26 21:35:47 +00:00
Operation token
{{ / link-to }}
</li>
<li class=" {{ if ( eq action 'update' ) 'is-active' }} ">
{{ # link-to 'vault.cluster.replication-dr-promote' ( query-params action = 'update' ) }}
Update primary
2018-04-03 14:16:57 +00:00
{{ / link-to }}
</li>
<li class=" {{ if ( eq action 'promote' ) 'is-active' }} ">
{{ # link-to 'vault.cluster.replication-dr-promote' ( query-params action = 'promote' ) }}
Promote
{{ / link-to }}
</li>
</ul>
</nav>
{{ # if ( eq action 'promote' ) }}
2018-10-31 22:08:25 +00:00
<AlertBanner
@type="warning"
@title="Caution"
@message="Vault replication is not designed for active-active usage and enabling two performance primaries should never be done, as it can lead to data loss if they or their secondaries are ever reconnected."
@class="unseal-warning"
data-test-cluster-status
/>
2018-06-26 21:35:47 +00:00
<ReplicationActions
@replicationMode="dr"
@selectedAction="promote"
@model= {{ model }}
/>
2018-04-03 14:16:57 +00:00
{{ / if }}
{{ # if ( eq action 'update' ) }}
2018-06-26 21:35:47 +00:00
<ReplicationActions
@replicationMode="dr"
@selectedAction="updatePrimary"
@model= {{ model }}
/>
2018-04-03 14:16:57 +00:00
{{ / if }}
{{ # unless action }}
2018-06-26 21:35:47 +00:00
<ShamirFlow
@action="generate-dr-operation-token"
@buttonText="Promote cluster"
@fetchOnInit=true
@generateAction=true
>
<p>
2018-04-03 14:16:57 +00:00
Generate an Operation Token by entering a portion of the master key.
Once all portions are entered, the generated operation token may be used to manage your Seondary Disaster Recovery cluster.
</p>
2018-06-26 21:35:47 +00:00
</ShamirFlow>
2018-04-03 14:16:57 +00:00
{{ / unless }}
2018-06-26 21:35:47 +00:00
</Page.content>
</SplashPage>