-
Notifications
You must be signed in to change notification settings - Fork 3
/
add_tacc_tenant.sh
14 lines (10 loc) · 1.67 KB
/
add_tacc_tenant.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export BASE_URL=https://dev.develop.tapis.io
# add the tacc ldap
curl -H "X-Tapis-Token: $jwt" $BASE_URL/v3/tenants/ldaps -H "content-type: application/json" -d '{"url":"ldaps://ldap.tacc.utexas.edu", "port": 636, "use_ssl": true, "user_dn": "ou=People,dc=tacc,dc=utexas,dc=edu", "bind_dn": "uid=ldapbind,ou=People,dc=tacc,dc=utexas,dc=edu", "bind_credential": "ldap.tacc-all.password", "account_type": "user", "ldap_id": "tacc-all"}' | jq
# add the tenant
curl -H "X-Tapis-Token: $jwt" $BASE_URL/v3/tenants -H "content-type: application/json" -d '{"tenant_id":"tacc", "base_url": "https://tacc.develop.tapis.io", "token_service": "https://tacc.develop.tapis.io/token/v3", "security_kernel": "https://tacc.develop.tapis.io/security/v3", "owner": "CICSupport@tacc.utexas.edu", "user_ldap_connection_id": "tacc-all", "description": "Production tenant for all TACC users.", "is_owned_by_associate_site": false, "allowable_x_tenant_ids": ["tacc"], "authenticator": "https://tacc.develop.tapis.io/v3/oauth2"}' | jq
# update the master tenant to include tacc
# first, delete the master tenant
curl -H "X-Tapis-Token: $jwt" $BASE_URL/v3/tenants/master -X DELETE
# then, create it again
curl -H "X-Tapis-Token: $jwt" $BASE_URL/v3/tenants -H "content-type: application/json" -d '{"tenant_id":"master", "base_url": "https://master.develop.tapis.io", "token_service": "https://master.develop.tapis.io/v3/tokens", "security_kernel": "https://master.develop.tapis.io/v3/security", "owner": "CICSupport@tacc.utexas.edu", "description": "The master tenant.", "is_owned_by_associate_site": false, "allowable_x_tenant_ids": ["tacc", "dev", "master"], "authenticator": "https://master.develop.tapis.io/v3/oauth2"}' | jq