Skip to content

Commit 71b8130

Browse files
authored
Merge pull request #192 from opencrvs/fix-backup-message
fix: Adjust backup message
2 parents ab60441 + 8d2e669 commit 71b8130

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

infrastructure/environments/setup-environment.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ const infrastructureQuestions = [
362362
{
363363
name: 'kubeAPIHost',
364364
type: 'text' as const,
365-
message:
366-
`Please enter Kubernetes hosts/IP to expose API endpoint, (default: first ethernet IP address):`,
365+
message:
366+
`Please enter host/IP to expose Kubernetes API endpoint, (default: Master first IP address):`,
367367
valueType: 'VARIABLE' as const,
368368
// validate: notEmpty,
369369
valueLabel: 'KUBE_API_HOST',
@@ -1633,7 +1633,17 @@ ALL_QUESTIONS.push(
16331633
curl -sfL https://raw.githubusercontent.com/opencrvs/infrastructure/refs/heads/develop/scripts/bootstrap/opencrvs-bootstrap.sh -o opencrvs-bootstrap.sh && \\
16341634
bash opencrvs-bootstrap.sh --ssh-public-key ${kleur.bold('[PUT PROVISION USER PUBLIC KEY FROM MASTER NODE]')}` : ''
16351635

1636-
log(`
1636+
const backup_message = backupHost && backupHost !== "" ?
1637+
`
1638+
-----------------------
1639+
➡️ ${kleur.bold().yellow('COPY the SSH public key from the master VM to your clipboard')}
1640+
-----------------------
1641+
➡️ ${kleur.bold().yellow('Run following command on backup server to create provision user and setup SSH key:')}
1642+
1643+
curl -sfL https://raw.githubusercontent.com/opencrvs/infrastructure/refs/heads/develop/scripts/bootstrap/opencrvs-bootstrap.sh -o opencrvs-bootstrap.sh && \\
1644+
bash opencrvs-bootstrap.sh --ssh-public-key ${kleur.bold('[PUT PROVISION USER PUBLIC KEY FROM MASTER NODE]')}` : ''
1645+
1646+
log(`
16371647
${kleur.yellow('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')}
16381648
Follow the steps below to complete the setup of your environment:
16391649
${kleur.yellow('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')}
@@ -1647,6 +1657,8 @@ bash opencrvs-bootstrap.sh --owner ${githubOrganisation} \\
16471657
--enable-runner
16481658
${worker_message}
16491659
1660+
${backup_message}
1661+
16501662
${kleur.yellow('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')}
16511663
`)
16521664
log('\nAll variables stored in', kleur.cyan(`.env.${environment}`))

0 commit comments

Comments
 (0)