Skip to content

Commit 58d41c1

Browse files
committed
use plural uuid
1 parent 29c72b3 commit 58d41c1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cloud-config.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ write_files:
1111
permissions: "0644"
1212
content: |
1313
mirrors:
14-
"*":
14+
"*":
15+
- path: /etc/plural-id
16+
permissions: "0644"
17+
content: {{ uuidv4 }}
1518

1619
k3s:
1720
enabled: true

images/plural-bundle/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ for FILE in assets/*; do
7070
templ "BASE_IMAGE" "${BASE_IMAGE}" "${FILE}"
7171
templ "TOKEN" "${TOKEN}" "${FILE}"
7272
templ "URL" "${URL}" "${FILE}"
73-
templ "CLUSTER_NAME" "${CLUSTER_NAME_PREFIX}-$(cut -c1-10 < /etc/machine-id)" "${FILE}"
73+
templ "CLUSTER_NAME" "${CLUSTER_NAME_PREFIX}-$(cut -c1-10 < /etc/plural-id)" "${FILE}"
7474
templ "PROJECT" "${PROJECT}" "${FILE}"
7575
templ "TAG" "${TAG}" "${FILE}"
7676
done;

0 commit comments

Comments
 (0)