Skip to content

Commit b2eaf4e

Browse files
committed
WIP: Remove the engine on the dwh machine
Change-Id: Idbd6a9e31d724b6d03d693fe985d6405a775b9d1 Signed-off-by: Yedidyah Bar David <[email protected]>
1 parent 69149ec commit b2eaf4e

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

common/deploy-scripts/setup_dwh.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash -xe
2+
3+
systemctl enable firewalld
4+
systemctl start firewalld
5+
6+
systemctl enable crond
7+
systemctl start crond
8+
9+
rm -rf /dev/shm/yum /dev/shm/*.rpm
10+
fstrim -va
11+
12+
firewall-cmd --permanent --zone=public --add-interface=eth0
13+
firewall-cmd --reload
14+
15+
# rotate logs quicker, because of the debug logs they tend to flood the root partition if they run > 15 minutes
16+
cat > /etc/cron.d/ovirt-engine << EOF
17+
* * * * * root logrotate /etc/logrotate.d/ovirt-engine
18+
* * * * * root logrotate /etc/logrotate.d/ovirt-engine-dwh
19+
EOF
20+
21+
# We are using an OST image that includes the engine. We do not setup
22+
# the engine, but install engine-setup code - thus might run it, with
23+
# unintended side effects. Let's remove it.
24+
# Current context: https://bugzilla.redhat.com/2126778
25+
dnf remove -y --noautoremove ovirt-engine

common/init-configs/1_engine_1_dwh_2_hosts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"template": "common/libvirt-templates/vm_template",
5151
"memory": "3584",
5252
"deploy-scripts": [
53-
"common/deploy-scripts/setup_engine.sh"
53+
"common/deploy-scripts/setup_dwh.sh"
5454
],
5555
"nics": {
5656
"dwh": { "template": "common/libvirt-templates/nic_template" },

0 commit comments

Comments
 (0)