Ensure worker log dir is created

This commit makes sure we create the dir that the worker tries to write
it's logs to.

Change-Id: Id899742ae3efc5e821f46aa10cc722e16d9bf8cb
This commit is contained in:
Matthew Treinish 2016-03-07 12:05:59 -05:00
parent 5025c20960
commit 34fe9cc284
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@ define subunit2sql::worker (
}
}
if ! defined(File['/var/log/subunit2sql']) {
file { '/var/log/subunit2sql':
ensure => directory,
owner => 'subunit',
group => 'subunit',
mode => '0644',
require => User['subunit'],
}
}
if ! defined(File['/etc/subunit2sql/subunit2sql.conf']) {
file { '/etc/subunit2sql/subunit2sql.conf':
ensure => present,