Commit Graph

15 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov ea1f0c084f Add OS_CACERT env variable
Once internal CA is used, that is not part of default trust store,
we need to ensure that openstack clients will use system-trust instead
of the default one provided by certifi library.

Change-Id: Ibe6b59b497fa665b722b648a57cb5568b1b29b5f
2021-06-24 11:42:34 +03:00
Dmitriy Rabotyagov b79fade909 Add option to redefine locale
Since CentOS do not support C.UTF-8 locale[1] we're placing system
default inside openrc file. If locale can't be found from gathered facts
it's defaulted to C.UTF-8.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1361965

Change-Id: I304bacf0e586b119ac41757b96fa237d2839aaf5
2019-08-13 19:47:19 +03:00
cloudnull 8151224987 Add manila service to openrc file
This change ensures manila clients work with our default openrc file.

Change-Id: I58dab920d2561ffa88064fc89cbf1406e95a3d7e
Signed-off-by: cloudnull <kevin@cloudnull.com>
2019-03-22 20:49:40 +00:00
Marc Gariepy ef3fe9966f Change locale for openrc
When there is a special char in the name of a server or something else,
openstack client cannot print the char and throw this error:
'ascii' codec can't encode character u'\xe8' in position 106729: ordinal not in range(128)

Changing the locale to C.UTF-8 fix this small issue.

Change-Id: I2607f1617c37181c5de2cd49634e6e487f7a22d9
2018-09-28 09:17:43 -04:00
Markos Chandras 82730e54cf templates: openrc: Use 'true' and 'false' for insecure env variables
It seems that most tools are expecting a literal 'true' or 'false' value
for env variables, so use that instead of '1' and empty values.

Change-Id: I36c5460165dba6acd1b94e82c712312f9fd307a9
2018-09-05 12:18:04 +01:00
Markos Chandras a4a43d41e4 templates: openrc: Add missing 'insecure' and 'verify' options
If openrc_insecure is set to True, we need to export OS_INSECURE and
OS_VERIFY in order for API calls to not verify SSL vertificates. We
also need to add similar options to the clouds.yaml file as well.

Change-Id: I50e411c5ff974ff9a0b67aca6e9d7e48db596df7
2018-09-03 09:36:38 +01:00
Kourosh Vivan 93dc5f50df Add OS_AUTH_TYPE env var in openrc file
For gnocchi cli this env var is mandatory in the openrc.

Default value: password

Closes-Bug: 1781552
Change-Id: I1e54d53dd131351dda70d3d166ae8e2029caa1cb
2018-07-13 15:00:22 +02:00
Manuel Buil 2e4a1d87b7 Add tacker to the list of aliases
Change-Id: I5b66363944ca147c519de678bd021ca340dbcddd
Signed-off-by: Manuel Buil <mbuil@suse.com>
2017-10-05 18:40:54 +02:00
Jesse Pretorius 2d65f03066 Make keystone v3 endpoints the default
The logic which previously implemented a
check for v3 in the endpoint does not work
with versionless endpoints.

As versionless endpoints are likely to be
more common, and the v3 auth protocol is
now the defult and the norm, the check is
now done for a v2 endpoint instead.

Related-Bug: #1688320
Change-Id: If4818e6220aba921890e647cfb21e078bb254821
2017-07-19 11:54:53 +01:00
Jimmy McCrory 6848f7d1b7 Quote OS_PASSWORD with single quotes
Use single quotes around OS_PASSWORD to prevent shell variable
expansion. Add a test to validate contents of the openrc file.

Closes-Bug: 1663185
Change-Id: I4b1e7b5cb83061ea35108db545fdfa33cef037a5
2017-02-14 16:17:21 -08:00
Andy McCrae 02a104d77e Quote OS_PASSWORD variable
Unquoted OS_PASSWORD variable can break shell commands when special
characters are used.

Closes-Bug: #1663185
Change-Id: Ia61a4ea1861d0f8792355213443b202b15ab862c
2017-02-14 16:11:48 +00:00
Steve Lewis e14f1f3920 Add alias for OS_ENDPOINT_TYPE
Some service clients do not respect the old OS_ENDPOINT_TYPE
parameter, instead only supporting the newer fashion of
OS_INTERFACE which is viewed as less confusing. This adds support
for that option.

Failure to include this causes SSL certificate errors when the
service clients attempt to use the public endpoint with a self-
signed certificate on defaulted installs, particularly AIOs.

This error can be demonstrated by trying to use the Gnocchi or new
Aodh clients from a utility container, though only the Gnocchi
client is currently installed in the integrated build.

Change-Id: I60af4f0cf56964eaec8980264ec1ebadc550c0b8
2016-08-05 14:23:50 -07:00
Tim Laszlo c6dec23ba1 Define region name variables in openrc and clouds.
Add OS_REGION_NAME to the openrc file.  Replaces openrc_clouds_yml_region_name
with a common openrc_service_region variable.

Change-Id: I68cbd6b2aaa64ef655cfc617a96d428fb2c35d2b
2016-07-23 08:54:45 -05:00
Travis Truman c9d41d3103 Set OS_TENANT_NAME for backward compatibility
Some clients still rely on OS_TENANT_NAME so we
should define and export it. The example client/tool
that appears to rely on it still is Rally, found during
development of:

https://github.com/trumant/openstack-ansible-os_rally

Change-Id: I5bc29ee6b459078f34bc6ac3a8e771a8192de4a1
2016-03-28 14:22:48 -04:00
Travis Truman b199a3cc94 Jinja2 template renamed with .j2 extension
Renamed for hygiene and consistency purposes.

Change-Id: Id17dd108e566eb1e2217a2111b4c3842171a2849
2016-03-04 11:28:42 -05:00