If OSC's default values for API versions are not suitable, this change
allows overriding them using environment variables.
This applies to the compute, network, image, volume, identity and object
services.
Change-Id: I5447be16d71a3baa4224dae222d710be9d49b759
OSC does not use service-specific environment variables for choosing
endpoints. It requires a common OS_INTERFACE variable that is used for
--os-interface.
OS_ENDPOINT_TYPE is the analog for older service-specific clients and is
used for --os-endpoint-type.
Change-Id: I5dd8de00e72631d578cf7e0b7028705a5cda1ddb
In a previous commit (I did, mea culpa), I set IDENTITY_API_VERSION
while we should use OS_IDENTITY_API_VERSION.
Change-Id: I625adb5d8ef1898bd9a44a76a09b3f985146c96c
Keystone v3 status is CURRENT [1] while v2.0 is SUPPORTED [2].
A lot of work has been done in puppet-keystone to use v3 API by default,
even if we can still run v2.0.
This patch:
* add new parameter and set IDENTITY_API_VERSION to 3 by default
* change urls for v3 endpoints by default
* change tenant_name parameter to undef by default
* change project_name parameter to 'openstack' by default
* change project_domain and user_domain parameters to 'default' by
default
It's a non-backward compatible change, for the users who don't set the
values that have been changed.
Though they can still override the default and switching back to
v2.0 if needed.
[1] http://developer.openstack.org/api-ref-identity-v3.html
[2] http://developer.openstack.org/api-ref-identity-v2.html
Change-Id: If97d24e627ff5ff688f5fb634221a29a98f0ae90
With keystone v3, the term 'tenant' is deprecated in favor of the term
'project'. Clients using the v3 API (including the puppet providers)
will only look for 'project' and not 'tenant'. This patch adds
$project_name as a parameter to openstack_extras::auth_file. It
defaults to undef and only appears in the openrc file if it is being
used. This follows the pattern set by $project_domain and $user_domain,
which will only be set if the user actively chooses to use them. This
doesn't change how $tenant_name is set.
Change-Id: Idc3b938e37b792636ec7c2702bf8429467b78d66
The current authfile class does not currently specify domains
and if someone is using v3 api, it will fail with messages
about a domain not being specified. This change exposes two new
parameters to specify domain for project and user that are both
defaulted to false. When they're specified they will add two
env vars in openrc.
Change-Id: I4ed3d440e2171e0220e307363e1b7595127dadc7
Closes-Bug: 1534901
* 41 conversions
from: it { should ... }
to: it { is_expected.to ... }
* 5 conversions
from: it { should_not ... }
to: it { is_expected.to_not ... }
Change-Id: I143aec9fa309b4bbd664fa205b044131cfadc03b
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit adds the openrc templating that was
in the old openstack repository, with some changes
to the parameter names to match those in the file itself.
Change-Id: I979ea227c93153c15ea78c0c47b9c94843a314af