forked from fediversity/fediversity
use token
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
fbad0e0355
commit
6ea3f9db90
1 changed files with 2 additions and 5 deletions
|
|
@ -159,12 +159,9 @@ in
|
|||
set -e
|
||||
pvesh create /pools --poolid Fediversity
|
||||
pvesh set /storage/local --content "vztmpl,rootdir,backup,snippets,import,iso,images" 1>/dev/null
|
||||
pvesh create /access/groups --groupid "roots"
|
||||
pvesh set /access/users/root@pam --enable 1 --groups "roots"
|
||||
pvesh set /access/acl --path "/" --roles "Administrator" --groups "roots"
|
||||
pvesh create /access/users/root@pam/token/mytoken --privsep 0 --output-format json | jq -r .value
|
||||
pvesh create /access/users/root@pam/token/mytoken --output-format json | jq -r .value
|
||||
pvesh set /access/acl --path "/" --token "root@pam!mytoken" --roles "Administrator"
|
||||
""").strip()
|
||||
# FIXME pass separate privileges rather than disabling privsep
|
||||
|
||||
# skip indent for EOF
|
||||
deployer.succeed(f"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue