Skip to content

Commit

Permalink
changes for multi-user control host setup
Browse files Browse the repository at this point in the history
  • Loading branch information
scrungus committed May 2, 2024
1 parent 8b5e98a commit 1c76339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/kayobe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ RUN chmod 600 /stack/.ssh/config
# Copy custom binaries into image. The wildcard worksaround the check on the parent directory existing.
COPY .automation/utils/kayobe-automation-activate .automation.conf/docker*/kayobe/bin/* /usr/local/bin/

ARG KAYOBE_VAULT_PASSWORD

# Control host bootsrap without leaving kayobe-config in the image
RUN --mount=type=ssh,uid=1000 --mount=type=tmpfs,target=/tmp/src --mount=type=bind,source=.,target=/src sudo cp -rfp /src /tmp/ && \
sudo chown -Rf stack:stack /tmp/src && \
# Strip the secrets so that we don't need to pass in a vault-password
grep -lR "\$ANSIBLE_VAULT" /tmp/src | xargs rm -f && \
bash /tmp/src/.automation/utils/kayobe-automation-install && \
(rm -f /stack/.ssh/{id_rsa,id_rsa.pub} || true) && \
(mkdir /stack/.ansible || true) && \
Expand Down

0 comments on commit 1c76339

Please sign in to comment.