Revert "debug curl"

This reverts commit f11527b412.
This commit is contained in:
Kiara Grouwstra 2025-11-04 14:02:11 +01:00
parent c7039b11da
commit a552ecc6ba
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -78,11 +78,8 @@ in
netbox-manage createsuperuser --noinput --user "${netboxUser}" --email "test@domain.tld" >&2
cat '${changePassword}' | netbox-manage shell
""")
deployer.succeed("netstat -tulpn >&2")
deployer.succeed("systemctl status netbox >&2 || echo continuing")
deployer.succeed("journalctl -xe --unit netbox >&2")
netbox_token = deployer.succeed("""
curl -vvv -H "Content-Type: application/json" http://localhost:8001/api/users/tokens/provision/ --data '{"username":"${netboxUser}","password":"${netboxPassword}"}' | jq -r .key
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" http://localhost:8001/api/users/tokens/provision/ --data '{"username":"${netboxUser}","password":"${netboxPassword}"}' | jq -r .key
""").strip()
ip_range_id = deployer.succeed(f"""
export NETBOX_SERVER_URL="localhost:8001"