Enable worker service when deploying it
Currently when deploying the worker service, you get a message like You do not have designate-worker enabled, starting designate-worker is not allowed. in the log when the service attempts to start. This is because the service:worker/enabled setting is not set to true. When the worker service is enabled that setting should be as well. Change-Id: I150157162d7dce536606778d5dda5bd8356cb799
This commit is contained in:
parent
413599748d
commit
dca15cf79a
|
@ -114,5 +114,6 @@ class designate::worker(
|
|||
'service:worker/notify': value => $worker_notify;
|
||||
'service:worker/export_synchronous': value => $export_synchronous;
|
||||
'service:worker/worker_topic': value => $worker_topic;
|
||||
'service:worker/enabled': value => $enabled;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@ describe 'designate::worker' do
|
|||
is_expected.to contain_designate_config('service:worker/notify').with_value( '<SERVICE DEFAULT>' )
|
||||
is_expected.to contain_designate_config('service:worker/export_synchronous').with_value( '<SERVICE DEFAULT>' )
|
||||
is_expected.to contain_designate_config('service:worker/worker_topic').with_value( '<SERVICE DEFAULT>' )
|
||||
is_expected.to contain_designate_config('service:worker/enabled').with_value( 'true' )
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -91,6 +92,7 @@ describe 'designate::worker' do
|
|||
is_expected.to contain_designate_config('service:worker/notify').with_value( params[:worker_notify] )
|
||||
is_expected.to contain_designate_config('service:worker/export_synchronous').with_value( params[:export_synchronous] )
|
||||
is_expected.to contain_designate_config('service:worker/worker_topic').with_value( params[:worker_topic] )
|
||||
is_expected.to contain_designate_config('service:worker/enabled').with_value( params[:enabled] )
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue