-
Notifications
You must be signed in to change notification settings - Fork 9
/
install-openqa.sh
executable file
·52 lines (38 loc) · 1.54 KB
/
install-openqa.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Test script based on installation guide from Fedora:
# https://fedoraproject.org/wiki/OpenQA_direct_installation_guide
export release=$(uname -a)
echo Installing OpenQA on Fedora
echo Running on: $release
#sudo dnf update -y
sudo dnf install -y git vim openssh-server openqa openqa-httpd openqa-worker fedora-messaging libguestfs-tools libguestfs-xfs python3-fedfind python3-libguestfs libvirt-daemon-config-network libvirt-python3 virt-install withlock postgresql-server fedora-messaging perl-REST-Client
cd /etc/httpd/conf.d/
sudo cp openqa.conf.template openqa.conf
sudo cp openqa-ssl.conf.template openqa-ssl.conf
sudo bash -c "cat >/etc/openqa/openqa.ini <<'EOF'
[global]
branding=plain
download_domains = fedoraproject.org
[auth]
method = Fake
EOF"
sudo postgresql-setup --initdb
sudo systemctl enable --now postgresql
sudo systemctl enable --now httpd
sudo systemctl enable --now openqa-gru
sudo systemctl enable --now openqa-scheduler
sudo systemctl enable --now openqa-websockets
sudo systemctl enable --now openqa-webui
sudo systemctl enable --now fm-consumer@fedora_openqa_scheduler
sudo systemctl enable --now sshd
sudo firewall-cmd --add-port=80/tcp
sudo firewall-cmd --runtime-to-permanent
sudo setsebool -P httpd_can_network_connect 1
sudo systemctl restart httpd
echo Note! the api key will expire in one day after installation!
sudo bash -c "cat >/etc/openqa/client.conf <<'EOF'
[localhost]
key = 1234567890ABCDEF
secret = 1234567890ABCDEF
EOF"
echo "Done, preparations. Now log in one time! Then run sudo ./install-openqa-post.sh"