1d28feffaSChris Hillery<!--
2d28feffaSChris Hillery     Copyright 2020-Present Couchbase, Inc.
3d28feffaSChris Hillery
491e43c8dSBlair Watt     Use of this software is governed by the Business Source License included
591e43c8dSBlair Watt     in the file licenses/BSL-Couchbase.txt.  As of the Change Date specified
691e43c8dSBlair Watt     in that file, in accordance with the Business Source License, use of this
791e43c8dSBlair Watt     software will be governed by the Apache License, Version 2.0, included in
891e43c8dSBlair Watt     the file licenses/APL2.txt.
9d28feffaSChris Hillery-->
10d28feffaSChris Hillery
116dbb2d4cSPavel Blagodov<div [formGroup]="group">
126dbb2d4cSPavel Blagodov  <div class="formrow">
136dbb2d4cSPavel Blagodov    <div class="row">
146dbb2d4cSPavel Blagodov      <label for="setup_hostname">Host Name / IP Address</label>
156dbb2d4cSPavel Blagodov      <small class="text-smaller">Fully-qualified domain name</small>
166dbb2d4cSPavel Blagodov    </div>
176dbb2d4cSPavel Blagodov    <input
186dbb2d4cSPavel Blagodov       type="text"
196dbb2d4cSPavel Blagodov       autocorrect="off"
206dbb2d4cSPavel Blagodov       spellcheck="false"
216dbb2d4cSPavel Blagodov       autocapitalize="off"
226dbb2d4cSPavel Blagodov       name="hostname"
236dbb2d4cSPavel Blagodov       id="setup_hostname"
246dbb2d4cSPavel Blagodov       [mnFocus]="focusFieldSubject"
25173629f5SPavel Blagodov       mnName="hostname"
266dbb2d4cSPavel Blagodov       formControlName="hostname">
276dbb2d4cSPavel Blagodov    <div
286dbb2d4cSPavel Blagodov       class="error error-form"
2984c4c071SPavel Blagodov       [hidden]="!(postNodeInitHttp.error | async)?.errors?.hostname">
3084c4c071SPavel Blagodov      {{(postNodeInitHttp.error | async)?.errors?.hostname}}
316dbb2d4cSPavel Blagodov    </div>
329d2bd590STimofey Barmin    <div
339d2bd590STimofey Barmin       class="error error-form"
349d2bd590STimofey Barmin       [hidden]="!(postClusterInitHttp.error | async)?.errors?.hostname">
359d2bd590STimofey Barmin      {{(postClusterInitHttp.error | async)?.errors?.hostname}}
369d2bd590STimofey Barmin    </div>
376dbb2d4cSPavel Blagodov  </div>
386dbb2d4cSPavel Blagodov
3919f61922SMatthew Dawber  <div
406dbb2d4cSPavel Blagodov     formGroupName="hostConfig"
416dbb2d4cSPavel Blagodov     *ngIf="isHostCfgEnabled && (isEnterprise | async)">
4219f61922SMatthew Dawber    <div class="formrow">
436dbb2d4cSPavel Blagodov      <input
446dbb2d4cSPavel Blagodov         type="checkbox"
456dbb2d4cSPavel Blagodov         id="for-node-encryption"
466dbb2d4cSPavel Blagodov         formControlName="nodeEncryption">
4730ae8a5bSrobashcom      <label for="for-node-encryption" class="margin-right-quarter">
48b33e393dSRob Ashcom        enable node-to-node encryption
496dbb2d4cSPavel Blagodov      </label>
5030ae8a5bSrobashcom      <span
5130ae8a5bSrobashcom         class="fa-stack icon-info"
5230ae8a5bSrobashcom         ngbTooltip="Network traffic between the individual nodes of a
5330ae8a5bSrobashcom         Couchbase Server cluster can be encrypted, in order to optimize
5430ae8a5bSrobashcom         cluster internal security."
5530ae8a5bSrobashcom         placement="right">
5630ae8a5bSrobashcom        <span class="icon fa-circle-thin fa-stack-2x"></span>
5730ae8a5bSrobashcom        <span class="icon fa-info fa-stack-1x"></span>
5830ae8a5bSrobashcom      </span>
596dbb2d4cSPavel Blagodov      <div
606dbb2d4cSPavel Blagodov         class="error error-form"
619d2bd590STimofey Barmin         [hidden]="!(postClusterInitHttp.error | async)?.errors?.nodeEncryption">
629d2bd590STimofey Barmin        {{(postClusterInitHttp.error | async)?.errors.nodeEncryption}}
6319f61922SMatthew Dawber      </div>
6419f61922SMatthew Dawber    </div>
6530ae8a5bSrobashcom
6630ae8a5bSrobashcom    <label class="inline margin-right-quarter">IP Family Preference</label>
6719f61922SMatthew Dawber    <span
6819f61922SMatthew Dawber       class="fa-stack icon-info"
6930ae8a5bSrobashcom       ngbTooltip="Selecting IPv4 or IPv6 will instruct services in the cluster to listen on those
7030ae8a5bSrobashcom                   addresses, though as a convenience some services will also listen on the other address family.
7130ae8a5bSrobashcom                   Selecting &quot;IPv4/IPv6-only&quot; will instruct services to ONLY listen on the selected addresses."
7219f61922SMatthew Dawber       placement="right">
7319f61922SMatthew Dawber      <span class="icon fa-circle-thin fa-stack-2x"></span>
7419f61922SMatthew Dawber      <span class="icon fa-info fa-stack-1x"></span>
7519f61922SMatthew Dawber    </span>
7630ae8a5bSrobashcom
7719f61922SMatthew Dawber    <div class="formrow">
7819f61922SMatthew Dawber      <div class="form-inline">
7919f61922SMatthew Dawber        <input
8019f61922SMatthew Dawber           type="radio"
8119f61922SMatthew Dawber           formControlName="addressFamilyUI"
8219f61922SMatthew Dawber           value="inet"
8319f61922SMatthew Dawber           id="for-use-ipv4">
8419f61922SMatthew Dawber        <label for="for-use-ipv4">
8519f61922SMatthew Dawber          IPv4
8619f61922SMatthew Dawber        </label>
8719f61922SMatthew Dawber        <input
8819f61922SMatthew Dawber           type="radio"
8919f61922SMatthew Dawber           formControlName="addressFamilyUI"
9019f61922SMatthew Dawber           value="inet6"
9119f61922SMatthew Dawber           id="for-use-ipv6">
9219f61922SMatthew Dawber        <label for="for-use-ipv6">
9319f61922SMatthew Dawber          IPv6
9419f61922SMatthew Dawber        </label>
9519f61922SMatthew Dawber        <input
9619f61922SMatthew Dawber           type="radio"
9719f61922SMatthew Dawber           formControlName="addressFamilyUI"
9819f61922SMatthew Dawber           value="inetOnly"
9919f61922SMatthew Dawber           id="for-use-ipv4-only">
10019f61922SMatthew Dawber        <label for="for-use-ipv4-only">
10119f61922SMatthew Dawber          IPv4-only
10219f61922SMatthew Dawber        </label>
10319f61922SMatthew Dawber        <input
10419f61922SMatthew Dawber           type="radio"
10519f61922SMatthew Dawber           formControlName="addressFamilyUI"
10619f61922SMatthew Dawber           value="inet6Only"
10719f61922SMatthew Dawber           id="for-use-ipv6-only">
10819f61922SMatthew Dawber        <label for="for-use-ipv6-only">
10919f61922SMatthew Dawber          IPv6-only
11019f61922SMatthew Dawber        </label>
11119f61922SMatthew Dawber      </div>
11219f61922SMatthew Dawber      <div
11319f61922SMatthew Dawber         class="error error-form"
114016cef6bSPavel Blagodov         *ngIf="getAddressFamilyUI().hasError('ipvOnly')">
115016cef6bSPavel Blagodov        Can't set IPv{{getAddressFamilyUI().errors?.ipvOnly.value}}-only from an IPv{{getAddressFamilyUI().errors?.ipvOnly.kind}} address; please access this server via an IPv{{getAddressFamilyUI().errors?.ipvOnly.value}} address
116016cef6bSPavel Blagodov      </div>
117016cef6bSPavel Blagodov      <div
118016cef6bSPavel Blagodov         class="error error-form"
119016cef6bSPavel Blagodov         *ngIf="getAddressFamilyUI().warnings?.ipvOnly">
120016cef6bSPavel Blagodov        You have selected IPv{{getAddressFamilyUI().warnings?.ipvOnly.value}}-only. If the domain name with which you have accessed this server is only available under IPv{{getAddressFamilyUI().warnings?.ipvOnly.value}} you will not be able to complete initialization
121016cef6bSPavel Blagodov      </div>
122016cef6bSPavel Blagodov      <div
123016cef6bSPavel Blagodov         class="error error-form"
1249d2bd590STimofey Barmin         [hidden]="!(postClusterInitHttp.error | async)?.errors?.afamily">
1259d2bd590STimofey Barmin        {{(postClusterInitHttp.error | async)?.errors.afamily}}
12619f61922SMatthew Dawber      </div>
12719f61922SMatthew Dawber      <div
12819f61922SMatthew Dawber         class="error error-form"
1299d2bd590STimofey Barmin         [hidden]="!(postClusterInitHttp.error | async)?.errors?.afamilyOnly">
1309d2bd590STimofey Barmin        {{(postClusterInitHttp.error | async)?.errors.afamilyOnly}}
1316dbb2d4cSPavel Blagodov      </div>
1326dbb2d4cSPavel Blagodov    </div>
1336dbb2d4cSPavel Blagodov  </div>
1346dbb2d4cSPavel Blagodov</div>
135