Fix dependency order with logstash_worker.pp

Attempt to fix the following error:

   puppet-user[13761]: (/Stage[main]/Openstack_project::Logstash_worker/Log_processor::Worker[D]/File[/etc/logprocessor/jenkins-log-worker-D.yaml])
   Could not evaluate: Could not retrieve information from environment production source(s) file:/etc/logprocessor/worker.yaml

Change-Id: I7c8eef36cad7b62f3f70ef7069ec7e14a1ea8bd2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-10-31 11:35:41 -04:00
parent 9180892a40
commit 2d5aa3bf6f
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -33,6 +33,7 @@ class openstack_project::logstash_worker (
group => 'root',
mode => '0644',
content => template('openstack_project/logstash/jenkins-log-worker.yaml.erb'),
require => Class['::log_processor'],
}
file { '/etc/default/logstash-indexer':
@ -82,14 +83,18 @@ class openstack_project::logstash_worker (
include ::log_processor
log_processor::worker { 'A':
config_file => '/etc/logprocessor/worker.yaml',
require => File['/etc/logprocessor/worker.yaml'],
}
log_processor::worker { 'B':
config_file => '/etc/logprocessor/worker.yaml',
require => File['/etc/logprocessor/worker.yaml'],
}
log_processor::worker { 'C':
config_file => '/etc/logprocessor/worker.yaml',
require => File['/etc/logprocessor/worker.yaml'],
}
log_processor::worker { 'D':
config_file => '/etc/logprocessor/worker.yaml',
require => File['/etc/logprocessor/worker.yaml'],
}
}