Enable store_events parameter in notification service

Change-Id: I0075ece1afba2bfdf5cb422249a6f0d9072393ab
This commit is contained in:
lqslan 2015-04-07 23:26:47 +08:00
parent 1d80ef1862
commit 4e83133835
4 changed files with 14 additions and 0 deletions

View File

@ -77,6 +77,7 @@ Attributes
* `openstack['telemetry']['service-credentials']['insecure']` - Set whether to verify HTTPS connections (for service polling authentication)
* `openstack['telemetry']['dbsync_timeout']` - Set dbsync command timeout value
* `openstack['telemetry']['database']['time_to_live']` - Set a time_to_live parameter (ttl) for samples. Set -1 for no expiry
* `openstack['telemetry']['notification']['store_events']` - Set a store_events parameter for notification service
The following attributes are defined in attributes/default.rb of the common cookbook, but are documented here due to their relevance:

View File

@ -146,3 +146,6 @@ end
# The time to live value for samples which is specified in seconds, override to -1 if no data expiry is required
default['openstack']['telemetry']['database']['time_to_live'] = 1800
# Decide whether to store events in notification service or not
default['openstack']['telemetry']['notification']['store_events'] = false

View File

@ -349,6 +349,13 @@ describe 'openstack-telemetry::common' do
end
end
context 'notification' do
it 'has store_events option' do
expect(chef_run).to render_config_file(file.name)\
.with_section_content('notification', /^store_events = false$/)
end
end
end
end
end

View File

@ -134,3 +134,6 @@ os_cacert = <%= node['openstack']['telemetry']['service-credentials']['cafile']
# Verify HTTPS connections. (boolean value, for service polling authentication)
insecure = <%= node['openstack']['telemetry']['service-credentials']['insecure'] %>
[notification]
store_events = <%= node['openstack']['telemetry']['notification']['store_events'] %>