diff --git a/common/deploy-scripts/setup_dwh.sh b/common/deploy-scripts/setup_dwh.sh new file mode 100644 index 00000000..1d968469 --- /dev/null +++ b/common/deploy-scripts/setup_dwh.sh @@ -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 diff --git a/common/init-configs/1_engine_1_dwh_2_hosts.json b/common/init-configs/1_engine_1_dwh_2_hosts.json index 75082847..c2dae4f4 100644 --- a/common/init-configs/1_engine_1_dwh_2_hosts.json +++ b/common/init-configs/1_engine_1_dwh_2_hosts.json @@ -50,7 +50,7 @@ "template": "common/libvirt-templates/vm_template", "memory": "3584", "deploy-scripts": [ - "common/deploy-scripts/setup_engine.sh" + "common/deploy-scripts/setup_dwh.sh" ], "nics": { "dwh": { "template": "common/libvirt-templates/nic_template" },