Commit Graph

15 Commits

Author SHA1 Message Date
Takashi Kajinami 007f12a913 Switch provider to manage rootwrap.conf file
... so that we users can use '<SERVICE DEFAULT>' similarly to
the resource types to manage the <service>.conf files.

Change-Id: I6fa40acff1989436c5326e94c98c9574644d18b2
2022-07-09 13:29:59 +09:00
Thomas Goirand c13f2ffe8a Switch to ini_settings
This fixes the puppet run going from ['32'] to '32' constantly.

Change-Id: Ifffe0e5835495221e94f5d4f0b48f171ede3eb09
2022-02-21 23:14:53 +09:00
Takashi Kajinami 2e4b2c046b Allow customizing separator for api-paste.ini
The api-paste.ini accepts not only "=" but also ":" and some services
like Barbican have been using ":" for their default api-paste.ini
files.

[composite:main]
use = egg:Paste#urlmap
/: barbican_version
/v1: barbican-api-keystone

This change allows users to use ":" so that they can update the ini
files with keeping it consistent with the default fules

Depends-on: https://review.opendev.org/813614
Change-Id: I528fdfe72f4c094695128186d43675480c163c8a
2021-11-01 22:04:48 +09:00
Takashi Kajinami 5c47db969b Add support for MultiStrOpt
This replaces the provider implementation of designate_config type so
that MultiStrOpt, which is used by several options like
 - oslo_messaging_notifications/driver
 - oslo_policy/policy_dirs
are handled correctly.

Change-Id: Ibba47194e745d37607f20316674e168d342e0f85
2021-07-13 17:53:57 +09:00
Thomas Goirand 4c72eefcaf Add support for designate_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 Designate API. Therefore, this patch adds a new
designate_api_uwsgi_config provider as well as a new
designate::wsgi::uwsgi class.

Change-Id: Ie007ebb4f1c861d9ac719b0d2909dbe1eb0fac16
2021-04-13 00:05:19 +02:00
Takashi Kajinami 10e6b7f334 Use anchor to require necessary packages
... so that correct packages are required without re-defining them in
resource implementations.

Change-Id: I2732e1870c93369e54598826d98b98db7c2d633f
2020-05-04 02:23:20 +09:00
alexey-mr 2d6b1d844d spec: Add Unit-Test for designate rootwrap_config and
paste_ini types/providers.

Additionally it contains patch with autorequire of designate-common
package for rootwrap_conf.

Change-Id: I64a75948f30661706ee6338448d9f662d28e871f
Partial-bug: #1440401
2016-03-11 15:26:38 +03:00
Jenkins 2e01f6bd62 Merge "add designate_rootwrap_config in designate::config" 2015-09-24 20:09:15 +00:00
Yanis Guenane aa4184a043 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in designate_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 :

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

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

That means that all the current :

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

can be removed in favor of :

designate_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 :

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

Change-Id: I16873c60bfce5b2f432f034755b7bfa3f1383dc5
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 10:56:46 +02:00
Yanis Guenane 712bfd942c 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: I8f959e4ebbce2545843a901345a2ac3daf4259a1
2015-08-12 18:58:10 +02:00
Xiaohua Yuan 7bf0e24007 add designate_rootwrap_config in designate::config
this path aims to add designate_rootwrap_config
in designate::config.

use designate config resources to manage
custom configurations in rootwrap config files.

Change-Id: Iee8aa66ff6464f387664d2a0571f6e6ad685dc2b
2015-08-07 20:12:25 -07:00
Jeremy Stanley fb9af2b3a2 Fix beaker on Trusty and update .gitreview file
* Update .gitreview file because of Puppet OpenStack modules project
  renaming.
* Fix Beaker tests on Ubuntu Trusty (newline added if secret)

We have to do that in a single patch because:
* project has been renamed so gitreview needs to be updated
* beaker jobs are voting

Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
Co-Authored-By: Emilien Macchi <emilien@redhat.com>
Co-Authored-By: Sebastien Badia <sbadia@redhat.com>
Closes-Bug: #1465780
Change-Id: If562aa5bc969c316fd8fd0cb06ed7115c465a57d
2015-06-19 00:58:54 +02:00
Xingchao Yu 439f9f0870 Add designate_api_paste_ini type
This patch is aim to add designate_api_paste_ini custom type to
manage designate api-paste.ini config.

Change-Id: I08d31c44ad3318f14730142aa1b696441ba7a08f
2014-09-24 04:17:56 +00:00
Sebastien Badia 3caedea97a Hide secrets from puppet logs
Currently secrets like rabbit_password or admin_password are laked

puppet logs when changed. This commit changes designate_*_config and
designate_*_ini types adding a new parameter that triggers obfuscation
the values in puppet logs.

Change-Id: I54e7c0bb27e46928db1a7f0125783c02d00d0e69
Closes-Bug: #1328448
2014-07-22 13:22:01 +00:00
Xingchao Yu bbdbc64bb4 Init commit to do basic setting 2013-09-25 22:22:17 +08:00