Remove references to HOSTNAME as it's not required
This commit is contained in:
parent
346a71e79c
commit
1bf49f199b
|
@ -51,10 +51,8 @@ Distributed & E2EE self-hosting. The goal is to have nodes voluntarily join the
|
|||
1. Clone the repo.
|
||||
2. Create a directory to hold the config and certificates.
|
||||
3. Copy `node-config.yaml` as `config.yaml` in the new directory.
|
||||
4. Update the `docker-compose.yaml` to...
|
||||
1. Set the `hostname` value.
|
||||
2. Bind mount the newly created directory to `/etc/nebula`.
|
||||
4. Update the `docker-compose.yaml` to bind mount the newly created directory to `/etc/nebula`.
|
||||
5. Run the container with `docker-compose up -d`. This will create two files, `host.key` and `host.csr`.
|
||||
6. Send the contents of the `host.csr` file and your chosen hostname to a cluster admin to sign.
|
||||
6. Send the contents of the `host.csr` file to a cluster admin to sign.
|
||||
7. The signed certificate should go alongside the `host.csr` file and be called, `host.crt`.
|
||||
8. Start the container again and it should find the config and certificates and then connect to the existing cluster.
|
||||
|
|
|
@ -3,7 +3,6 @@ version: "3"
|
|||
services:
|
||||
nebula:
|
||||
container_name: infranet
|
||||
hostname: __HOSTNAME__
|
||||
image: dcr.wallace.sh/scott/infranet:latest
|
||||
volumes:
|
||||
- /path/to/infranet/config:/etc/nebula
|
||||
|
|
|
@ -3,12 +3,6 @@
|
|||
ARCH=$(uname -m)
|
||||
BIN_DIR=/app/linux-${ARCH}
|
||||
DATA_DIR=/etc/nebula
|
||||
HOSTNAME=$(hostname)
|
||||
|
||||
if test "${HOSTNAME}" == '__HOSTNAME__'; then
|
||||
echo 'You did not set a hostname for the Docker container'
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# --------------------- TESTING ONLY ------------------------
|
||||
# Build host certs if they don't exist
|
||||
|
@ -18,7 +12,6 @@ if ! test -f ${DATA_DIR}/host.crt; then
|
|||
"${BIN_DIR}/nebula-cert" keygen -out-key host.key -out-pub host.csr
|
||||
# shellcheck disable=SC2016
|
||||
echo 'You will need to get the `host.csr` file signed by a cluster admin'
|
||||
echo "Provide them with the hostname (${HOSTNAME}) and the \`host.csr\` file"
|
||||
exit 3
|
||||
else
|
||||
# shellcheck disable=SC2016
|
||||
|
|
Loading…
Reference in a new issue