forked from SUNET/soc-ops
Fixes with installation script.
This commit is contained in:
parent
3d5c952c2d
commit
5d02892ed5
2 changed files with 13 additions and 0 deletions
|
@ -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
|
|
@ -42,4 +42,15 @@ class soc::intelmq(
|
||||||
exec { 'sudo -u intelmq /opt/intelmq/install-intelmq.sh':
|
exec { 'sudo -u intelmq /opt/intelmq/install-intelmq.sh':
|
||||||
creates => '/opt/intelmq/.installed'
|
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',
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue