Commit Graph

62 Commits

Author SHA1 Message Date
Takashi Kajinami bd33b1037e Retire puppet-freezer - Step 2: Remove Project Content
Depends-on: https://review.opendev.org/808072
Change-Id: I647ce166bc286a8312baa51b3972a35ae6bc4818
2021-09-13 17:54:36 +09:00
Thomas Goirand d48492d84a Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I6095e9aa5f9c6dcd07e246d78f86ff2ef5660fa4
2021-06-09 17:36:59 +02:00
Takashi Kajinami 77f165f11d Fix lint errors with the latest lint packages
This change fixes the following lint errors discovered since we removed
pin of lint packages.

manifests/config.pp:20:WARNING: Duplicate class parameter documentation
for freezer::config::freezer_config
manifests/config.pp:7:WARNING: Duplicate class parameter documentation
for freezer::config::freezer_config
manifests/init.pp:7:WARNING: No matching class parameter for
documentation of freezer::sample_parameter

Change-Id: I4f4c5688f60bfe9161f4a4827f8ebe1bc6d1b8f6
2021-05-11 18:53:53 +09:00
Thomas Goirand f57e621e53 Allow to configure policy_dirs
This patch makes it possible to override the current service default,
which is /etc/<service>/policy.d .

Change-Id: Iaffada6b0cd29e880a65ce9205b87b94940e47b7
2021-04-11 23:38:49 +02:00
Takashi Kajinami ebed1e8d9c Add support for oslo_policy/enforce_new_defaults
Depends-on: https://review.opendev.org/781428
Change-Id: Ic4638dec082a58d8244adebf73d87a82f5377689
2021-03-24 16:32:26 +09:00
Takashi Kajinami 25692014c0 Add support for the oslo_policy/enforce_scope parameter
Depends-on: https://review.opendev.org/#/c/759008/
Change-Id: I74616f84592caaed261082325b7c2ef11124239e
2021-03-21 10:55:09 +09:00
Takashi Kajinami c494e85c90 Use yaml instead of json for policy file
Because usage of json for policy file will be deprecated and replaced
by yaml[1].

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Depends-on: https://review.opendev.org/769647
Change-Id: I35c5f1e410b383e4345986a136a54088f60acda6
2021-01-07 23:20:16 +00:00
ZhongShengping 84f329b7b6 Allow db sync timeouts to be configurable
As Openstack projects continue to have longer database migration
chains, the Puppet default timeout of 300 seconds for an execution
is becoming too short a duration on some hardware, leading to timeouts.
As projects continue to add more migration scripts without pruning
the base, timeouts will continue to become more frequent unless
this time can be expanded.

Change-Id: Ic3dee0bf0a73c57f24c446620e206c4f4a94c600
Closes-Bug: #1904962
2020-11-23 09:27:52 +08:00
Takashi Kajinami 7bd9f6e58f Add support for the keystone_authtoken/service_type parameter
Change-Id: I6a2424653efab14ce8c1a250bc69e7a9cca8dcae
2020-11-03 17:51:42 +09:00
Zuul aa254ca6f5 Merge "Do not validate database_connection format" 2020-08-31 14:15:38 +00:00
Takashi Kajinami 08c4afed1d Do not validate database_connection format
Currently we validate database_connection in 2 layers, each puppet
modules and puppet-oslo, however this makes it difficult to maintain
validation pattern because we always need to fix both.
This patch removes the validation from each puppet modules so that
we need to maitain only one place, puppet-oslo to update validation
logic.

Change-Id: I9cd6c86e873f7dec55c0bb68cb4d40fe0b7fc1e5
2020-08-31 00:04:36 +09:00
ZhongShengping cfc9a27371 Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine.

Change-Id: I5ba8a602e500d948d7d758bfd6a2d8594dd3be09
Depends-On: https://review.opendev.org/#/c/748067
Closes-Bug: #1892952
2020-08-26 11:55:50 +08:00
ZhongShengping ff3485b67f Add service_token_roles for keystone authtoken config
Add the ability to configure service_token_roles.

Change-Id: Iab41f836366d42d16b6c3dc9e47db381992d6fcc
Closes-Bug: #1892284
2020-08-20 10:41:27 +08:00
Lewis Denny f0305b8f3d Add support for the interface parameter in authtoken middleware
This patch adds support for [keystone_authtoken] interface parameter,
so that operators can define which endpoint should be used by authtoken
middleware.

Change-Id: I451c224457b20f01c72283ca022024679aff9d07
2020-07-16 10:57:22 +10:00
Takashi Kajinami 72718329e9 Remove password hash generation in each puppet modules
... and migrate it to openstacklib so that all logics about database
configuration are implemented in one common place.

Depends-on: https://review.opendev.org/#/c/728595/
Change-Id: Ie66552bc2a4447abca9d685e461ac3837568583d
2020-05-19 22:48:57 +09:00
ZhongShengping ee8d6c8f83 Deprecate min_pool_size option
min_pool_size option is not used,see:

https://review.opendev.org/#/c/565090/

Change-Id: Id30db32567d1c0ced302e61ef5b04f40b334c651
Closes-Bug: #1868511
2020-03-25 14:53:40 +08:00
ZhongShengping cc2bf1b6b7 Remove idle_timeout option
The idle_timeout parameter has been deprecated for two releases.
We can remove it.

Change-Id: I8dd3443d02949c4001b8f7f7e8a9e9c9ad5a5062
2020-03-23 14:45:48 +08:00
Tobias Urdin 5dc3b7d92b Convert all class usage to relative names
Change-Id: I626c4359941103adbed590b2b83bca6f64c16e34
2019-12-08 23:05:17 +01:00
ZhongShengping 6acfd5d87b Remove deprecated pki related options
The deprecated pki related options check_revocations_for_cached and
hash_algorithms option has been removed.

Change-Id: I0715ea7a8b578155efaebcc68072556292359610
2019-08-15 11:51:37 +08:00
ZhongShengping 65162bd7cb Deprecate idle_timeout option
The idle_timeout parameter is deprecated, use connection_recycle_time
instead[1].

[1]https://review.opendev.org/#/c/334182/

Change-Id: Iddc726674024570139328633a40fcdc293f50baf
Depends-On: https://review.opendev.org/656106/
Closes-Bug: #1826692
2019-04-28 15:00:07 +08:00
Zuul cfcc2e5efd Merge "Provide more useful fail message" 2019-04-25 15:17:16 +00:00
Zuul 353e9331c9 Merge "Use validate_legacy" 2019-02-25 17:19:50 +00:00
Tobias Urdin e54dc558d7 Use validate_legacy
This changes all the puppet 3 validate_* functions
to use the validate_legacy function.

The validate_legacy function has been available since
about three years but require Puppet >= 4.4.0 and since
there is Puppet 4.10.12 as latest we should assume people
are running a fairly new Puppet 4 version.

This is the first step to then remove all validate function
calls and use proper types for parameter as described in spec [1].

[1] https://review.openstack.org/#/c/568929/

Change-Id: I62d32faa75928ecca27a10480ce8823aaa03fafb
2019-02-23 16:02:08 +01:00
ZhongShengping 2b5fdbab82 Service_token_roles_required missing in the server config file
Service_token_roles_required missing in the server config file which
allows backwards compatibility to ensure that the service tokens are
compared against a list of possible roles for validity.

Change-Id: I95089f9f1d5039d7d14e3850535536ec1804fdb1
Closes-Bug: 1778198
2019-02-15 10:03:02 +08:00
Tobias Urdin e34af1ef04 Use puppet 4 compatible mysql functions
These was introduced in 6.0.0 and is required to
support later version of puppetlabs-mysql.

Change-Id: I34aca114343f1d079e50f6d04728e7c3745c26fa
2019-02-08 12:07:46 +01:00
Zuul 4c41065beb Merge "Add freezer::deps to freezer::db" 2019-01-19 00:05:29 +00:00
Tobias Urdin b0903faa3f Add freezer::deps to freezer::db
So it's consistent on all modules.

Change-Id: I22978072f1822072cfb1fa383b9f95e86f36292d
2019-01-18 11:08:47 +01:00
Tobias Urdin 2a6342ab79 Inherit pyvers from openstacklib::defaults
Change-Id: Ie770b349c157bc36e19846971fece37f336a8b32
2019-01-17 21:27:05 +01:00
ZhongShengping 89f821a76c Use dependency references
Change-Id: I02ec517b267c9634d05cbea745724c0f971fccdd
2018-12-21 08:56:48 +08:00
ZhongShengping b30b42ebb3 Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: Ie6215020ef9530f0c61efa5fbc1f3a225dce5a9c
2018-12-13 17:10:01 +08:00
Tobias Urdin 4663d96b7e Remove auth_uri
Change-Id: I29d8f94178a501b7c5e6b482c22c9a0952cba463
2018-11-28 23:57:00 +01:00
ZhongShengping 56378b0272 Deprecate pki related options
check_revocations_for_cached and hash_algorithms are deprecated for
removel because of PKI token format is no longer supported.
Update warning message and add a release note.

Change-Id: I590241e0dca24ffa5dc084576fd72eb171905582
Closes-Bug: #1804562
Closes-Bug: #1804720
2018-11-23 10:22:11 +08:00
zhulingjie ce3e40762d Provide more useful fail message
Change-Id: I6c14a15411c29677c294e7eef1da7050b2fceb3d
Closes-Bug: #1792719
2018-09-13 20:32:33 -04:00
zhubingbing 08231c90af Fix annotations
Change-Id: Id38d863a5d237e409fbb5b1f99f0062002f7291d
2018-06-15 15:07:37 +08:00
ZhijunWei 8f32e7c0dd Replace port 35357 with 5000
Now that the v2.0 API has been removed, we don't have a reason to
include deployment instructions for two separate applications on
different ports.

Change-Id: Ie35bd3c522886eb696facde338b8f42785a904ac
2018-05-13 15:39:44 +08:00
zhubingbing 19e9034d4f neat: missing : in $::os_service_default
Change-Id: I14607dfa8a95dda4a6f8d816484dc92887e24856
2018-05-11 14:02:39 +08:00
Zuul efd9b15418 Merge "Debian is using python3-freezerclient" 2018-04-13 03:10:26 +00:00
zhubingbing 293aeeefcc Debian is using python3-freezerclient
Change-Id: I9bd0cbd5a6f09dc3233f11c24164c6a6e785b97b
2018-04-12 11:14:17 +08:00
ZhongShengping 7c516ec23f Deprecate auth_uri option
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

[1]https://review.openstack.org/#/c/508522/

Change-Id: I9966c0443f8199c31a66adc1465c6336a7c71dd7
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-10 00:56:01 +00:00
ZhongShengping 2be1c697c5 Remove useless code for sync.pp
In order to improve efficiency, remove useless code.

Change-Id: I9b6a9514d3c00fa3bc973a0cd230cf9b45428866
2018-04-08 09:07:50 +08:00
ZhongShengping 2387e68896 Add pool_timeout option
Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.

Change-Id: Ieec85a15c5af99bf15c26bb6271013ee1d9e433c
Closes-Bug: #1757581
2018-03-22 15:40:13 +08:00
Zuul 4f799d30f5 Merge "Drop all qpid related explanations" 2018-03-14 02:37:51 +00:00
ZhongShengping 2632d6796e Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I39bccb5d538885c827b26b826029b4f8dfcfcd42
Closes-Bug: #1755102
2018-03-12 16:33:07 +08:00
ZhongShengping ef0aaa570f Drop all qpid related explanations
Qpid was removed in Mitaka from Oslo Messaging, so we
can remove all qpid related explanations.

Change-Id: Id562486631e18592a3c00df5dcaf134b1d2ad79e
2018-03-09 15:06:23 +08:00
wangqi 99663e3c6a fix spelling error with word 'frezer'
Change-Id: Iabfeff461146180f3e1d4e0185b6a1007163808e
2018-02-28 05:30:25 +00:00
ZhongShengping da9091dc8f Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: If2986a26f23f7eca97fab5821f1e5a24dcbe93f4
2018-01-15 15:42:28 +08:00
Emilien Macchi 193858a13b Add group to policy management
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.

Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed
Change-Id: I998405939f2481438eb73b5cee2e595fc34073b5
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-01-10 14:22:45 -08:00
ZhongShengping 84e686720f Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: Ia3719bc30a2fc65eecc11019261337f25ec09b99
2017-11-28 09:26:34 +08:00
ZhongShengping 522fac0727 Configure *_domain_name to Default by default
Keystone v2.0 API was removed so we have no choice but configuring
user_domain_name and project_domain_name otherwise it fallbacks to
Keystone v2.0 and it fails. This patch sets the default value so we make
sure Keystone v3 will be used out of the box for our users.

Change-Id: I47db3ba0ec57c33f99d8256dda6878c5a244522e
2017-10-13 14:31:11 +08:00
ZhongShengping 78ad047bf3 Add deps to all that is needed
Change-Id: I61a6fab1dfa13094a2a9cb0dad7b7e8cdb7aaeb7
2017-09-21 09:12:56 +08:00