Adding auth_version option to zuul.conf

Zuul swift plugin checks for auth_version in zuul.conf. If swift
not found this option, it assumes 2.0 as default.
This patch add the possibility to specify which version you want
to use, allowing custom versions. It will be good in future when
version 3.0 releases.

Change-Id: I1ffd327feba8d290bf05291b022fff00af454c48
This commit is contained in:
Arx Cruz 2014-07-23 13:13:38 -03:00
parent 1bedc44404
commit 7d2c21b75d
3 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ class openstack_project::zuul_prod(
$url_pattern = '', $url_pattern = '',
$zuul_url = '', $zuul_url = '',
$swift_authurl = '', $swift_authurl = '',
$swift_auth_version = '',
$swift_user = '', $swift_user = '',
$swift_key = '', $swift_key = '',
$swift_tenant_name = '', $swift_tenant_name = '',
@ -44,6 +45,7 @@ class openstack_project::zuul_prod(
git_email => 'jenkins@openstack.org', git_email => 'jenkins@openstack.org',
git_name => 'OpenStack Jenkins', git_name => 'OpenStack Jenkins',
swift_authurl => $swift_authurl, swift_authurl => $swift_authurl,
swift_auth_version => $swift_auth_version,
swift_user => $swift_user, swift_user => $swift_user,
swift_key => $swift_key, swift_key => $swift_key,
swift_tenant_name => $swift_tenant_name, swift_tenant_name => $swift_tenant_name,

View File

@ -40,6 +40,7 @@ class zuul (
$smtp_default_from = "zuul@${::fqdn}", $smtp_default_from = "zuul@${::fqdn}",
$smtp_default_to = "zuul.reports@${::fqdn}", $smtp_default_to = "zuul.reports@${::fqdn}",
$swift_authurl = '', $swift_authurl = '',
$swift_auth_version = '',
$swift_user = '', $swift_user = '',
$swift_key = '', $swift_key = '',
$swift_tenant_name = '', $swift_tenant_name = '',

View File

@ -43,6 +43,9 @@ tenant_name=<%= swift_tenant_name %>
region_name=<%= swift_region_name %> region_name=<%= swift_region_name %>
default_container=<%= swift_default_container %> default_container=<%= swift_default_container %>
default_logserver_prefix=<%= swift_default_logserver_prefix %> default_logserver_prefix=<%= swift_default_logserver_prefix %>
<% if swift_auth_version != "" -%>
auth_version=<%= swift_auth_version %>
<% end -%>
<% end -%> <% end -%>
<% if smtp_host != "" -%> <% if smtp_host != "" -%>