-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Remove the engine on the dwh machine
Change-Id: Idbd6a9e31d724b6d03d693fe985d6405a775b9d1 Signed-off-by: Yedidyah Bar David <[email protected]>
- Loading branch information
1 parent
37d2fc5
commit 525d295
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash -xe | ||
|
||
systemctl enable firewalld | ||
systemctl start firewalld | ||
|
||
systemctl enable crond | ||
systemctl start crond | ||
|
||
rm -rf /dev/shm/yum /dev/shm/*.rpm | ||
fstrim -va | ||
|
||
firewall-cmd --permanent --zone=public --add-interface=eth0 | ||
firewall-cmd --reload | ||
|
||
# rotate logs quicker, because of the debug logs they tend to flood the root partition if they run > 15 minutes | ||
cat > /etc/cron.d/ovirt-engine << EOF | ||
* * * * * root logrotate /etc/logrotate.d/ovirt-engine | ||
* * * * * root logrotate /etc/logrotate.d/ovirt-engine-dwh | ||
EOF | ||
|
||
# We are using an OST image that includes the engine. We do not setup | ||
# the engine, but install engine-setup code - thus might run it, with | ||
# unintended side effects. Let's remove it. | ||
# Current context: https://bugzilla.redhat.com/2126778 | ||
dnf remove -y --noautoremove ovirt-engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters