File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -126,18 +126,17 @@ cleanup-partition:
126126_privatenet : env
127127 docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network list --name user-private-network | grep user-private-network || docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network allocate --partition mini-lab --project 00000000-0000-0000-0000-000000000001 --name user-private-network
128128
129- .PHONY : _public_ips
130- _public_ips : env
131- docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network ip list --name firewall | grep firewall || docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network ip create --network internet-mini-lab --project 00000000-0000-0000-0000-000000000001 --ipaddress 203.0.113.129 --name firewall
132- docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network ip list --name machine | grep machine || docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network ip create --network internet-mini-lab --project 00000000-0000-0000-0000-000000000001 --ipaddress 203.0.113.130 --name machine
133-
134129.PHONY : machine
135- machine : _privatenet _public_ips
136- docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl machine create --description test --name test --hostname test --project 00000000-0000-0000-0000-000000000001 --partition mini-lab --image $(MACHINE_OS ) --size v1-small-x86 --userdata " @/tmp/ignition.json" --ips 203.0.113.130 -- networks internet-mini-lab,$(shell docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network list --name user-private-network -o template --template '{{ .id }}')
130+ machine : _privatenet
131+ docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl machine create --description test --name test --hostname test --project 00000000-0000-0000-0000-000000000001 --partition mini-lab --image $(MACHINE_OS ) --size v1-small-x86 --userdata " @/tmp/ignition.json" --networks internet-mini-lab,$(shell docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network list --name user-private-network -o template --template '{{ .id }}')
137132
138133.PHONY : firewall
139- firewall : _privatenet _public_ips
140- docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl firewall create --description fw --name fw --hostname fw --project 00000000-0000-0000-0000-000000000001 --partition mini-lab --image firewall-ubuntu-3.0 --size v1-small-x86 --userdata " @/tmp/ignition.json" --ips 203.0.113.129 --firewall-rules-file=/tmp/rules.yaml --networks internet-mini-lab,$(shell docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network list --name user-private-network -o template --template '{{ .id }}')
134+ firewall : _privatenet
135+ docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl firewall create --description fw --name fw --hostname fw --project 00000000-0000-0000-0000-000000000001 --partition mini-lab --image firewall-ubuntu-3.0 --size v1-small-x86 --userdata " @/tmp/ignition.json" --firewall-rules-file=/tmp/rules.yaml --networks internet-mini-lab,$(shell docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network list --name user-private-network -o template --template '{{ .id }}')
136+
137+ .PHONY : public-ip
138+ public-ip :
139+ @docker compose run $(DOCKER_COMPOSE_TTY_ARG ) metalctl network ip list --name test --network internet-mini-lab -o template --template " {{ .ipaddress }}"
141140
142141.PHONY : ls
143142ls : env
Original file line number Diff line number Diff line change @@ -46,6 +46,6 @@ echo "Test connectivity to outside"
4646make connect-to-www
4747
4848echo " Test connectivity from outside"
49- ssh -F files/ssh/config 203.0.113.130 -C exit
49+ ssh -F files/ssh/config metal@ $( make public-ip ) -C exit
5050
5151echo " Successfully started mini-lab"
You can’t perform that action at this time.
0 commit comments