Currently the openstacklib::policy::policies parameter requires
the following format.
openstacklib::policy { 'foo':
policies => {
'title' => {
'key' => 'policy-key',
'value' => 'policy-value'
}
},
...
}
However the top level key ('title') is used to determine resource
names and does not affect actual configuration. This is quite redundant
and sometimes confusing to users.
This allows using title strings to define policy keys. With this change
users can use a policies value like the following example. This is
similar to the existing config classes interface.
openstacklib::policy { 'foo':
policies => {
'policy-key' => {
'value' => 'policy-value'
}
},
...
}
Change-Id: I7f8caa2b3e5cab852f64c5fdbb3452485d8aabab
Debian 12 was released in June 2023. Recent versions of OpenStack
(actually, 2023.1 and later) no longer support Debian 11.
Change-Id: I3762a0c9d2bd6f4a11c147e40a3140613ec8c3cf
Debian 12 has PostgreSQL 15, and uses scram-sha-256 by default. So
we need a fix similar to the one[1] made for Ubuntu earlier.
[1] 6adbd49b9f2ae8d52f021c0fdb67760695483f85
Change-Id: I6e6e88951caa3aea0b7a1e13238e22ae4cb1c3dd
This reverts commit 0f3357a209dd9ed0b7e8ba23a83b9dc33475df1b.
Reason for revert:
The openstack tag is used by variety of package resources, so it's not
specific to client packages.
Change-Id: If171ff72b2f4d74cf520c2b1b48a3526b1b0929e
... instead of copying the implementations into our modules. The issue
with unit tests, which is described in the comment, is no longer seen.
Change-Id: If5dd1a7d8987010f35e164861c807869128f690c
This replaces usage of `should` by `expect` according to the following
deprecation warning.
Using `should` from rspec-expectations' old `:should` syntax without
explicitly enabling the syntax is deprecated. Use the new `:expect`
syntax or explicitly enable `:should` with
`config.expect_with(:rspec) { |c| c.syntax = :should }`
instead.
Change-Id: Ifaac60ea93a5f854cd70929d7f3f5308a9b9911e
The default password encryption in Ubuntu 22.04 has been changed from
md5 to scram-sha-256 by [1].
[1] 985309e2df
Change-Id: I7f1218a3dc1377305b5eb7296b3ef03645f6a085
Add file to the reno documentation build to show release notes for
stable/2023.2.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.
Sem-Ver: feature
Change-Id: I6d09b765c2e6d238b270349672d60c1c9e51cf62
Recent update in rspec-puppet removed some of the config interfaces for
old puppet versions[1]. This drops usage of these interfaces to resolve
the following error in unit tests.
```
An error occurred while loading ./spec/unit/provider/manila_spec.rb.
Failure/Error: c.manifest_dir = File.join(fixture_path, 'manifests')
NoMethodError:
undefined method `manifest_dir='...
```
This also removes explicit setting of mock module. The definition is
no longer required since we bumped puppetlabs_spec_helper to v 5.0.0.
[1] 316d95923c
Change-Id: If94493ff448e4c634d65dbbd5259722b3ad6448f
... because we are currently using v9.0.0 in CI. Lower version may be
bumped after 2023.2 release.
Change-Id: I603d8da53a962816ec22242901720e0ce496ee4e
This change introduces the generic function to compose URL from
elements. This can be used to compose endpoint url or coordination
backend url.
Change-Id: I77469f9dca817c4ab2af939de9bd74dce122c3d8
The directory contains the source files to generate the release note
document, so is not required.
Change-Id: I85f4c6d974cacf88d3a9dd483ab82daa7c09f88b
We've seen release job failures caused by too large tarball, which
contains irrelevant files like git history.
Let's exclude these files to reduce size of the archive.
The file is copied from the puppetlabs repositories with some files
specific to OpenStack projects added.
Change-Id: Ia6245847ee40654663d24e64eaccef583fdc3828
MultiView is used to switch the content according to the type map.
However this feature is not really used by the wsgi application of
OpenStack services.
This removes the option because this is sometimes regarded as
a security concern.
Change-Id: I41a8b242e6dfa4061fa0dc6912bda72e892e3da1
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.
This also adds a few strict validations to the db classes based on
the validations implemented in the underlying resources.
Change-Id: I9e809415a532a694a50492a5600863d7d3d18a20
Needed for non String types if they have a default
that points to facts['os_service_default'].
Otherwise we need to allow String for all parameters.
Since the function is_service_default checks the string,
I do not assume that the fact is overwritten in
any deployment !
Change-Id: Ic2b969f9b99d1748c80edb691f38f4451e499a80
This reverts commit 0861e31cf9e3d4cb6022038f46caf3cdc5f83873.
Reason for revert:
Stdlib::Absolutepath has never been deprecated, but
Stdlib::Compat::Absolute_path was deprecated. The latest stdlib
removed all Stdlib::Compat::* types[1].
[1] fcbd4267fd
Change-Id: I560dbe312a5833f1d6705768bfbf79c06a9ce734
The upstream patch [1] removed the hash stdlib function which was
deprecated since a while. We should now use the Puppet built-in
function Hash().
[1] https://github.com/puppetlabs/puppetlabs-stdlib/pull/1320
Change-Id: Id6e2b70cd1a4472caee324e94a674cfe24cd6a9e
Add file to the reno documentation build to show release notes for
stable/2023.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.
Sem-Ver: feature
Change-Id: Ia6e053a6d45db122b8bdeb5e08886ca3e454cedc
This ensures the parameters used by if-else logic accept only boolean
values because non-boolean can result in unexpected behavior.
Change-Id: Ie9214b3324166a795b2d3aaf098852c8706bc8a0