Skip to content

Commit

Permalink
Updates for vagrant with virtualbox:
Browse files Browse the repository at this point in the history
Fixes issues caused by the reorg.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Oct 25, 2022
1 parent 6b48eba commit c7b74f1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
!deploy/stack/compose/postgres/state/webroot/workflow/.keep
!deploy/infrastructure/vagrant/.env
!deploy/stack/compose/.env
!deploy/stack/compose/postgres/.env
!.gitignore
!.github/

Expand Down
4 changes: 2 additions & 2 deletions deploy/infrastructure/vagrant/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MACHINE1_IP=192.168.56.43
MACHINE1_MAC=08:00:27:9e:f5:3a

#USE_POSTGRES=true
USE_POSTGRES=
USE_POSTGRES=true

# USE_HELM=true
USE_HELM=true
USE_HELM=
2 changes: 1 addition & 1 deletion deploy/infrastructure/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Vagrant.configure("2") do |config|
end

if USE_POSTGRES == "true"
DEST_DIR = DEST_DIR_BASE + "postgres/"
DEST_DIR = DEST_DIR_BASE + STACK_OPT + "postgres"
end
provisioner.vm.provision :shell, path: STACK_DIR + "/setup.sh", args: [PROVISIONER_IP, MACHINE1_IP, MACHINE1_MAC, DEST_DIR, LOADBALANCER_IP]
end
Expand Down
27 changes: 27 additions & 0 deletions deploy/stack/compose/postgres/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# These must be defined above/before first use.
# Use of these variables *must* be in ${} form, otherwise docker-compose won't substitute when processing this file
vOSIE=v0.7.0
vTINK=sha-16186501

# Probably don't want to mess with these, unless you know you do
FACILITY=onprem
TINKERBELL_REGISTRY_PASSWORD=Admin1234
TINKERBELL_REGISTRY_USERNAME=admin
TINKERBELL_TLS= false

# Can be set to your own hook builds
OSIE_DOWNLOAD_URLS=https://github.com/tinkerbell/hook/releases/download/${vOSIE}/hook_x86_64.tar.gz,https://github.com/tinkerbell/hook/releases/download/${vOSIE}/hook_aarch64.tar.gz

TINKERBELL_HARDWARE_MANIFEST=/manifests/hardware/hardware.json
TINKERBELL_TEMPLATE_MANIFEST=/manifests/template/ubuntu.yaml

TINKERBELL_CLIENT_IP=192.168.56.43
TINKERBELL_CLIENT_MAC=08:00:27:9e:f5:3a
TINKERBELL_HOST_IP=192.168.56.4

# Images used by docker-compose natively or in terraform/vagrant, update if necessary
BOOTS_IMAGE=quay.io/tinkerbell/boots:sha-505785d7
HEGEL_IMAGE=quay.io/tinkerbell/hegel:sha-592588cf
TINK_CLI_IMAGE=quay.io/tinkerbell/tink-cli:${vTINK}
TINK_SERVER_IMAGE=quay.io/tinkerbell/tink:${vTINK}
TINK_WORKER_IMAGE=quay.io/tinkerbell/tink-worker:${vTINK}
2 changes: 1 addition & 1 deletion deploy/stack/compose/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ main() {
# setup_layer2_network "$host_ip"

setup_compose_env_overrides "$host_ip" "$worker_ip" "$worker_mac" "$compose_dir"
docker compose -f "$compose_dir"/docker-compose.yml up -d
docker compose --env-file "$compose_dir"/.env -f "$compose_dir"/docker-compose.yml up -d

create_tink_helper_script "$compose_dir"
tweak_bash_interactive_settings "$compose_dir"
Expand Down

0 comments on commit c7b74f1

Please sign in to comment.