18 Commits

Author SHA1 Message Date
Takashi Kajinami
2ba57c62b9 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Id54c1a0efdb797ab10ddfb002c790d7e01e4e078
2023-03-02 11:31:00 +09:00
Takashi Kajinami
ad5de59da3 Do not declare service resource when manage_service is false
Change-Id: I4922f159985adb0e97daeb41d842d47ba8bee5fa
2022-01-24 09:19:15 +09:00
Tobias Urdin
48f8bb2723 Convert all class usage to relative names
Change-Id: If72477841529ea17c10963846c5ad0fb65e373ba
2019-12-08 23:10:58 +01:00
ZhongShengping
8a28a993c9 Manage oslo_middleware/max_request_body_size
So that we can increase it from the default 114688

Useful in case for example the OS-Federation mapping is too large.

If this limit is breached mistral will return a 413 Entity Too Large
and not log anything to mistral.log.

Change-Id: I3a658d4426689ba09188b0889082b63a744065fc
Closes-Bug: #1835161
2019-07-04 11:36:57 +08:00
Tobias Urdin
c944e90617 Convert to rspec-puppet-facts
Change-Id: Id3748b79510756ff32d6523bd7e7727175c94542
2018-11-24 15:16:05 +01:00
ff1a85373c Install python3-mistralclient in Fedora or RedHat > 7
Fedora repo [1] has python3 packages, start consuming those.

[1] http://trunk.rdoproject.org/fedora/puppet-passed-ci/

Also fix client_package name.

Change-Id: I9668cfc992da16ddddf830e7b2f3d7f5c58d8614
2018-10-26 23:30:45 +05:30
Alex Schultz
b8612ad8d3 Include authtoken configuration for api
Ie6a6003d667c8c6045439ca3d35f0f121097bddc removed the inclusion of
::mistral::keystone::authtoken in the ::mistral class. This change adds
it to the api configuration which matches what we have for other
modules. Additionally this change add auth_strategy to the api class to
allow users to be able to disable it if they don't want to configuration
keystone.

Change-Id: I68037d0a1f8f43ca40ef6faff119c3fb4b535a90
Closes-Bug: #1777541
2018-06-18 21:35:03 -06:00
Tobias Urdin
6117cf1066 Remove deprecated parameters
Removes deprecated parameters that has been
deprecated for one cycle or more.

Change-Id: Ie6a6003d667c8c6045439ca3d35f0f121097bddc
2018-06-14 17:08:03 +02:00
ZhongShengping
97425d5b64 Remove deprecated rabbit params
Remove the deprecated rabbit params which has been deprecated for
two years. The default_transport_url has been present for a while
now and should be used.

Change-Id: Iffed46781ef7c9daee5155dffa381c2a86dc8dcf
2018-05-24 14:01:02 +08:00
ZhongShengping
225808af24 oslo middleware: check puppet resource instead of actual config in spec
Change-Id: I71b818c7f30513a3ee4c8efc5329cc9a8d5e61be
2018-03-21 11:27:40 +08:00
Emilien Macchi
f708a258a4 Revert "Move Mistral to authtoken"
It breaks TripleO CI, where we run Ironic Introspection.
It sounds like we need to fix something.

Note: I've proposed a patch to have more testing in puppet-mistral, so
we'll be able to test this feature later.

This reverts commit bf3625d5af5aabd5b2d3679f2ae61d63153cb2a4.
Partial-Bug: #1609688

Change-Id: I0d237081d257417314016158c4f207a81e2948b6
2016-12-19 19:56:35 +00:00
Alex Schultz
bf3625d5af Move Mistral to authtoken
Switch keystone_authtoken parameters for the new class
mistral::keystone::authtoken to configure the keystone_authtoken section
in mistral.conf.

Some deprecations:
- mistral::auth_uri is deprecated in favor of
  mistral::keystone::authtoken::auth_uri.
- mistral::identity_uri is deprecated in favor of
  mistral::keystone::authtoken::auth_url.
- mistral::keystone_user is deprecated in favor of
  mistral::keystone::authtoken::username.
- mistral::keystone_tenant is deprecated in favor of
  mistral::keystone::authtoken::project_name.
- mistral::keystone_password is deprecated in favor of
  mistral::keystone::authtoken::password.

Change-Id: I71969ef09018f9daa5f81c4f3bcbdb0b0974446c
Co-Authored-By: Iury Gregory Melo Ferreira <iurygregory@gmail.com>
Closes-bug: #1604463
2016-12-13 07:26:35 -07:00
ZhongShengping
a891cba1ae Add enable_proxy_headers_parsing option
The patch enables paste middleware to handle SSL requests through
HTTPProxyToWSGI middleware.

Change-Id: Ifbed564e234303a4abbc5d2a90266c8c34e6516c
2016-10-28 20:19:16 +08:00
Maksym Yatsenko
18befb1945 Change worker defaults to ::os_workers
This patch changes the default worker count from ::processorcount to the
new ::os_workers fact. ::os_workers is based on the number of processors
(currently cpu/4) but is capped at a maximum of 8 worker processors.
This is a much more reasonable default in general and prevents excessive
resource consumption on systems with a large number of CPUs.

Change-Id: I3d198132ab50f686e1921bfeaa73188ea7d67116
2016-10-07 13:41:15 +03:00
Carlos Camacho
ccc911a29b Add api_workers to puppet-mistral
Currently composable mistral is suffering OOM issues
This param will be used in composable mistral and CI
hopefully reducing OOM issues.

Number of workers for Mistral API service
default is equal to the number of CPUs available if that can
be determined, else a default worker count of 1 is returned.

Also sorted alphabetically this api manifest parameters

Change-Id: I5c3474ebbe0a0296ee24ee66c4d29845ff951cd4
2016-08-11 13:42:37 +02:00
Emilien Macchi
d765057673 Implement WSGI support for mistral-api
* Allow to deploy mistral-api in WSGI with apache.
* Switch beaker tests to deploy WSGI by default.
* Check if 8041 port is listening on apache

Change-Id: I031198958fdd4147121fbd64b6510bdd564e03c3
2016-02-12 11:50:22 -05:00
Emilien Macchi
9f19d11c16 Refactor puppet-mistral
The module was written in a way that was not consistent with other
Puppet OpenStack modules, the interface was very different.

This patch:
* add db.pp
* update logging.pp with usual parameters
* drop useless parameters in keystone/auth.pp
* cleanup params.pp
* drop services.pp, which is useless
* Update unit tests
* Add coordination support in init.pp
* Some alignment issues
* Add more doc in README
* Stop including ::mistral in all classes
* Include mistral::policy in mistral::api

This is a non-backward compatible change, but since the module has no
release and no stable branch, also very new, this is not something we
need to care at this stage.
People using this module at this stage will have to update their
manifests otherwise their Puppet catalog will fail.

Change-Id: I979e21caa71ee35337dc01b225878701868e966a
2016-02-09 07:34:50 -05:00
Dan Prince
f46814e9a7 Add mistral::api class
Adds a new class to manage the mistral-api package/service.

Change-Id: I678fa32183cf9f3a2116e61ff5fd800ad1600d03
2015-12-09 10:28:49 -05:00