2023-02-09 18:25:16 +00:00
|
|
|
<AlertBanner @type="warning" class="is-marginless" @title="Vault is sealed" />
|
2019-10-14 18:23:29 +00:00
|
|
|
{{#if this.showJoinForm}}
|
|
|
|
<div class="box is-marginless is-shadowless">
|
|
|
|
<h2 class="title is-5" data-test-join-header>
|
|
|
|
Join an existing Raft cluster
|
|
|
|
</h2>
|
|
|
|
<EditForm
|
|
|
|
@model={{compute (action "newModel")}}
|
|
|
|
@saveButtonText="Join"
|
|
|
|
@cancelButtonText="Back"
|
|
|
|
@onCancel={{action (mut this.showJoinForm) false}}
|
|
|
|
@onSave={{transition-to "vault.cluster.unseal"}}
|
|
|
|
@flashEnabled={{false}}
|
|
|
|
@includeBox={{false}}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2021-12-17 03:44:29 +00:00
|
|
|
<form onsubmit={{action "advanceFirstScreen"}} data-test-join-choice>
|
2019-10-14 18:23:29 +00:00
|
|
|
<div class="box is-marginless is-shadowless">
|
|
|
|
<h2 class="title is-6">
|
|
|
|
This server is configured to use Raft Storage.
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
How do you want to get started?
|
|
|
|
</h2>
|
2022-03-31 22:16:05 +00:00
|
|
|
<div class="vlt-radio is-block">
|
|
|
|
<RadioButton
|
|
|
|
id="join"
|
|
|
|
name="setup-pref"
|
|
|
|
@value="join"
|
|
|
|
@groupValue={{this.preference}}
|
|
|
|
@onChange={{fn (mut this.preference)}}
|
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
<label for="join"></label>
|
2019-10-14 18:23:29 +00:00
|
|
|
Join an existing Raft cluster
|
2022-03-31 22:16:05 +00:00
|
|
|
</div>
|
|
|
|
<div class="vlt-radio is-block">
|
|
|
|
<RadioButton
|
|
|
|
id="init"
|
|
|
|
name="setup-pref"
|
|
|
|
@value="init"
|
|
|
|
@groupValue={{this.preference}}
|
|
|
|
@onChange={{fn (mut this.preference)}}
|
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
<label for="init" data-test-join-init></label>
|
2019-10-14 18:23:29 +00:00
|
|
|
Create a new Raft cluster
|
2022-03-31 22:16:05 +00:00
|
|
|
</div>
|
2019-10-14 18:23:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="box is-marginless is-shadowless">
|
|
|
|
<button type="submit" class="button is-primary" data-test-next>
|
|
|
|
Next
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{/if}}
|