From cb88daafaad1cef77423aed2f60b97cdf014e6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bj=C3=B6rklund?= Date: Mon, 18 Nov 2024 13:45:45 +0100 Subject: [PATCH] Env fixes. --- global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp b/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp index 17b3d7a..039725b 100644 --- a/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp +++ b/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp @@ -55,6 +55,11 @@ class soc::intelmq( creates => '/opt/intelmq/venv', } + exec 'Always active venv for IntelMQ': + command => 'echo ". venv/bin/activate >> /opt/intelmq/.profile', + unless => 'grep -q activate /opt/intelmq/.profile 2> /dev/null', + } + file { '/opt/intelmq/install-intelmq.sh': ensure => file, content => file('soc/intelmq/install-intelmq.sh'),