forked from SUNET/soc-ops
Bugfix.
This commit is contained in:
parent
8ce30fd240
commit
3c5f2c39fe
1 changed files with 13 additions and 1 deletions
|
@ -97,6 +97,7 @@ class soc::intelmq(
|
||||||
file { '/etc/apache2/sites-available/intelmq-vhost.conf':
|
file { '/etc/apache2/sites-available/intelmq-vhost.conf':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
content => template('soc/intelmq/intelmq-vhost.conf.erb'),
|
content => template('soc/intelmq/intelmq-vhost.conf.erb'),
|
||||||
|
notify => Service['apache2'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/intelmq/api-config.json':
|
file { '/etc/intelmq/api-config.json':
|
||||||
|
@ -141,4 +142,15 @@ class soc::intelmq(
|
||||||
hasrestart => true,
|
hasrestart => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exec { 'Disable default apache conf':
|
||||||
|
command => 'a2dissite 000-default',
|
||||||
|
onlyif => 'test -f /etc/apache2/sites-enabled/000-default.conf',
|
||||||
|
notify => Service['apache2'],
|
||||||
|
}
|
||||||
|
|
||||||
|
exec { 'Enable intelmq apache conf':
|
||||||
|
command => 'a2ensite intelmq-vhost',
|
||||||
|
creates => '/etc/apache2/sites-enabled/intelmq-vhost.conf'
|
||||||
|
notify => Service['apache2'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue