1 <cd-modal [modalRef]="activeModal">
2 <ng-container i18n="form title"
3 class="modal-title">Migrate Single Site to Multi-site
5 <span>Migrate from a single-site deployment with a default zone group and zone to a multi-site system</span>
9 <ng-container class="modal-content">
10 <form name="multisiteMigrateForm"
12 [formGroup]="multisiteMigrateForm"
14 <div class="modal-body">
15 <div class="form-group row">
16 <label class="cd-col-form-label required"
18 i18n>Realm Name</label>
19 <div class="cd-col-form-input">
20 <input class="form-control"
22 placeholder="Realm name..."
25 formControlName="realmName">
26 <span class="invalid-feedback"
27 *ngIf="multisiteMigrateForm.showError('realmName', formDir, 'required')"
28 i18n>This field is required.</span>
29 <span class="invalid-feedback"
30 *ngIf="multisiteMigrateForm.showError('realmName', formDir, 'uniqueName')"
31 i18n>The chosen realm name is already in use.</span>
34 <div class="form-group row">
35 <label class="cd-col-form-label required"
37 i18n>Rename default zone group</label>
38 <div class="cd-col-form-input">
39 <input class="form-control"
41 placeholder="Zone group name..."
44 formControlName="zonegroupName">
45 <span class="invalid-feedback"
46 *ngIf="multisiteMigrateForm.showError('zonegroupName', formDir, 'required')"
47 i18n>This field is required.</span>
48 <span class="invalid-feedback"
49 *ngIf="multisiteMigrateForm.showError('zonegroupName', formDir, 'uniqueName')"
50 i18n>The chosen zone group name is already in use.</span>
53 <div class="form-group row">
54 <label class="cd-col-form-label required"
55 for="zonegroup_endpoints"
56 i18n>Zone group Endpoints
58 <div class="cd-col-form-input">
59 <input class="form-control"
61 placeholder="http://ceph-node-00.com:80"
62 id="zonegroup_endpoints"
63 name="zonegroup_endpoints"
64 formControlName="zonegroup_endpoints">
65 <span class="invalid-feedback"
66 *ngIf="multisiteMigrateForm.showError('zonegroup_endpoints', formDir, 'required')"
67 i18n>This field is required.</span>
68 <span class="invalid-feedback"
69 *ngIf="multisiteMigrateForm.showError('zonegroup_endpoints', formDir, 'invalidURL')"
70 i18n>Please enter a valid URL.</span>
73 <div class="form-group row">
74 <label class="cd-col-form-label required"
76 i18n>Rename default zone</label>
77 <div class="cd-col-form-input">
78 <input class="form-control"
80 placeholder="Zone name..."
83 formControlName="zoneName">
84 <span class="invalid-feedback"
85 *ngIf="multisiteMigrateForm.showError('zoneName', formDir, 'required')"
86 i18n>This field is required.</span>
87 <span class="invalid-feedback"
88 *ngIf="multisiteMigrateForm.showError('zoneName', formDir, 'uniqueName')"
89 i18n>The chosen zone name is already in use.</span>
92 <div class="form-group row">
93 <label class="cd-col-form-label required"
97 <div class="cd-col-form-input">
98 <input class="form-control"
100 placeholder="http://ceph-node-00.com:80"
102 name="zone_endpoints"
103 formControlName="zone_endpoints">
104 <span class="invalid-feedback"
105 *ngIf="multisiteMigrateForm.showError('zone_endpoints', formDir, 'required')"
106 i18n>This field is required.</span>
107 <span class="invalid-feedback"
108 *ngIf="multisiteMigrateForm.showError('zone_endpoints', formDir, 'invalidURL')"
109 i18n>Please enter a valid URL.</span>
112 <div class="form-group row">
113 <label class="cd-col-form-label required"
115 i18n>Username</label>
116 <div class="cd-col-form-input">
117 <input class="form-control"
119 placeholder="username"
122 formControlName="username">
124 <span i18n>Specify the username for the system user. This user will be created automatically as part of the process.</span>
126 <span class="invalid-feedback"
127 *ngIf="multisiteMigrateForm.showError('username', formDir, 'required')"
128 i18n>This field is required.</span>
132 <div class="modal-footer">
133 <cd-form-button-panel (submitActionEvent)="submit()"
134 [submitText]="actionLabels.MIGRATE + ' ' + 'to Multi-site'"
135 [form]="multisiteMigrateForm"></cd-form-button-panel>