Fixes with installation script.

This commit is contained in:
Johan Björklund 2024-11-14 10:51:10 +01:00
parent 3d5c952c2d
commit 5d02892ed5
Signed by untrusted user: bjorklund
GPG key ID: 5E8401339C7F5037
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,2 @@
Defaults:www-data secure_path = /opt/intelmq/venv/bin:/bin:/usr/bin:/usr/local/bin
www-data ALL=(intelmq) NOPASSWD: /opt/intelmq/venv/bin/intelmqctl

View file

@ -42,4 +42,15 @@ class soc::intelmq(
exec { 'sudo -u intelmq /opt/intelmq/install-intelmq.sh':
creates => '/opt/intelmq/.installed'
}
exec { '/opt/intelmq/venv/bin/intelmqsetup --state-file /opt/intelmq/.setup_state':
creates => '/opt/intelmq/.setup_state'
}
file { 'etc/sudoers.d/01_intelmq-api':
ensure => file,
content => file('soc/intelmq/sudoers-01-intelmq-api'),
mode => '0440',
}
}