... | ... | @@ -17,28 +17,6 @@ dnf install docker-ce docker-ce-cli containerd.io |
|
|
dnf install containerd.io-1.4.6-3.1.fc34
|
|
|
```
|
|
|
|
|
|
## In Host:
|
|
|
```
|
|
|
cp -r openQA/container/openqa_data/data.template/conf/* workdir/data/conf/
|
|
|
cp openQA/container/webui/conf/database.ini workdir/data/conf/
|
|
|
sed -i 's/#base_url = http://FIXME/base_url = http://openqa.gnome.org//' workdir/data/conf/openqa.ini
|
|
|
sed -i 's/httpsonly = 0//' workdir/data/conf/openqa.ini
|
|
|
cat <> workdir/data/conf/openqa.ini
|
|
|
[oauth2]
|
|
|
provider = custom
|
|
|
unique_name = gitlab
|
|
|
key = XXXXXXX
|
|
|
secret = XXXXXXXX
|
|
|
authorize_url = https://gitlab.com/oauth/authorize?response_type=code
|
|
|
token_url = https://gitlab.com/oauth/token
|
|
|
user_url = https://gitlab.com/api/v4/user
|
|
|
token_scope = read_user
|
|
|
token_label = Bearer
|
|
|
nickname_from = username
|
|
|
EOF
|
|
|
```
|
|
|
|
|
|
## change provider to appropriate provider and update key and secret
|
|
|
|
|
|
## openqa will give admin access to the first user who loggedin. To give additional users admin access
|
|
|
```
|
... | ... | @@ -48,8 +26,6 @@ select * from users; |
|
|
update users set is_admin=1, is_operator=1 where id=4;
|
|
|
```
|
|
|
|
|
|
## change id to the id of the user who needs to have admin access
|
|
|
|
|
|
## How to renew SSL cert
|
|
|
|
|
|
See the Ansible script for how to do this.
|
... | ... | |