Skip to content

Commit 1ebcf48

Browse files
Merge pull request #88 from micahhausler/baremetal
Enable skipping of network in setup.sh
2 parents 1760df0 + 7182ca0 commit 1ebcf48

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

generate-env.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ generate_env() (
7070
# Decide on a subnet for provisioning. Tinkerbell should "own" this
7171
# network space. Its subnet should be just large enough to be able
7272
# to provision your hardware.
73-
export TINKERBELL_CIDR=29
73+
export TINKERBELL_CIDR=${TINKERBELL_CIDR:-"29"}
7474
7575
# Host IP is used by provisioner to expose different services such as
7676
# tink, boots, etc.
7777
#
7878
# The host IP should the first IP in the range, and the Nginx IP
7979
# should be the second address.
80-
export TINKERBELL_HOST_IP=192.168.1.1
80+
export TINKERBELL_HOST_IP=${TINKERBELL_HOST_IP:-"192.168.1.1"}
8181
8282
# Tink server username and password
8383
export TINKERBELL_TINK_USERNAME=admin
@@ -87,6 +87,10 @@ generate_env() (
8787
export TINKERBELL_REGISTRY_USERNAME=admin
8888
export TINKERBELL_REGISTRY_PASSWORD="$registry_password"
8989
90+
# Tink cli options
91+
export TINKERBELL_GRPC_AUTHORITY=${TINKERBELL_HOST_IP:-"192.168.1.1"}:42113
92+
export TINKERBELL_CERT_URL=http://${TINKERBELL_HOST_IP:-"192.168.1.1"}:42114/cert
93+
9094
# Legacy options, to be deleted:
9195
export FACILITY=onprem
9296
export ROLLBAR_TOKEN=ignored

setup.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ check_prerequisites() (
478478
)
479479

480480
whats_next() (
481-
echo "$NEXT 1. Enter /vagrant/deploy and run: source ../.env; docker-compose up -d"
481+
echo "$NEXT 1. Enter /deploy and run: source ../.env; docker-compose up -d"
482482
echo "$BLANK 2. Try executing your first workflow."
483483
echo "$BLANK Follow the steps described in https://tinkerbell.org/examples/hello-world/ to say 'Hello World!' with a workflow."
484484
)
@@ -499,7 +499,9 @@ do_setup() (
499499
# shellcheck disable=SC1090
500500
source "$ENV_FILE"
501501

502-
setup_networking "$lsb_dist" "$lsb_version"
502+
if [[ -z $TINKERBELL_SKIP_NETWORKING ]]; then
503+
setup_networking "$lsb_dist" "$lsb_version"
504+
fi
503505
setup_osie
504506
generate_certificates
505507
setup_docker_registry

0 commit comments

Comments
 (0)