Commit Graph

15 Commits

Author SHA1 Message Date
Zuul
3fc60e2b9e Merge "Improve cinder_type properties regex" 2021-04-21 18:01:01 +00:00
Thomas Goirand
003b8d6ab6 Add support for cinder_api_uwsgi_config in Debian
This patch is adding the configuration of the number of workers,
threads, and the size of the listen queue in Debian, which uses
uwsgi to run Cinder API. Therefore, this patch adds a new
cinder_api_uwsgi_config provider as well as a new
cinder::wsgi::uwsgi class.

Change-Id: I6f4c6a51f8e33616069411a926a63ba2b388e25d
2021-04-10 22:40:57 +02:00
Tobias Urdin
a032bec7d6 Improve cinder_type properties regex
This changes the regex for properties managed with
the cinder_type resource so that it supports the
format Cinder needs for multiattach and similar.

  multiattach=<is> True

This patch is needed so that cinder_type resources
can set the above.

See regex testing here [1]. Needs to be backported
to older versions so that cinder_type can be
properly used there as well.

[1] https://regexr.com/5imqk

Change-Id: If08fce9443281e65636aaaa99e3139732435f6f7
2021-04-08 21:33:15 +02:00
Zuul
a8628dc884 Merge "Cinder-type param is_public/access_project_ids" 2019-01-03 02:31:00 +00:00
Julien Cosmao
31671ebc94 Cinder-type param is_public/access_project_ids
Added parameters is_public
  - allow create public or private cinder type
  boolean: Default to true
Added propertie access_project_ids
  - Specify list of project ids which have
  access to private cinder type

Change-Id: I7f6aac76b441cb4ac4901901c6d894a1c920d399
2018-09-24 16:30:13 +02:00
Alexandre Arents
6bed0940b7 Add cinder QOS support
cinder::qos create cinder QOS with properties and
volume-type associations

Change-Id: I35bd84e88308bf5f4cb62aab4a807103b1b1e2cf
Implements: blueprint support-cinder-qos
2018-09-24 15:16:54 +02:00
Clayton O'Neill
228627990d Fix cinder_type to work with no properties param
If the properties parameter isn't specified, then it defaults to nil.
However, when the provider iterates over the properties, it assumes
properties will be an array, and fails when it's nil.

Change-Id: Ie5342b0dde70394a32639e378aee9c7e6aa64a87
2016-09-17 23:01:50 +00:00
Matt Fischer
bb1e3e67dc Cinder hooks support
This code moves all deps to an external class so that Cinder can be
installed with mechanisms besides packages (like venv or docker). This
also cleans-up the dependency tree by removing false or confusing
dependencies.

Co-Author: Craig Delatte <craig.delatte@twcable.com>

Change-Id: I55a62f6173fe463fb8fb65df6729c9f509a0fb04
2016-09-13 09:18:41 -06:00
Denis Egorenko
9bc49efba8 Replace defines for managing cinder types with providers
We have define classes, which allow to manage Cinder types and their
properties. This patch switches using of define classes to puppet
providers, based on openstack auth from openstacklib.

related blueprint use-openstackclient-in-module-resources

Change-Id: I4f7e8137fa3e1ad3e141c58eaba110b12101d22c
2016-03-04 17:58:20 +03:00
Alex Schultz
667e6c0850 Switch cinder to use os_service_default fact
This change switches the cinder module to use the os_service_default
fact for configuration options that default to '<SERVICE DEFAULT>'.

Change-Id: I8c28f02794fdc7034a85eab80a66a98f664380ea
Depends-On: Ieeb92b4e7fbb556a8d32682fb24284091227c991
2015-10-07 15:48:56 -05:00
Yanis Guenane
b554d30aaf Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in cinder_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

cinder_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

cinder_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  cinder_config { 'DEFAULT/foo' : value => $myvar }
} else {
  cinder_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

cinder_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

cinder_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: I10931ea201b567ff6576fd3f87d05f2fd0816166
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 10:49:25 +02:00
Yanis Guenane
69bfb7cb81 Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: I42bc4700302b4c3141345fe442168771c079f712
2015-08-12 18:54:38 +02:00
Mathieu Gagné
9686bb830b Allow to hide config values from Puppet logs
Hide configuration value from Puppet logs if the secret parameter
is set to true.

Fixes: bug #1173322
Change-Id: I380a86b834c2f6cb6f347cade6137ee2e757f091
2013-05-28 15:17:58 -04:00
Mathieu Gagné
56644f7914 Capitalize boolean values in config files
This patch allows the usage of Puppet boolean values and still
configure values with OpenStack boolean style: True/False.

Change-Id: I972ac41757f253500f43dc285784f5f8af6ce2ab
2013-05-21 19:28:01 -04:00
Dan Bode
14a96dc17f update cinder for folsome
These are my initial changes to Joe's initial cinder module.
2012-10-11 02:11:23 -07:00