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:
126
126
_privatenet : env
127
127
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
128
128
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
-
134
129
.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 }}')
137
132
138
133
.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 }}"
141
140
142
141
.PHONY : ls
143
142
ls : env
Original file line number Diff line number Diff line change @@ -46,6 +46,6 @@ echo "Test connectivity to outside"
46
46
make connect-to-www
47
47
48
48
echo " 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
50
50
51
51
echo " Successfully started mini-lab"
You can’t perform that action at this time.
0 commit comments