Commit Graph

43 Commits

Author SHA1 Message Date
Rajesh Tailor 499a898468 Fix typos in parameter descriptions
Change-Id: Iacebc227e074da592aa0ca8ff6f8226f3e850a66
2022-06-17 16:17:30 +00:00
Takashi Kajinami a221b72918 Simplify definition to ensure keystone resource creation
Use the whole resource type instead of its individual resources, to
rely on interface instead of implementation of the dependent module.

Change-Id: Iec6917c4ca352f7b8d18a3c823768a9599b86109
2022-02-07 00:05:14 +09:00
Takashi Kajinami 27db72f4a0 Accept system scope credentials for Keystone API request
This change is the first step to support secure RBAC and allows usage
of system scope credentials for Keystone API request.

This change covers the following three items.
 - assignment of system scope roles to system user
 - credential parameters for authtoken middleware
 - credential parameters for oslo.limit library

Note that the credential parameters for authtoken middleware are
used in some providers, and these providers still require a project
scope credential. This will be fixed by the subsequent change.

Depends-on: https://review.opendev.org/804325
Depends-on: https://review.opendev.org/823629
Change-Id: Ic7682993b341a7d45b0957f102f5c3dbd52f9043
2022-01-06 18:00:46 +09:00
Tobias Urdin ed9298e996 Convert all class usage to relative names
Change-Id: I9ff8d888e367a46ab89e3668bf4ba76c4c7c127c
2019-12-08 23:06:03 +01:00
ZhongShengping d07c62fe8f Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: I1b54aefa27a929946aaf91c6f863466df8b13107
2018-12-13 17:11:07 +08:00
Tobias Urdin 4700a450be Remove deprecated parameters
Removes deprecated parameters that has been
deprecated for one cycle or more.

Change-Id: I9f433ec89f8990a0f0c670389a301bdb732a989a
2018-05-22 14:59:22 +02:00
Denis Egorenko 1123f79809 Drop Glare service from puppet-glance
Glare service is now totally dropped from Glance [1] and now should
be configured only with puppet-glare module.

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

Change-Id: I695ad518285a92a80dd7a9d5bebd11e804359224
2017-09-20 20:31:08 +00:00
Clayton O'Neill 18b010975c Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If683fbd098e701a3c4da91941cf818b18b41b209
2016-06-17 13:17:34 +00:00
Dan Prince 44bf1232a5 Switch $service_name to 'glance' for keystone
This patch switches the service name from 'Image Service' to
just 'glance' so that it matches what we do for other services.
Typically we use the project (auth) name for the service_name.

Not having a consistent catalog can cause failure to find
endpoints for some services. Mistral for example would fail
to lookup the glance endpoint due to it being set as 'Image Service'
rather than 'glance'.

Change-Id: I17116c0f995ab76ed79bd8b2df57629c1ed4e4d0
Closes-bug: #1584229
2016-06-10 19:02:21 +00:00
Jenkins 20a186b8d9 Merge "Provide consisent default name for service_identity resource" 2016-06-09 11:36:49 +00:00
Juan Antonio Osorio Robles f2855769b3 Provide consisent default name for service_identity resource
This change updates glance::keystone::auth to include the
user-provided auth_name as a parameter for the service_identity
provider. Hardcoding the namevar of that resource as was agreed. the
service_name parameter was not undef as in other resources, so the
name was left as-is. And we no longer pick a service_name out of the
service_name and auth_name; now only the service_name is taken into
account.

Closes-Bug: #1590040
Change-Id: I757930e05b6e14cb15139840c9e4a513c9af5d17
2016-06-09 07:46:08 +03:00
Mohammed Naser 92d9ac9368 Fix Keystone integration documentation
The README file refers to an invalid *_address parameters
when *_url parameters should be used.  The example in the
manifest does not show a password listed (which is required).

Change-Id: I03eb31f0c660afca1688e6fc7a992cfb70317706
2016-06-07 18:37:20 -04:00
Iury Gregory Melo Ferreira 1c1dd86ed7 Remove deprecated keystone::auth options
Change-Id: Id94793f682728b612e5324d28e01d6548fa53299
2016-06-03 04:36:22 +00:00
Denis Egorenko e0b34f450d Configure endpoint for Glance Glare
Change I3371d1d57486e79ccfae565417f2195d3ae66bc9 is introduced a new
glance service - Glare and it has own endpoint. This patch adds it.

Change-Id: Ibea50c249e6f0f33dbcfae4bf7cf3569f27c21e5
Related-bug: #1555697
2016-03-23 21:16:18 +03:00
Emilien Macchi 80faf9a017 Default service_name to 'Image Service'
In Liberty, we sent a warning if service_name was not set (and auth_name
was configured as the service name), with the goal to define the correct
default value during Mitaka.

This patch set the service_name parameter to 'Image Service' by default
to match with Keystone's default catalog.

Note: if you already run OpenStack, when you'll run Puppet after this
change, the old service will still be present and you'll have to drop it
manually. Though the Glance endpoint will be updated with the new
service.

Change-Id: I740a9ad32361e6a78277ea0667fba7f631eb64af
Closes-bug: #1506061
2015-12-24 16:52:10 +01:00
Emilien Macchi 866af363f3 Make Keystone_endpoint match service by name/type
Since a chance in puppet-keystone (1], we now match an endpoint with a
service name/type.
This patch reflects this change for 'image' service endpoint.
)
[1] http://git.openstack.org/cgit/openstack/puppet-keystone/commit/?id=0a4e06abb0f5b3f324464ff5219d2885816311ce

Closes-Bug: #1528308

Change-Id: Idff0ff4052ee9db4395a0b556f4c01c5538450dd
2015-12-22 18:06:57 +01:00
Martin Mágr 144622fd30 Preparation for default endpoint names rename
This patch prepares for changes of default endpoint names,
so that they match default_catalog name [1]

[1] https://github.com/openstack/keystone/blob/master/etc/default_catalog.templates

Change-Id: I0aa0be260f119f461a37199fb608a9bd0ba2263f
Partial-bug: #1506061
2015-12-09 14:28:58 +01:00
Doug Knight a530adfc79 Stop collecting glance services by name
Collect glance service resources by title instead of name.  The service
name differs across distributions but the resource title does not.
These collectors were silently ignored when they did not match any
services on Red Hat systems.

Change-Id: I9c17395576b35920eda1f57d93ef684a00253c53
Closes-Bug: 1511891
2015-11-19 11:19:37 -09:00
Emilien Macchi afa0ed8122 Make sure Glance_image is executed after Keystone_endpoint
When running Keystone in WSGI, Glance_image is not run in the right
moment.
This patch aims to make sure Glance_image is run after creating Glance
endpoint Keystone resource by using the Puppet chain arrow.
Keystone_endpoint is actually the latest resource created by Keystone
providers to make Glance working.
If Glance_image resource is in the catalog, it will be executed when
keystone & glance are actually ready and not before.

Closes-Bug: #1488277
Change-Id: I97d1a77c5f4a67914738514d773ecbd4bfb2196c
2015-08-31 16:34:13 -04:00
Mathieu Gagné 1225528086 Introduce public_url, internal_url and admin_url
This change deprecates the following parameters:
- port (replaced by public/internal/admin_url)
- public_protocol (replaced by public_url)
- public_address (replaced by public_url)
- internal_protocol (replaced by internal_url)
- internal_address (replaced by internal_url)
- admin_protocol (replaced by admin_url)
- admin_address (replaced by admin_url)

Add deprecation warnings if any of those values are provided
while maintaining full backward compatibility.

Closes-bug: #1274979
Change-Id: Iac152347534874f8763d8df4f81d1568d3c5e222
2015-06-11 16:49:10 -04:00
Dan Bode 1d38834466 make service description configurable
The previous commit that changed the service description
from Openstack to OpenStack actually introduced a bug that means
that users cannot upgrade between those two versions of the code.

An attempt to use this manifest to upgrade from earlier versions
of the code before this change was made is currently not supported
because keystone_service does not support updating it's description.

This commit adds the service description as a class parameter so that
folks using older version of the module can update it to the incorrectly
spelled version.

Change-Id: Id8b01c7456b067c19fcf6cc1503c22a11b7d3fd9
2015-04-28 09:31:17 -07:00
Risto Laurikainen ee0549f15d Fix catalog compilation when not configuring endpoint
Previously when you set $configure_endpoint to false and did not have a
keystone_endpoint resource with the same name as is defined by
glance::keystone::auth, the catalog would not be compiled. This was
because a relationship was being established where one resource in the
relationship didn't exist.

This changes this so that the relationship involving the Keystone
endpoint is only defined if $configure_endpoint is set to true.

Also, the test for when $configure_endpoint is false was set to check
for an endpoint that doesn't get created even if $configure_endpoint is
true. Fixed so that it checks for an endpoint that has the correct name
(the same as when using the default values to call the class).

Change-Id: I6631a656a888d0df7ab173705bea0598bd2b2f58
Closes-Bug: 1368686
2015-03-11 21:33:39 +01:00
Sebastien Badia 0d83409381 Fix lint issues (doc, metadata, manifests)
Add puppet parameters lint (with puppet-lint-param-docs gem) and fix
missing documentations, this commit also fix metadata.json file (SPDX
license, and open dependencies).

Change-Id: I0d590b930a8d0263c3a74d861b9786770be7d183
2015-02-23 01:29:11 +01:00
Christian Berendt 26dac12bb5 Fix spelling of OpenStack
According to the OpenStack Documentation conventions it should
be OpenStack and not Openstack or openstack.

https://wiki.openstack.org/wiki/Documentation/Conventions#OpenStack.2C_not_Openstack_or_openstack

Change-Id: I13c85c91781448890656f37ae548f8da3ac31147
2014-12-08 08:33:47 +01:00
Emilien Macchi ac5c2bcf66 Refactorise Keystone resources management
Refactorise the code of Keystone resources management with backward
compatibility since we don't modify the unit tests.

Change-Id: If15a56de62d5d87d456cdc6aed1602aee5984124
Implements: blueprint common-openstack-identity-resource
2014-11-19 23:31:42 -05:00
Risto Laurikainen 246842f13c Make user creation optional when creating service.
In some cases it is useful to be able to just configure
the service in Keystone and not the service user. This
is the case when e.g. a read only LDAP backend is used.
Added parameters configure_user and configure_user_role
(default to true).

Change-Id: If9bb802ff2bb0b3ece55f36df773059ba9c7e9de
Closes-Bug: 1360232
2014-09-11 12:22:47 +03:00
Mike Dorman 1f27e17ea0 Adds ability to override service name for service catalog
Instead of forcing the name of the service in the service catalog to
match auth_name, this allows the ability to explicitly set the service
name, separately from auth_name.

Change-Id: I142b9e944eacdeba8a029d7f15f067ef5f1f87a4
2014-09-03 09:06:03 -06:00
Benedikt Trefzer 833c3845a2 add parameter for endpoint protocols
This gives the ability to specify https endpoint for
internal and/or admin endpoints.

Change-Id: I1f7d96693a5bc2140041658e77cc7920f9577eac
backport: havana
2014-03-12 06:28:09 +00:00
Michael Chapman cabf6d6b6c Ensure keystone endpoint set before service starts
This patch ensures that in the case where keystone and
glance-api are on the same node, nova-api is not started
until the keystone catalog contains the image service
and endpoint required to use glance.

Change-Id: I48ae07b2d7789d549a4412a21e842a1222a48caa
2013-11-05 18:02:40 +08:00
Mathieu Gagné d5567e6aef Various Puppet lint fixes
* Fix following warnings:
    * double quoted string containing no variables
    * indentation of => is not properly aligned
    * quoted boolean value found
    * variable not enclosed in {}
* Fix following errors:
    * two-space soft tabs not used
* Remove quotes around class in include/require statements
* Remove some comments from the code, they added no value

Change-Id: I341b37f2c6795951f3285037b2fa612d767a4474
2013-07-01 17:34:19 -04:00
François Charlier 51dc02d145 Glance's Keystone endpoint does not need the '/v1'
As said in [1], “This is useless and causes problem with library using
glanceclient. Glance has already a workaround for this […]”

[1] https://review.openstack.org/#/c/18325/
2012-12-18 16:57:27 +01:00
Derek Higgins 68f7aecfeb Adding the ability to specify https for the public endpoint 2012-11-21 23:10:18 +00:00
Joe Topjian 47537dbbc4 Multi-region support 2012-10-25 13:36:17 -07:00
Dan Bode 7c396acd66 remove password defaults
This commit removes the password defaults.

Users should not rely on password defaults.
2012-10-14 12:36:13 -07:00
Dan Bode 845ef55ead Modify keystone auth
Make tenant configurable
Make email configurable
2012-10-03 22:07:46 -07:00
John Chilton db28c354ca Fix default boolean value for configure_endpoint. 2012-05-03 16:21:26 -05:00
John Chilton f1df5e64d1 Make endpoint configuration in glance::keystone::auth optional in case not using templated catalog file for defining endpoints. (keystone_endpoint type seems to assume always using SQL driver.) 2012-05-03 16:19:32 -05:00
Dan Bode b454b902cf Refactor of glance::keystone::auth
This refactor of glance::keystone::auth adds additional
class parameters to make it easier to configure the resulting
keystone objects.

Adds the following class parameters:
  - admin_address    = '127.0.0.1',
  - internal_address = '127.0.0.1',
  - region

Removes the following parameters:
  - address (which has been replaced by the above parameters)

Renames the following paramters:
  - service => service_type
2012-04-27 13:36:54 -07:00
Dan Bode c73c4a8fcf Do not start services until glance user_role exists
This ensures that the services will not start until they
can be authenticated.
2012-04-12 14:25:04 -07:00
Dan Bode e1529167d7 Update glance service definitions
This commit updates the service definitions for the
image service.

Removes dependencies that are no longer necessary (b/c I added
autorequires)

Specify ensure explicitly.
2012-04-10 09:25:51 -07:00
Dan Bode 616b32d617 Update keystone tenant name
Updates from service to services.
2012-04-09 08:52:07 -07:00
Dan Bode d1e33cc81f Add code to use latest ppas
The ppas are currently coded in the keystone module.

This code adds them to the glance example to ensure that
we get the latest version of the glance packages.
2012-03-30 09:54:44 -07:00
Dan Bode a5ac23272d Refactor config files for essex
The config files for glance have changed quite
a bit between the Diablo and Essex releases of
OpenStack.

This commit refactors the config files.
2012-03-29 16:44:59 -07:00