Commit Graph

10 Commits

Author SHA1 Message Date
Takashi Kajinami 898b5da4c8 Enforce supported types for hash properties
Change-Id: I39f9cef7007a1b3e47cf53fcec602a87b9ebb81d
2023-11-26 14:50:21 +09:00
Takashi Kajinami 77138476e0 nova_flavor: Add the new project_name property
The nova_flavor resource has been providing the project property which
accepts both project name and id. However this implementation results
in broken idempotency with project name used.

This change introduces a separate project_name property, so that users
can use project name with proper idempotency.

Closes-Bug: #1790795
Change-Id: Idee4af6931b8cf4a21d88f4cd38fe83468ec8efa
2022-02-18 01:32:03 +09:00
Takashi Kajinami 3b47f97063 Remove inefficient usage of autorequire
This change removes inefficient usage of autorequire, with the wrong
resource name(The resource name should include section name) in
some resource types. The necessary dependency is already enforced by
another autorequire which depends on service::end anchor.

Change-Id: I0993e2c9ed80d476ca984edf9d6167818a1cb1bb
2022-01-20 22:51:30 +09:00
Takashi Kajinami fa5e4ff7cb Use anchor to require necessary packages
... so that correct packages are required according without re-defining
them in resource implementations.

Change-Id: If3ae4736d655975d83f49676b8128d4e9f8b0cf4
2020-05-04 03:18:02 +09:00
Matthias Bastian 24b9b667ed Make providers use auth_url for authentication
When reading credentials from the configuration's keystone_authtoken
section www_authenticate_uri was used as URL for Keystone.
As www_authenticate_uri is a public endpoint that is not necessarily
reachable for the Puppet agent, this change uses the more appropriate
auth_url as Keystone URL.

Change-Id: I52fdeaaf773e0fc7e111e58ffb02ef9485eed260
2018-08-06 10:45:27 +02:00
ZhongShengping 20d93c4148 Deprecate auth_uri option
Option auth_uri from group keystone_authtoken is deprecated[1].
Use option www_authenticate_uri from group keystone_authtoken.

[1]https://review.openstack.org/#/c/508522/

Change-Id: I0dd36ef1f1f5dcdc57413736ecb8f2555712c36d
Depends-On: I4c82a63baabd6b9304b302c97cd751a0103d8316
Closes-Bug: #1759098
2018-04-05 10:50:06 +08:00
Arnaud Morin 14f1029125 Manage access project for nova flavors
Add a new 'project' parameter to nova_flavor.
This way we can manage to create flavors for specific tenants /
projects.

Change-Id: Ib2fcc4d73557c199d1b1e7d744f64a335d5b17f4
Signed-off-by: Arnaud Morin <arnaud.morin@corp.ovh.com>
2017-06-04 14:06:19 +02:00
Rajesh Tailor ebc69a06ba Trivial-Fix: Fix typos
Change-Id: I227375cd6cd1eef44efc986d56b5e688bc98fbc8
2017-05-15 12:54:46 +05:30
Iury Gregory Melo Ferreira 94a6343b57 Move nova to authtoken
In nova::keystone::authtoken, use keystone::resource::authtoken to configure
keystone_authtoken section in nova.conf, with all parameters
required to configure keystonemiddleware.
This patch will allow to deploy Nova to use Keystone v3 authentification.
Update acceptance and examples

Some deprecations:
- nova::api::admin_tenant_name is deprecated in favor of
  nova::keystone::authtoken::project_name.
- nova::api::admin_user is deprecated in favor of
  nova::keystone::authtoken::username.
- nova::api::admin_password is deprecated in favor of
  nova::keystone::authtoken::password.
- nova::api::identity_uri is deprecated in favor of
  nova::keystone::authtoken::auth_url.
- nova::api::auth_version is deprecated in favor of
  nova::keystone::authtoken::auth_version
- nova::api::auth_uri is deprecated in favor of
  nova::keystone::authtoken::auth_uri
- nova::memcached_servers is deprecated in favor of
  nova::keystone::authtoken::memcached_servers.

The patch is backward compatible and keep defaults values like before.

Depends-On: I299d4c372da702232eaa7cb34b690e372f56e701
Change-Id: I32649549879f912a0f49881c244b119497cf8473
Related-Bug: #1604463
2016-08-15 14:31:06 -04:00
Trevor McCasland 0986087729 Add nova flavor provider
Nova is not including flavors by default anymore so there needs to be
a way to create flavors with puppet. This change adds a nova_flavor
provider for adding and removing flavors. Additionally the provider can
be used to manage properties on flavors. Since flavor information cannot
be updated after creation time, only the properties can be managed after
creation via the nova_flavor provider.

Change-Id: Ic370ac65990d0b3a360340632ada4016231c8a93
Related-Bug: #1564928
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
2016-05-04 09:06:00 -06:00