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:
parent
5025c20960
commit
34fe9cc284
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue