forked from fediversity/fediversity
debug curl
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
60ddfaa0ad
commit
f11527b412
1 changed files with 4 additions and 1 deletions
|
|
@ -77,8 +77,11 @@ in
|
||||||
netbox-manage createsuperuser --noinput --user "${netboxUser}" --email "test@domain.tld" >&2
|
netbox-manage createsuperuser --noinput --user "${netboxUser}" --email "test@domain.tld" >&2
|
||||||
cat '${changePassword}' | netbox-manage shell
|
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("""
|
netbox_token = deployer.succeed("""
|
||||||
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
|
curl -vvv -H "Content-Type: application/json" http://localhost:8001/api/users/tokens/provision/ --data '{"username":"${netboxUser}","password":"${netboxPassword}"}' | jq -r .key
|
||||||
""").strip()
|
""").strip()
|
||||||
ip_range_id = deployer.succeed(f"""
|
ip_range_id = deployer.succeed(f"""
|
||||||
export NETBOX_SERVER_URL="localhost:8001"
|
export NETBOX_SERVER_URL="localhost:8001"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue