Commit Graph

648 Commits

Author SHA1 Message Date
Zuul 28bc3dfcd7 Merge "clouds: validate parameter types" 2024-04-16 08:13:10 +00:00
Takashi Kajinami 8977d20996 Prepare 2024.1 release
Change-Id: Id39b686932bc52d432963ac8b7fe255360cc4892
2024-04-15 22:32:47 +09:00
Zuul 9ad294d9c7 Merge "Bump upper version of puppetlabs-apache" 2024-04-15 12:13:55 +00:00
Takashi Kajinami 923f712624 clouds: validate parameter types
Change-Id: I11c9b55fc58a79172493e37dbd455edee42cbcb0
2024-04-15 01:14:57 +09:00
Zuul 8881f43c4e Merge "reno: Update master for unmaintained/xena" 2024-04-12 13:04:50 +00:00
OpenStack Release Bot 8fab28a0ca reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I329084fd5b2082dba015267525184310e50380fe
2024-04-12 12:34:06 +00:00
OpenStack Release Bot 0ca27ea17a reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: Ic108f313b56333ab02b97daece90ea81b96f7dc5
2024-04-12 12:26:25 +00:00
Takashi Kajinami a6b6f24450 Bump upper version of puppetlabs-apache
Currently 12.1.0 is used in CI and is proven to work.

Change-Id: I0dd1f09c604d88b27d9889965dccf1621cae0bb3
2024-04-12 00:43:36 +09:00
Zuul 320b5b9522 Merge "Use creates property of exec" 2024-03-18 10:31:18 +00:00
Takashi Kajinami 4cfe21d5c9 Use creates property of exec
... instead of unless + test command, to leverage the built-in feature
and simplify the logic in our own modules.

Change-Id: Id9b6bc78f225ddca2ce9580b38a02351c2fbdd35
2024-03-14 03:32:21 +00:00
OpenStack Release Bot fbe39f3ee0 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I9dca2052fa43a46dc196b1e1ddc440c8ea5a742f
2024-02-21 16:50:01 +00:00
Zuul 84c99513c7 Merge "Simplify policies definition" 2024-01-02 16:56:21 +00:00
Zuul 4f440b1103 Merge "Fix old github url" 2024-01-02 15:35:59 +00:00
Takashi Kajinami f451dbed3a Simplify policies definition
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
2023-12-27 01:50:53 +09:00
Takashi Kajinami f7e1e5ac41 Fix old github url
... and remove the unmaintained description about version-release
mapping, because now it's described in [1].

[1] https://docs.openstack.org/puppet-openstack-guide/latest/install/releases.html

Change-Id: I19e24a8f6a1f34ce37f1c459e814b0a724479468
2023-12-25 16:54:20 +09:00
Benedikt Trefzer 981b4816bb add access_log_env_var for apache vhost
Allows to only requests with particular environment variables be logged.
Example: set a dontlog variable for healthchecks, so healthchecks are not
logged.

Change-Id: I4dea75f85d2e4a2287bdcce845c4b5fa05da0ddc
2023-11-25 10:49:40 +00:00
Zuul 04e35709a7 Merge "Bump upper version of puppetlabs-mysql" 2023-11-20 09:45:43 +00:00
Takashi Kajinami 9ff464ca40 Bump supported Debian version to 12 (Bookworm)
Debian 12 was released in June 2023. Recent versions of OpenStack
(actually, 2023.1 and later) no longer support Debian 11.

Change-Id: I3762a0c9d2bd6f4a11c147e40a3140613ec8c3cf
2023-11-18 09:20:33 +00:00
Takashi Kajinami 0a723b1183 Bump upper version of puppetlabs-mysql
... because now v15.0.0 is used in CI.

Change-Id: Ia9c0595f84628998e3424c15fe382d36d33c252b
2023-11-16 16:38:35 +09:00
Takashi Kajinami 44a54f4f41 Fix unit tests with Debian 12
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] 6adbd49b9f

Change-Id: I6e6e88951caa3aea0b7a1e13238e22ae4cb1c3dd
2023-11-15 13:52:50 +00:00
Zuul 4552c7d2de Merge "Import functions from stdlib" 2023-11-02 15:34:46 +00:00
Zuul 4a7f395dd9 Merge "Replace deprecated `should`" 2023-11-02 15:34:31 +00:00
Takashi Kajinami 3f0bda3f6c Introduce new 'openstackclient' tag
... so that we can define dependencies on client packages.

Change-Id: If6f54d9b63ebe0dbc7e82795d0ba3fb88551086e
2023-10-31 13:14:58 +00:00
Takashi Kajinami 22a9bd19ca Revert "Remove 'openstack' tag from iscsi service"
This reverts commit 0f3357a209.

Reason for revert:
The openstack tag is used by variety of package resources, so it's not
specific to client packages.

Change-Id: If171ff72b2f4d74cf520c2b1b48a3526b1b0929e
2023-10-31 13:14:53 +00:00
Takashi Kajinami 4ce49e9f74 Import functions from stdlib
... 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
2023-10-31 22:13:42 +09:00
Takashi Kajinami 2f27c84684 Replace deprecated `should`
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
2023-10-31 13:12:11 +00:00
Takashi Kajinami 6adbd49b9f Fix broken unit tests with puppetlabs-postgresql >= v9.2.0
The default password encryption in Ubuntu 22.04 has been changed from
md5 to scram-sha-256 by [1].

[1] 985309e2df

Change-Id: I7f1218a3dc1377305b5eb7296b3ef03645f6a085
2023-10-31 14:51:00 +09:00
Zuul 4dc548c81b Merge "Bump upper version of puppetlabs-apache" 2023-10-17 14:46:34 +00:00
Zuul e02d866bbc Merge "Bump upper version of puppetlabs-postgresql" 2023-10-17 14:46:33 +00:00
Takashi Kajinami 79861c52df Bump upper version of puppetlabs-apache
... because now we are using v11.x.x in CI.

Change-Id: I7fb5d002d2421c272ece8d357b5cd6f4e22f6c2e
2023-10-17 13:55:46 +09:00
Takashi Kajinami 541b30f8fc Bump upper version of puppetlabs-postgresql
... because now we have v10.x.x used in CI.

Change-Id: Id25bbe62b6882d934f2abea3c7ee929885669bb3
2023-10-17 10:41:11 +09:00
Zuul 885894610b Merge "Update master for stable/2023.2" 2023-10-16 18:24:52 +00:00
OpenStack Release Bot c507aa8032 Update master for stable/2023.2
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
2023-10-16 15:19:11 +00:00
Takashi Kajinami 0f3357a209 Remove 'openstack' tag from iscsi service
... because this tag is commonly used for client packages.

Change-Id: Ic709f978beca3371ad6b4cfc60c15cc8dc71e5d6
2023-10-15 04:41:27 +09:00
Takashi Kajinami 4c7fa922be Remove usage of deleted manifest_dir
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
2023-10-11 12:07:05 +09:00
Zuul fa454f62c2 Merge "Prepare 2023.2 release" 2023-10-03 17:18:04 +00:00
Takashi Kajinami 7f1cb77eab Prepare 2023.2 release
Change-Id: I9838d12364a8f5dc188796c445124831c8f28612
2023-10-03 16:32:29 +09:00
Takashi Kajinami 4c21a53fcf Bump upper version of stdlib
... because we are currently using v9.0.0 in CI. Lower version may be
bumped after 2023.2 release.

Change-Id: I603d8da53a962816ec22242901720e0ce496ee4e
2023-10-03 13:19:28 +09:00
Zuul 077d727727 Merge "replace validate_legacy with proper data types" 2023-09-14 07:46:13 +00:00
Takashi Kajinami 5cb78b4d25 Add utility function to compose URL from elements
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
2023-08-15 06:00:29 +00:00
Takashi Kajinami cf3f23fc09 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: I85f4c6d974cacf88d3a9dd483ab82daa7c09f88b
2023-08-11 17:57:44 +09:00
Zuul 9392a0cda1 Merge "Add .pdkignore to exclude some files from tar ball" 2023-08-10 16:03:28 +00:00
Takashi Kajinami b11247f139 Add .pdkignore to exclude some files from tar ball
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
2023-08-11 00:49:58 +09:00
Takashi Kajinami 2741e73785 Disable MultiViews in apache vhost
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
2023-08-03 17:01:55 +09:00
Takashi Kajinami d1c23f0fb4 replace validate_legacy with proper data types
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
2023-07-25 13:55:26 +00:00
Benedikt Trefzer a22990d4d5 add a separate datatype for servicedefault
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
2023-06-20 09:41:18 +09:00
Zuul 60f964b7a0 Merge "Revert "Replace Stdlib::Absolutepath by Stdlib::Compat::Absolute_path"" 2023-05-31 15:32:56 +00:00
Takashi Kajinami b6478cb103 Revert "Replace Stdlib::Absolutepath by Stdlib::Compat::Absolute_path"
This reverts commit 0861e31cf9.

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
2023-05-31 03:39:34 +00:00
Zuul 804958c8c3 Merge "Remove support for Puppet 6" 2023-05-22 14:33:35 +00:00
Takashi Kajinami 873ab8dfd8 Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I3a733d20ccfadde8f2b691d57b3ace318224c3cd
2023-05-22 12:27:32 +09:00