forked from fediversity/fediversity
parent
c7039b11da
commit
a552ecc6ba
1 changed files with 1 additions and 4 deletions
|
|
@ -78,11 +78,8 @@ 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 -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()
|
""").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