Browse Source

Multinode support for promenade encryption

Change-Id: Ie0a458008870cdfc8f6606c4d91c4f0cd7f36681
changes/35/652735/9
Sirajudeen 1 month ago
parent
commit
1a5706b8fa

+ 1
- 0
tools/multi_nodes_gate/airship_gate/lib/config.sh View File

@@ -22,6 +22,7 @@ export VIRSH_CPU_OPTS=${VIRSH_CPU_OPTS:-host}
22 22
 export UPSTREAM_DNS=${UPSTREAM_DNS:-"8.8.8.8 8.8.4.4"}
23 23
 export NTP_POOLS=${NTP_POOLS:-"0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org"}
24 24
 export NTP_SERVERS=${NTP_SERVERS:-""}
25
+export PROMENADE_ENCRYPTION_KEY=${PROMENADE_ENCRYPTION_KEY:-MjI1N2ZiMjMzYjI0ZmVkZDU4}
25 26
 
26 27
 # key-pair used for drydock/maas auth towards libvirt and access to
27 28
 # the virtual nodes; auto-generated if no value provided

+ 1
- 0
tools/multi_nodes_gate/airship_gate/stages/build-scripts.sh View File

@@ -33,6 +33,7 @@ docker run --rm -t \
33 33
     -v "${GATE_DEPOT}:/gate" \
34 34
     -v "${CERT_DEPOT}:/certs" \
35 35
     -v "${SCRIPT_DEPOT}:/scripts" \
36
+    -e "PROMENADE_ENCRYPTION_KEY=${PROMENADE_ENCRYPTION_KEY}" \
36 37
     ${DOCKER_RUN_OPTS[*]} \
37 38
     "${IMAGE_PROMENADE_CLI}" \
38 39
         promenade \

+ 1
- 1
tools/multi_nodes_gate/airship_gate/stages/genesis.sh View File

@@ -21,7 +21,7 @@ source "${GATE_UTILS}"
21 21
 rsync_cmd "${SCRIPT_DEPOT}/genesis.sh" "${GENESIS_NAME}:/root/airship/"
22 22
 
23 23
 set -o pipefail
24
-ssh_cmd "${GENESIS_NAME}" /root/airship/genesis.sh 2>&1 | tee -a "${LOG_FILE}"
24
+ssh_cmd_raw "${GENESIS_NAME}" "PROMENADE_ENCRYPTION_KEY=${PROMENADE_ENCRYPTION_KEY} /root/airship/genesis.sh" 2>&1 | tee -a "${LOG_FILE}"
25 25
 set +o pipefail
26 26
 
27 27
 if ! ssh_cmd n0 docker images | tail -n +2 | grep -v registry:5000 ; then

Loading…
Cancel
Save