Commit 448b1f06 authored by Noelle Daley's avatar Noelle Daley
Browse files

whitespace

parent 927c5083
Showing with 39 additions and 58 deletions
+39 -58
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
</p.levelLeft> </p.levelLeft>
</PageHeader> </PageHeader>
<form <form onsubmit={{
onsubmit={{
action action
"onSubmit" "onSubmit"
"enable" "enable"
...@@ -31,30 +30,22 @@ ...@@ -31,30 +30,22 @@
ca_path=ca_path ca_path=ca_path
replicationMode=replicationMode replicationMode=replicationMode
) )
}} }}>
>
<div class="box is-sideless is-fullwidth is-marginless"> <div class="box is-sideless is-fullwidth is-marginless">
{{message-error errors=errors}} {{message-error errors=errors}}
{{#if initialReplicationMode}} {{#if initialReplicationMode}}
{{#if (eq initialReplicationMode 'dr')}} {{#if (eq initialReplicationMode 'dr')}}
<h3 class="title is-flex-center is-5 is-marginless"> <h3 class="title is-flex-center is-5 is-marginless">
<Icon <Icon @size="xl" aria-hidden="true" @glyph="replication" />
@size="xl"
aria-hidden="true"
@glyph="replication"
/>
Disaster Recovery (DR) Replication Disaster Recovery (DR) Replication
</h3> </h3>
<p class="help has-text-grey-dark"> <p class="help has-text-grey-dark">
DR is designed to protect against catastrophic failure of entire clusters. Secondaries do not forward service requests (until they are elected and become a new primary). DR is designed to protect against catastrophic failure of entire clusters. Secondaries do not forward
service requests (until they are elected and become a new primary).
</p> </p>
{{else if (eq initialReplicationMode 'performance')}} {{else if (eq initialReplicationMode 'performance')}}
<h3 class="title is-flex-center is-5 is-marginless"> <h3 class="title is-flex-center is-5 is-marginless">
<Icon <Icon @size="xl" aria-hidden="true" @glyph="perf-replication" />
@size="xl"
aria-hidden="true"
@glyph="perf-replication"
/>
Performance Replication Performance Replication
</h3> </h3>
{{#if (not (has-feature "Performance Replication"))}} {{#if (not (has-feature "Performance Replication"))}}
...@@ -63,7 +54,8 @@ ...@@ -63,7 +54,8 @@
</p> </p>
{{else}} {{else}}
<p class="help has-text-grey-dark"> <p class="help has-text-grey-dark">
Performance replication scales workloads horizontally across clusters to make requests faster. Local secondaries handle read requests but forward writes to the primary to be handled. Performance replication scales workloads horizontally across clusters to make requests faster. Local
secondaries handle read requests but forward writes to the primary to be handled.
</p> </p>
{{/if}} {{/if}}
{{/if}} {{/if}}
...@@ -72,22 +64,20 @@ ...@@ -72,22 +64,20 @@
<label for="replication-mode" class="is-label is-block"> <label for="replication-mode" class="is-label is-block">
Type of replication Type of replication
</label> </label>
In both Performance and Disaster Recovery (DR) Replication, secondaries share the underlying configuration, policies, and supporting secrets as their primary cluster. In both Performance and Disaster Recovery (DR) Replication, secondaries share the underlying configuration,
policies, and supporting secrets as their primary cluster.
</p> </p>
<div class="columns"> <div class="columns">
<div class="column is-flex"> <div class="column is-flex">
<label for="dr" class="box-label is-column {{if (eq replicationMode 'dr') 'is-selected'}}"> <label for="dr" class="box-label is-column {{if (eq replicationMode 'dr') 'is-selected'}}">
<div> <div>
<h3 class="box-label-header title is-6"> <h3 class="box-label-header title is-6">
<Icon <Icon @size="xl" aria-hidden="true" @glyph="replication" />
@size="xl"
aria-hidden="true"
@glyph="replication"
/>
Disaster Recovery (DR) Disaster Recovery (DR)
</h3> </h3>
<p class="help has-text-grey-dark"> <p class="help has-text-grey-dark">
DR is designed to protect against catastrophic failure of entire clusters. Secondaries do not forward service requests (until they are elected and become a new primary). DR is designed to protect against catastrophic failure of entire clusters. Secondaries do not forward
service requests (until they are elected and become a new primary).
</p> </p>
</div> </div>
<div> <div>
...@@ -102,15 +92,12 @@ ...@@ -102,15 +92,12 @@
</label> </label>
</div> </div>
<div class="column is-flex"> <div class="column is-flex">
<label for="performance" class="box-label is-column {{if (eq replicationMode 'performance') 'is-selected'}}"> <label for="performance"
class="box-label is-column {{if (eq replicationMode 'performance') 'is-selected'}}">
<div> <div>
<h3 class="box-label-header title is-6"> <h3 class="box-label-header title is-6">
<Icon <Icon @size="xl" aria-hidden="true" @glyph="perf-replication" />
@size="xl" Performance
aria-hidden="true"
@glyph="perf-replication"
/>
Performance
</h3> </h3>
{{#if (not (has-feature "Performance Replication"))}} {{#if (not (has-feature "Performance Replication"))}}
<p class="help has-text-grey-dark"> <p class="help has-text-grey-dark">
...@@ -118,7 +105,8 @@ ...@@ -118,7 +105,8 @@
</p> </p>
{{else}} {{else}}
<p class="help has-text-grey-dark"> <p class="help has-text-grey-dark">
Performance Replication scales workloads horizontally across clusters to make requests faster. Local secondaries handle read requests but forward writes to the primary to be handled. Performance Replication scales workloads horizontally across clusters to make requests faster. Local
secondaries handle read requests but forward writes to the primary to be handled.
</p> </p>
{{/if}} {{/if}}
</div> </div>
...@@ -145,23 +133,18 @@ ...@@ -145,23 +133,18 @@
</label> </label>
<div class="field is-expanded"> <div class="field is-expanded">
<div class="control select is-fullwidth"> <div class="control select is-fullwidth">
<select onchange={{action (mut mode) value="target.value"}} id="replication-mode" name="replication-mode" data-test-replication-cluster-mode-select=true> <select onchange={{action (mut mode) value="target.value"}} id="replication-mode" name="replication-mode"
data-test-replication-cluster-mode-select=true>
{{#each (array 'primary' 'secondary') as |modeOption|}} {{#each (array 'primary' 'secondary') as |modeOption|}}
<option <option selected={{if mode (eq mode modeOption) (eq modeOption 'primary')}} value={{modeOption}}>
selected={{if mode (eq mode modeOption) (eq modeOption 'primary')}}
value={{modeOption}}
>
{{modeOption}} {{modeOption}}
</option> </option>
{{/each}} {{/each}}
</select> </select>
</div> </div>
{{#if (eq mode 'secondary')}} {{#if (eq mode 'secondary')}}
<AlertInline <AlertInline @class="has-top" @type="warning"
@class="has-top" @message="This will immediately clear all data in this cluster!" />
@type="warning"
@message="This will immediately clear all data in this cluster!"
/>
{{/if}} {{/if}}
</div> </div>
{{#if (eq mode 'primary')}} {{#if (eq mode 'primary')}}
...@@ -171,7 +154,7 @@ ...@@ -171,7 +154,7 @@
Primary cluster address <em class="is-optional">(optional)</em> Primary cluster address <em class="is-optional">(optional)</em>
</label> </label>
<div class="control"> <div class="control">
{{input class="input" id="primary_cluster_addr" name="primary_cluster_addr" value=primary_cluster_addr}} {{input class="input" id="primary_cluster_addr" name="primary_cluster_addr" value=primary_cluster_addr}}
</div> </div>
<p class="help has-text-grey"> <p class="help has-text-grey">
Overrides the cluster address that the primary gives to secondary nodes. Overrides the cluster address that the primary gives to secondary nodes.
...@@ -201,7 +184,8 @@ ...@@ -201,7 +184,8 @@
{{#if showExplanation}} {{#if showExplanation}}
<p> <p>
When running as a DR Secondary Vault is read only. When running as a DR Secondary Vault is read only.
For this reason, we don't allow other Replication modes to operate at the same time. This cluster is also For this reason, we don't allow other Replication modes to operate at the same time. This cluster is
also
currently operating as a Performance {{capitalize cluster.performance.modeForUrl}}. currently operating as a Performance {{capitalize cluster.performance.modeForUrl}}.
</p> </p>
{{/if}} {{/if}}
...@@ -217,14 +201,16 @@ ...@@ -217,14 +201,16 @@
</div> </div>
<div class="field"> <div class="field">
<label for="primary_api_addr" class="is-label"> <label for="primary_api_addr" class="is-label">
Primary API address {{#unless (and token (not tokenIncludesAPIAddr))}}<em class="is-optional">(optional)</em>{{/unless}} Primary API address {{#unless (and token (not tokenIncludesAPIAddr))}}<em
class="is-optional">(optional)</em>{{/unless}}
</label> </label>
<div class="control"> <div class="control">
{{input value=primary_api_addr id="primary_api_addr" name="primary_api_addr" class="input"}} {{input value=primary_api_addr id="primary_api_addr" name="primary_api_addr" class="input"}}
</div> </div>
<p class="help {{if (and token (not tokenIncludesAPIAddr)) 'is-danger' 'has-text-grey'}}"> <p class="help {{if (and token (not tokenIncludesAPIAddr)) 'is-danger' 'has-text-grey'}}">
{{#if (and token (not tokenIncludesAPIAddr))}} {{#if (and token (not tokenIncludesAPIAddr))}}
The supplied token does not contain an embedded address for the primary cluster. Please enter the primary cluster's API address (normal Vault address). The supplied token does not contain an embedded address for the primary cluster. Please enter the
primary cluster's API address (normal Vault address).
{{else}} {{else}}
Set this to the API address (normal Vault address) to override the Set this to the API address (normal Vault address) to override the
value embedded in the token. value embedded in the token.
...@@ -239,7 +225,8 @@ ...@@ -239,7 +225,8 @@
{{input value=ca_file id="ca_file" name="ca_file" class="input"}} {{input value=ca_file id="ca_file" name="ca_file" class="input"}}
</div> </div>
<p class="help has-text-grey"> <p class="help has-text-grey">
Specifies the path to a CA root file (PEM format) that the secondary can use when unwrapping the token from the primary. Specifies the path to a CA root file (PEM format) that the secondary can use when unwrapping the token
from the primary.
</p> </p>
</div> </div>
<div class="field"> <div class="field">
...@@ -250,11 +237,13 @@ ...@@ -250,11 +237,13 @@
{{input value=ca_path id="ca_path" name="ca_file" class="input"}} {{input value=ca_path id="ca_path" name="ca_file" class="input"}}
</div> </div>
<p class="help has-text-grey"> <p class="help has-text-grey">
Specifies the path to a CA root directory containing PEM-format files that the secondary can use when unwrapping the token from the primary. Specifies the path to a CA root directory containing PEM-format files that the secondary can use when
unwrapping the token from the primary.
</p> </p>
</div> </div>
<p> <p>
Note: If both <code>CA file</code> and <code>CA path</code> are not given, they default to system CA roots. Note: If both <code>CA file</code> and <code>CA path</code> are not given, they default to system CA
roots.
</p> </p>
{{/if}} {{/if}}
{{else}} {{else}}
...@@ -282,11 +271,7 @@ ...@@ -282,11 +271,7 @@
</PageHeader> </PageHeader>
<div class="box is-sideless is-fullwidth is-marginless"> <div class="box is-sideless is-fullwidth is-marginless">
<h3 class="title is-flex-center is-5 is-marginless"> <h3 class="title is-flex-center is-5 is-marginless">
<Icon <Icon @size="xl" aria-hidden="true" @glyph="replication" />
@size="xl"
aria-hidden="true"
@glyph="replication"
/>
Disaster Recovery (DR) Disaster Recovery (DR)
</h3> </h3>
{{#if cluster.dr.replicationEnabled}} {{#if cluster.dr.replicationEnabled}}
...@@ -311,11 +296,7 @@ ...@@ -311,11 +296,7 @@
</div> </div>
<div class="box is-bottomless is-fullwidth is-marginless"> <div class="box is-bottomless is-fullwidth is-marginless">
<h3 class="title is-flex-center is-5 is-marginless"> <h3 class="title is-flex-center is-5 is-marginless">
<Icon <Icon @size="xl" aria-hidden="true" @glyph="perf-replication" />
@size="xl"
aria-hidden="true"
@glyph="perf-replication"
/>
Performance Performance
</h3> </h3>
{{#if cluster.dr.replicationEnabled}} {{#if cluster.dr.replicationEnabled}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment