Skip to content

Commit 111776b

Browse files
committed
fix: add vsock
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent beb7ab6 commit 111776b

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: machineconfiguration.openshift.io/v1
2+
kind: MachineConfig
3+
metadata:
4+
name: 50-enable-vsock-loopback
5+
labels:
6+
machineconfiguration.openshift.io/role: master
7+
spec:
8+
config:
9+
ignition:
10+
version: 3.2.0
11+
storage:
12+
files:
13+
- contents:
14+
source: data:text/plain;charset=utf-8;base64,dnNvY2tfbG9vcGJhY2s=
15+
mode: 0644
16+
path: /etc/modules-load.d/vsock-loopback.conf

scripts/gen-secrets.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,18 @@ fi
5757

5858
if [ ! -f "${COCO_SECRETS_DIR}/pccs_user_token" ]; then
5959
echo "Creating pccs user token"
60-
openssl rand -base64 32 > ${COCO_SECRETS_DIR}/pccs_user_token
60+
echo "usertoken" > ${COCO_SECRETS_DIR}/pccs_user_token
6161
fi
6262
# Always do the hash
63-
cat "${COCO_SECRETS_DIR}/pccs_user_token" | sha512sum | tr -d '[:space:]-' > ${COCO_SECRETS_DIR}/pccs_user_token_hash
63+
echo "Hi"
64+
echo $(which sha512sum)
65+
echo ${COCO_SECRETS_DIR}/pccs_user_token_hash
66+
PCCS_USER_TOKEN_HASH=$(echo -n "usertoken" | sha512sum | tr -d '[:space:]-')
67+
echo -n "usertoken" | sha512sum | tr -d '[:space:]-' > ${COCO_SECRETS_DIR}/pccs_user_token_hash
6468

6569
if [ ! -f "${COCO_SECRETS_DIR}/pccs_admin_token" ]; then
6670
echo "Creating pccs admin token"
67-
openssl rand -base64 32 > ${COCO_SECRETS_DIR}/pccs_admin_token
71+
echo "admintoken" > ${COCO_SECRETS_DIR}/pccs_admin_token
6872
fi
6973
# Always do the hash
70-
cat "${COCO_SECRETS_DIR}/pccs_admin_token" | sha512sum | tr -d '[:space:]-' > ${COCO_SECRETS_DIR}/pccs_admin_token_hash
74+
echo -n "admintoken" | sha512sum | tr -d '[:space:]-' > ${COCO_SECRETS_DIR}/pccs_admin_token_hash

0 commit comments

Comments
 (0)