forked from SUNET/soc-ops
Bugfix.
This commit is contained in:
parent
d72d2cb157
commit
488bcc62ae
1 changed files with 11 additions and 3 deletions
|
@ -25,8 +25,15 @@ class soc::intelmq(
|
||||||
# content => template('soc/sso/apache-groups.txt.erb')
|
# content => template('soc/sso/apache-groups.txt.erb')
|
||||||
# }
|
# }
|
||||||
|
|
||||||
package { 'sys-package-deps':
|
package { 'apache2':
|
||||||
name => ['apache2', 'libapache2-mod-wsgi-py3', 'postgresql', 'python3-venv', 'python3-pip', 'python3-gpg', 'python3-psycopg2', 'redict', ],
|
ensure => 'latest',
|
||||||
|
}
|
||||||
|
|
||||||
|
package { 'libapache2-mod-wsgi-py3':
|
||||||
|
esnure => 'latest',
|
||||||
|
}
|
||||||
|
|
||||||
|
package { ['postgresql', 'python3-venv', 'python3-pip', 'python3-gpg', 'python3-psycopg2', 'redict', ]:
|
||||||
ensure => 'latest',
|
ensure => 'latest',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,12 +68,13 @@ class soc::intelmq(
|
||||||
service { 'apache2':
|
service { 'apache2':
|
||||||
ensure => 'running',
|
ensure => 'running',
|
||||||
enable => true,
|
enable => true,
|
||||||
require => Package['sys-package-deps'],
|
require => Package['apache2'],
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { 'Enable Apache2 modules':
|
exec { 'Enable Apache2 modules':
|
||||||
command => 'a2enmod ssl wsgi proxy proxy_http header rewrite',
|
command => 'a2enmod ssl wsgi proxy proxy_http header rewrite',
|
||||||
creates => ['/etc/apache2/mods-enabled/ssl.load', '/etc/apache2/mods-enabled/wsgi.load', '/etc/apache2/mods-enabled/proxy.load', '/etc/apache2/mods-enabled/proxy_http.load', '/etc/apache2/mods-enabled/header.load', '/etc/apache2/mods-enabled/rewrite.load'],
|
creates => ['/etc/apache2/mods-enabled/ssl.load', '/etc/apache2/mods-enabled/wsgi.load', '/etc/apache2/mods-enabled/proxy.load', '/etc/apache2/mods-enabled/proxy_http.load', '/etc/apache2/mods-enabled/header.load', '/etc/apache2/mods-enabled/rewrite.load'],
|
||||||
notify => Service['apache2'],
|
notify => Service['apache2'],
|
||||||
|
require => Package['libapache2-mod-wsgi-py3'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue