4 [description]="description"
5 (submitRequested)="onSubmit()"
6 (closeRequested)="onCancel()">
8 <form [formGroup]="form">
10 <div class="cds--type-heading-03"
11 i18n>Choose mirror peer role</div>
12 <p i18n>Select how the cluster will participate in the CephFS Mirroring relationship.</p>
15 <div cdsStack="horizontal">
16 <div class="cds-mr-5">
18 <cds-radio-group formControlName="localRole">
21 [checked]="form.get('localRole')?.value === LOCAL_ROLE"
22 (click)="onLocalRoleChange()">
24 <div class="cds--type-heading-compact-02"
25 i18n>Configure local peer</div>
26 <div class="cds--type-label-01 cds-mt-3"
28 This cluster will act as the initiating peer and send snapshots to a remote
31 <ul class="cds--type-body-compact-01 cds-mt-6">
32 @for (item of sourceList; track $index) {
33 <li class="cds-mb-6 cds-mt-3">→ {{ item }}</li>
42 <cds-radio-group formControlName="remoteRole">
45 [checked]="form.get('remoteRole')?.value === REMOTE_ROLE"
46 (click)="onRemoteRoleChange()">
48 <div class="cds--type-heading-compact-02"
49 i18n>Configure remote peer</div>
50 <div class="cds--type-label-01 cds-mt-3"
52 A remote cluster will act as the receiving peer and store replicated snapshots.
54 <ul class="cds--type-body-compact-01 cds-mt-6">
55 @for (item of targetList; track $index) {
56 <li class="cds-mb-6 cds-mt-3">→ {{ item }}</li>
65 @if (form.get('localRole')?.value !== LOCAL_ROLE && showMessage) {
68 spacingClass="mb-3 mt-3"
70 (dismissed)="showMessage = false">
72 <div class="cds--type-heading-compact-01 cds-mb-2"
73 i18n>About Remote Peer Setup</div>
74 <div class="cds--type-body-compact-01 cds-mb-3"
76 As a remote peer, this cluster prepares to receive mirrored data from an initiating
77 cluster. The setup includes environment validation, enabling filesystem mirroring,
78 creating required Ceph users, and generating a bootstrap token.
80 <div class="cds--type-heading-compact-01 cds-mb-1 cds-mt-6"
81 i18n>What happens next:</div>
82 <ul class="list-disc cds-ml-5 cds--type-body-compact-01">
83 <li i18n>Environment validation</li>
84 <li i18n>Ceph user creation</li>
85 <li i18n>Filesystem mirroring activation</li>
86 <li i18n>Bootstrap token generation</li>
96 <cd-cephfs-filesystem-selector>
97 </cd-cephfs-filesystem-selector>