Always create the custom image log folder

The nodepool image log folder needs to be created even if
not accessible via http because it is being used in the
nodepool logging configuration. Otherwise, nodepool fails to start.

Change-Id: I7ed76bd89e1164a26cf7d7f43e19dab7b38ff14f
This commit is contained in:
Ramy Asselin 2015-08-24 15:48:20 -07:00
parent e0c6cdfd4f
commit 75d3516b37
1 changed files with 11 additions and 11 deletions

View File

@ -276,18 +276,18 @@ class nodepool (
docroot => 'MEANINGLESS_ARGUMENT',
template => 'nodepool/nodepool-log.vhost.erb',
}
}
if $image_log_document_root != '/var/log/nodepool' {
file { $image_log_document_root:
ensure => directory,
mode => '0755',
owner => 'nodepool',
group => 'nodepool',
require => [
User['nodepool'],
File['/var/log/nodepool'],
],
}
if $image_log_document_root != '/var/log/nodepool' {
file { $image_log_document_root:
ensure => directory,
mode => '0755',
owner => 'nodepool',
group => 'nodepool',
require => [
User['nodepool'],
File['/var/log/nodepool'],
],
}
}