9
0
Fork 1

Bugfixes for fody.

This commit is contained in:
Johan Björklund 2024-11-19 12:51:22 +01:00
parent de1538837d
commit fe9a738416
Signed by: bjorklund
GPG key ID: 5E8401339C7F5037
2 changed files with 58 additions and 4 deletions

View file

@ -26,10 +26,32 @@ class soc::intelmq(
shell => '/bin/bash',
}
file { '/etc/intelmq':
ensure => directory,
owner => 'intelmq',
group => 'intelmq',
file {
'/etc/intelmq':
ensure => directory,
owner => 'intelmq',
group => 'intelmq',
;
'/etc/intelmq/mailgen':
ensure => directory,
owner => 'intelmq',
group => 'intelmq',
;
'/etc/intelmq/mailgen/formats':
ensure => directory,
owner => 'intelmq',
group => 'intelmq',
;
'/etc/intelmq/mailgen/gnupghome':
ensure => directory,
owner => 'intelmq',
group => 'intelmq',
;
'/etc/intelmq/mailgen/templates':
ensure => directory,
owner => 'intelmq',
group => 'intelmq',
;
}
file { '/etc/intelmq/api':
@ -246,6 +268,14 @@ class soc::intelmq(
mode => '0440',
content => template('soc/intelmq/tickets-serve.conf.erb'),
;
'/etc/intelmq/intelmq-mailgen.conf':
ensure => file,
owner => 'intelmq',
group => 'www-data',
mode => '0440',
content => template('soc/intelmq/intelmq-mailgen.conf.erb'),
;
}
file { '/etc/systemd/system/intelmq-api.service':

View file

@ -0,0 +1,24 @@
{
"openpgp": {
"gnupg_home" : "/etc/intelmq/mailgen/gnupghome",
"always_sign" : false,
"signing_key" : "5F503EFAC8C89323D54C252591B8CD7E15925678"
},
"database": {
"event": {
"name": "eventdb",
"username": "<%= @db_user %>",
"password": "<%= @db_pass %>",
"host": "localhost",
"port": 5432
}
},
"template_dir": "/etc/intelmq/mailgen/templates",
"script_directory": "/etc/intelmq/mailgen/formats",
"sender": "cert@cert.sunet.se",
"smtp": {
"host": "localhost",
"port": 25
},
"logging_level": "INFO"
}