9
0
Fork 1
soc-ops/global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp

42 lines
1.1 KiB
ObjectPascal
Raw Normal View History

2024-11-13 16:25:14 +01:00
class soc::intelmq(
) {
group { 'intelmq':
ensure => present,
}
user { 'intelmq':
2024-11-13 16:49:11 +01:00
ensure => present,
gid => 'intelmq',
groups => 'www-data',
home => '/opt/intelmq',
managehome => true,
2024-11-13 16:25:14 +01:00
}
file { '/etc/intelmq':
ensure => directory,
owner => 'intelmq',
group => 'intelmq',
}
# file { '/opt/sso/apache/groups.txt':
# ensure => file,
# content => template('soc/sso/apache-groups.txt.erb')
# }
2024-11-13 16:43:29 +01:00
#sunet::apache2
2024-11-13 16:25:14 +01:00
2024-11-13 16:49:11 +01:00
package { ['apache2', 'libapache2-mod-wsgi-py3', 'postgresql', 'python3-pip', 'python3-gpg']:
2024-11-13 16:25:14 +01:00
ensure => 'latest',
}
exec { 'sudo -u intelmq /usr/bin/python3 -m venv --system-site-packages /opt/intelmq/venv':
creates => '/opt/intelmq/venv',
}
# Install intelmq and all most stuff around it.
exec { 'sudo -u intelmq /opt/intelmq/venv/bin/pip3 install intelmq intelmq-api intelmq-certbund-contact intelmq-certbund-contact-api intelmq-checkticket-api intelmq-events-api intelmq-fody-backend intelmq-manager intelmq-session intelmq-tickets-api intelmqmail':
creates => '/opt/intelmq/etc',
}
}