Codebase list puppet-module-gnocchi / f2d5169
Merge tag '15.2.0' into debian/train puppet-gnocchi 15.2.0 release meta:version: 15.2.0 meta:diff-start: - meta:series: train meta:release-type: release meta:pypi: no meta:first: no meta:release:Author: ZhongShengping <chdzsp@163.com> meta:release:Commit: ZhongShengping <chdzsp@163.com> meta:release:Change-Id: I1621938129c001a793ef9d4c3279c1b9126d2d41 meta:release:Code-Review+2: Thierry Carrez <thierry@openstack.org> meta:release:Code-Review+2: Sean McGinnis <sean.mcginnis@gmail.com> meta:release:Workflow+1: Sean McGinnis <sean.mcginnis@gmail.com> Thomas Goirand 4 years ago
20 changed file(s) with 60 addition(s) and 56 deletion(s). Raw diff Collapse all Expand all
00 [gerrit]
1 host=review.openstack.org
1 host=review.opendev.org
22 port=29418
33 project=openstack/puppet-gnocchi.git
66 :require => 'false'
77 else
88 gem 'puppet-openstack_spec_helper',
9 :git => 'https://git.openstack.org/openstack/puppet-openstack_spec_helper',
9 :git => 'https://opendev.org/openstack/puppet-openstack_spec_helper',
1010 :require => 'false'
1111 end
1212 end
2222 Overview
2323 --------
2424
25 The gnocchi module is a part of [OpenStack](https://git.openstack.org), an effort by the OpenStack infrastructure team to provide continuous integration testing and code review for OpenStack and OpenStack community projects as part of the core software. The module itself is used to flexibly configure and manage the management service for OpenStack.
25 The gnocchi module is a part of [OpenStack](https://opendev.org/openstack), an effort by the OpenStack infrastructure team to provide continuous integration testing and code review for OpenStack and OpenStack community projects as part of the core software. The module itself is used to flexibly configure and manage the management service for OpenStack.
2626
2727 Module Description
2828 ------------------
113113 Repository
114114 ----------
115115
116 * https://git.openstack.org/cgit/openstack/puppet-gnocchi
116 * https://opendev.org/openstack/puppet-gnocchi
00 # This is required for the docs build jobs
1 sphinx # BSD
2 openstackdocstheme # Apache-2.0
1 sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
2 sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD
3 openstackdocstheme>=1.20.0 # Apache-2.0
34
45 # This is required for the releasenotes build jobs
56 reno # Apache-2.0
4141 # HTTPProxyToWSGI middleware.
4242 # Defaults to $::os_service_default.
4343 #
44 # [*max_request_body_size*]
45 # (Optional) Set max request body size
46 # Defaults to $::os_service_default.
47 #
4448 # [*middlewares*]
4549 # (optional) Middlewares to use.
4650 # Defaults to $::os_service_default
5458 $sync_db = false,
5559 $auth_strategy = 'keystone',
5660 $enable_proxy_headers_parsing = $::os_service_default,
61 $max_request_body_size = $::os_service_default,
5762 $middlewares = $::os_service_default,
5863 ) inherits gnocchi::params {
5964
113118
114119 oslo::middleware { 'gnocchi_config':
115120 enable_proxy_headers_parsing => $enable_proxy_headers_parsing,
121 max_request_body_size => $max_request_body_size,
116122 }
117123
118124 if $auth_strategy == 'keystone' {
1717 tag => 'openstack',
1818 }
1919
20 include '::openstacklib::openstackclient'
21
2022 }
2123
165165 # compared against a list of possible roles for validity
166166 # true/false
167167 # Defaults to $::os_service_default.
168 #
169 # DEPRECATED PARAMETERS
170 #
171 # [*check_revocations_for_cached*]
172 # (Optional) If true, the revocation list will be checked for cached tokens.
173 # This requires that PKI tokens are configured on the identity server.
174 # boolean value.
175 # Defaults to undef
176 #
177 # [*hash_algorithms*]
178 # (Optional) Hash algorithms to use for hashing PKI tokens. This may be a
179 # single algorithm or multiple. The algorithms are those supported by Python
180 # standard hashlib.new(). The hashes will be tried in the order given, so put
181 # the preferred one first for performance. The result of the first hash will
182 # be stored in the cache. This will typically be set to multiple values only
183 # while migrating from a less secure algorithm to a more secure one. Once all
184 # the old tokens are expired this option should be set to a single value for
185 # better performance. List value.
186 # Defaults to undef.
187168 #
188169 class gnocchi::keystone::authtoken(
189170 $username = 'gnocchi',
219200 $region_name = $::os_service_default,
220201 $token_cache_time = $::os_service_default,
221202 $service_token_roles_required = $::os_service_default,
222 # DEPRECATED PARAMETERS
223 $check_revocations_for_cached = undef,
224 $hash_algorithms = undef,
225203 ) {
226204
227205 include ::gnocchi::deps
228206
229207 if is_service_default($password) {
230208 fail('Please set password for Gnocchi service user')
231 }
232
233 if $check_revocations_for_cached {
234 warning('check_revocations_for_cached parameter is deprecated, has no effect and will be removed in the future.')
235 }
236
237 if $hash_algorithms {
238 warning('hash_algorithms parameter is deprecated, has no effect and will be removed in the future.')
239209 }
240210
241211 keystone::resource::authtoken { 'gnocchi_config':
8282 'storage/driver': value => 'ceph';
8383 'storage/ceph_username': value => $ceph_username;
8484 'storage/ceph_keyring': value => $ceph_keyring;
85 'storage/ceph_secret': value => $ceph_secret;
85 'storage/ceph_secret': value => $ceph_secret, secret => true;
8686 'storage/ceph_pool': value => $ceph_pool;
8787 'storage/ceph_conffile': value => $ceph_conffile;
8888 }
2020 # (optional) S3 storage secret access key.
2121 # Defaults to undef
2222 #
23 # [*s3_bucket_prefix*]
24 # (optional) S3 bucket prefix for gnocchi
25 # Defaults to undef
2326 #
2427 class gnocchi::storage::s3(
2528 $s3_endpoint_url = $::os_service_default,
2629 $s3_region_name = $::os_service_default,
2730 $s3_access_key_id = undef,
2831 $s3_secret_access_key = undef,
32 $s3_bucket_prefix = $::os_service_default,
2933 ) {
3034
3135 include ::gnocchi::deps
3640 'storage/s3_region_name': value => $s3_region_name;
3741 'storage/s3_access_key_id': value => $s3_access_key_id;
3842 'storage/s3_secret_access_key': value => $s3_secret_access_key;
43 'storage/s3_bucket_prefix': value => $s3_bucket_prefix;
3944 }
4045
4146 }
66 },
77 {
88 "name": "openstack/keystone",
9 "version_requirement": ">=14.4.0 <15.0.0"
9 "version_requirement": ">=15.2.0 <16.0.0"
1010 },
1111 {
1212 "name": "puppetlabs/stdlib",
1818 },
1919 {
2020 "name": "openstack/openstacklib",
21 "version_requirement": ">=14.4.0 <15.0.0"
21 "version_requirement": ">=15.2.0 <16.0.0"
2222 },
2323 {
2424 "name": "openstack/oslo",
25 "version_requirement": ">=14.4.0 <15.0.0"
25 "version_requirement": ">=15.2.0 <16.0.0"
2626 }
2727 ],
2828 "description": "Installs and configures OpenStack Gnocchi (Metric & index storage API).",
6464 ],
6565 "source": "git://github.com/openstack/puppet-gnocchi.git",
6666 "summary": "Puppet module for OpenStack Gnocchi",
67 "version": "14.4.0"
67 "version": "15.2.0"
6868 }
0 ---
1 features:
2 - Add openstackclient installation to the client class.
0 ---
1 features:
2 - |
3 Add support to configure `[oslo_middleware]/max_request_body_size` with
4 `$max_request_body_size`.
0 ---
1 upgrade:
2 - |
3 The deprecated pki related options check_revocations_for_cached and
4 hash_algorithms option has been removed.
4444 master_doc = 'index'
4545
4646 # General information about the project.
47 project = u'puppet-gnocchi Release Notes'
4847 copyright = u'2017, Puppet OpenStack Developers'
4948
5049 # The version info for the project you're documenting, acts as replacement for
137136
138137 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
139138 # using the given strftime format.
140 html_last_updated_fmt = '%Y-%m-%d %H:%M'
141139
142140 # If true, SmartyPants will be used to convert quotes and dashes to
143141 # typographically correct entities.
181179
182180
183181 # -- Options for LaTeX output ---------------------------------------------
184
185 latex_elements = {
186 # The paper size ('letterpaper' or 'a4paper').
187 #'papersize': 'letterpaper',
188
189 # The font size ('10pt', '11pt' or '12pt').
190 #'pointsize': '10pt',
191
192 # Additional stuff for the LaTeX preamble.
193 #'preamble': '',
194 }
195182
196183 # Grouping the document tree into LaTeX files. List of tuples
197184 # (source start file, target name, title,
88 :maxdepth: 2
99
1010 unreleased
11 stein
1112 rocky
1213 queens
1314 pike
0 ===================================
1 Stein Series Release Notes
2 ===================================
3
4 .. release-notes::
5 :branch: stable/stein
6262 is_expected.to contain_gnocchi_config('api/middlewares').with_value('<SERVICE DEFAULT>')
6363 is_expected.to contain_oslo__middleware('gnocchi_config').with(
6464 :enable_proxy_headers_parsing => '<SERVICE DEFAULT>',
65 :max_request_body_size => '<SERVICE DEFAULT>',
6566 )
6667 end
6768
164165 )}
165166 end
166167
168 context 'with max_request_body_size' do
169 before do
170 params.merge!({:max_request_body_size => '102400' })
171 end
172
173 it { is_expected.to contain_oslo__middleware('gnocchi_config').with(
174 :max_request_body_size => '102400',
175 )}
176 end
177
167178 end
168179
169180 on_supported_os({
99 :name => platform_params[:client_package_name],
1010 :tag => 'openstack',
1111 )}
12
13 it { is_expected.to contain_class('openstacklib::openstackclient') }
1214 end
1315
1416 on_supported_os({
3030 params.merge!({
3131 :ceph_secret => 'secrete'})
3232 end
33 it { is_expected.to contain_gnocchi_config('storage/ceph_secret').with_value('secrete') }
33 it { is_expected.to contain_gnocchi_config('storage/ceph_secret').with_value('secrete').with_secret(true) }
3434 end
3535
3636 context 'without required parameters' do
33 envlist = releasenotes
44
55 [testenv]
6 install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
6 install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} {opts} {packages}
77
88 [testenv:releasenotes]
99 basepython = python3