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'),