First skeleton for soc::intelmq
This commit is contained in:
parent
e080e53707
commit
27199f9f7a
1 changed files with 44 additions and 0 deletions
44
global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp
Normal file
44
global/overlay/etc/puppet/modules/soc/manifests/intelmq.pp
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
class soc::intelmq(
|
||||||
|
) {
|
||||||
|
|
||||||
|
group { 'intelmq':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
|
|
||||||
|
user { 'intelmq':
|
||||||
|
ensure => present,
|
||||||
|
gid => 'intelmq',
|
||||||
|
groups => 'www-data'
|
||||||
|
}
|
||||||
|
|
||||||
|
file { '/etc/intelmq':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'intelmq',
|
||||||
|
group => 'intelmq',
|
||||||
|
}
|
||||||
|
file { '/opt/intelmq':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'intelmq',
|
||||||
|
group => 'intelmq',
|
||||||
|
}
|
||||||
|
|
||||||
|
# file { '/opt/sso/apache/groups.txt':
|
||||||
|
# ensure => file,
|
||||||
|
# content => template('soc/sso/apache-groups.txt.erb')
|
||||||
|
# }
|
||||||
|
|
||||||
|
sunet::apache2 {}
|
||||||
|
|
||||||
|
package { ['libapache2-mod-wsgi-py3', 'postgresql', 'python3-pip', 'python3-gpg']:
|
||||||
|
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',
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue