-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update glance to 9b06a7c8c25a5bd11e0257ea39c7a9680fbac9ab
9b06a7c8c25a5bd11e0257ea39c7a9680fbac9ab Cleanup README cf53cee9020ed7b7270d623a881d5dc0744d43b0 Correction configuration due with the new parameters 3ffaff97ae2d9b71f703c45252812e5a51f001f5 Merge "Add option id to glance_image" into stable/mitaka 356262d1db279757dc2fa85a0233623b101566eb Merge "Add options to set swift auth domains" into stable/mitaka c919ed4b64008856caec379bd2f0be0b4692ee10 Add options to set swift auth domains d2946a2e833284f8901a108fe054a3ab63872a0b Add option id to glance_image Change-Id: I3a89a623a9193684dd45609c077fe5e9bf66fc3e
- Loading branch information
Showing
12 changed files
with
222 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# | ||
# Copyright (C) 2014 Mirantis | ||
# | ||
# Author: Steapn Rogov <[email protected]> | ||
# Author: Stepan Rogov <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
|
@@ -21,17 +21,34 @@ | |
# | ||
# === Parameters | ||
# | ||
# [*vcenter_api_insecure*] | ||
# (optional) Allow to perform insecure SSL requests to vCenter/ESXi. | ||
# Should be a valid string boolean value | ||
# Defaults to 'True' | ||
# [*vcenter_insecure*] | ||
# (optional) If true, the ESX/vCenter server certificate is not verified. | ||
# If false, then the default CA truststore is used for verification. | ||
# This option is ignored if "vcenter_ca_file" is set. | ||
# Defaults to 'True'. | ||
# | ||
# [*vcenter_ca_file*] | ||
# (optional) The name of the CA bundle file which will be used in | ||
# verifying vCenter server certificate. If parameter is not set | ||
# then system truststore is used. If parameter is set, vcenter_api_insecure | ||
# value is ignored. | ||
# Defaults to undef | ||
# then system truststore is used. If parameter is set, | ||
# vcenter_insecure value is ignored. | ||
# Defaults to $::os_service_default. | ||
# | ||
# [*vcenter_datastores*] | ||
# (Multi-valued) A list of datastores where the image | ||
# can be stored. This option may be specified multiple times | ||
# for specifying multiple datastores. The datastore name should | ||
# be specified after its datacenter path, seperated by ":". | ||
# An optional weight may be given after the datastore name, | ||
# seperated again by ":". Thus, the required format | ||
# becomes <datacenter_path>:<datastore_name>:<optional_weight>. | ||
# When adding an image, the datastore with highest weight will be selected, | ||
# unless there is not enough free space available in cases where the image | ||
# size is already known. If no weight is given, it is assumed to be | ||
# zero and the directory will be considered for selection last. | ||
# If multiple datastores have the same weight, then the one with the most | ||
# free space available is selected. | ||
# Defaults to $::os_service_default. | ||
# | ||
# [*vcenter_host*] | ||
# (required) vCenter/ESXi Server target system. | ||
|
@@ -43,75 +60,108 @@ | |
# [*vcenter_password*] | ||
# (required) Password for authenticating with vCenter/ESXi server. | ||
# | ||
# [*vcenter_datacenter*] | ||
# (required) Inventory path to a datacenter. | ||
# If you want to use ESXi host as datastore,it should be "ha-datacenter". | ||
# | ||
# [*vcenter_datastore*] | ||
# (required) Datastore associated with the datacenter. | ||
# | ||
# [*vcenter_image_dir*] | ||
# (required) The name of the directory where the glance images will be stored | ||
# in the VMware datastore. | ||
# | ||
# [*vcenter_task_poll_interval*] | ||
# (optional) The interval used for polling remote tasks invoked on | ||
# vCenter/ESXi server. | ||
# Defaults to '5' | ||
# Defaults to $::os_service_default. | ||
# | ||
# [*vcenter_api_retry_count*] | ||
# (optional) Number of times VMware ESX/VC server API must be retried upon | ||
# connection related issues. | ||
# Defaults to '10' | ||
# Defaults to $::os_service_default. | ||
# | ||
# [*multi_store*] | ||
# (optional) Boolean describing if multiple backends will be configured | ||
# Defaults to false | ||
# Defaults to false. | ||
# | ||
# [*glare_enabled*] | ||
# (optional) Whether enabled Glance Glare API. | ||
# Defaults to false | ||
# Defaults to false. | ||
# | ||
# DEPRECATED PARAMETERS | ||
# | ||
# [*vcenter_api_insecure*] | ||
# (optional) DEPRECATED. Allow to perform insecure SSL requests to ESX/VC. | ||
# Defaults to undef. | ||
# | ||
# [*vcenter_datacenter*] | ||
# (optional) DEPRECATED. Inventory path to a datacenter. | ||
# If the vmware_server_host specified is an ESX/ESXi, | ||
# the vcenter_datacenter is optional. If specified, | ||
# it should be "ha-datacenter". This option is deprecated | ||
# in favor of vcenter_datastores and will be removed. | ||
# Defaults to undef. | ||
# | ||
# [*vcenter_datastore*] | ||
# (optional) DEPRECATED. Datastore associated with the datacenter. | ||
# This option is deprecated in favor of vcenter_datastores | ||
# and will be removed. | ||
# Defaults to undef. | ||
# | ||
class glance::backend::vsphere( | ||
$vcenter_host, | ||
$vcenter_user, | ||
$vcenter_password, | ||
$vcenter_datacenter, | ||
$vcenter_datastore, | ||
$vcenter_image_dir, | ||
$vcenter_ca_file = undef, | ||
$vcenter_api_insecure = 'True', | ||
$vcenter_task_poll_interval = '5', | ||
$vcenter_api_retry_count = '10', | ||
$vcenter_ca_file = $::os_service_default, | ||
$vcenter_datastores = $::os_service_default, | ||
$vcenter_insecure = 'True', | ||
$vcenter_task_poll_interval = $::os_service_default, | ||
$vcenter_api_retry_count = $::os_service_default, | ||
$multi_store = false, | ||
$glare_enabled = false, | ||
# DEPRECATED PARAMETERS | ||
$vcenter_datacenter = undef, | ||
$vcenter_datastore = undef, | ||
$vcenter_api_insecure = undef, | ||
) { | ||
|
||
if $vcenter_api_insecure { | ||
warning('The vcenter_api_insecure parameter is deprecated, use parameter vcenter_insecure') | ||
$vmware_insecure_real = $vcenter_api_insecure | ||
} | ||
else { | ||
$vmware_insecure_real = $vcenter_insecure | ||
} | ||
|
||
if $vcenter_datacenter and $vcenter_datastore { | ||
warning('The vcenter_datacenter and vcenter_datastore parameters is deprecated, use parameter vcenter_datastores') | ||
$vmware_datastores_real = "${vcenter_datacenter}:${vcenter_datastore}" | ||
} | ||
elsif !is_service_default($vcenter_datastores) { | ||
$vmware_datastores_real = $vcenter_datastores | ||
} | ||
else { | ||
fail('Parameter vcenter_datastores or vcenter_datacenter and vcenter_datastore must be provided') | ||
} | ||
|
||
glance_api_config { | ||
'glance_store/vmware_api_insecure': value => $vcenter_api_insecure; | ||
'glance_store/vmware_insecure': value => $vmware_insecure_real; | ||
'glance_store/vmware_ca_file': value => $vcenter_ca_file; | ||
'glance_store/vmware_server_host': value => $vcenter_host; | ||
'glance_store/vmware_server_username': value => $vcenter_user; | ||
'glance_store/vmware_server_password': value => $vcenter_password; | ||
'glance_store/vmware_datastore_name': value => $vcenter_datastore; | ||
'glance_store/vmware_store_image_dir': value => $vcenter_image_dir; | ||
'glance_store/vmware_task_poll_interval': value => $vcenter_task_poll_interval; | ||
'glance_store/vmware_api_retry_count': value => $vcenter_api_retry_count; | ||
'glance_store/vmware_datacenter_path': value => $vcenter_datacenter; | ||
'glance_store/vmware_datastores': value => $vmware_datastores_real; | ||
} | ||
|
||
if $glare_enabled { | ||
glance_glare_config { | ||
'glance_store/vmware_api_insecure': value => $vcenter_api_insecure; | ||
'glance_store/vmware_insecure': value => $vmware_insecure_real; | ||
'glance_store/vmware_ca_file': value => $vcenter_ca_file; | ||
'glance_store/vmware_server_host': value => $vcenter_host; | ||
'glance_store/vmware_server_username': value => $vcenter_user; | ||
'glance_store/vmware_server_password': value => $vcenter_password; | ||
'glance_store/vmware_datastore_name': value => $vcenter_datastore; | ||
'glance_store/vmware_store_image_dir': value => $vcenter_image_dir; | ||
'glance_store/vmware_task_poll_interval': value => $vcenter_task_poll_interval; | ||
'glance_store/vmware_api_retry_count': value => $vcenter_api_retry_count; | ||
'glance_store/vmware_datacenter_path': value => $vcenter_datacenter; | ||
'glance_store/vmware_datastores': value => $vmware_datastores_real; | ||
} | ||
} | ||
|
||
|
5 changes: 5 additions & 0 deletions
5
glance/releasenotes/notes/deprecate_old_vsphere_backend_parameters-8d798bd64b750911.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
upgrade: | ||
- vmware_api_insecure deprecated, use vmware_insecure | ||
vmware_datacenter_path and vmware_datastore_name | ||
deprecated, use vmware_datastores |
5 changes: 5 additions & 0 deletions
5
glance/releasenotes/notes/glance-image-id-d1a32b5ec443611e.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
features: | ||
- Add the ability to create an image with a id | ||
specified by the user. The provider now accepts | ||
id parameter to create the image. |
11 changes: 11 additions & 0 deletions
11
glance/releasenotes/notes/glance-swift-v3-572d506977688377.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
upgrade: | ||
- Glance users who wish to configure the Swift backend | ||
can make use of swift_store_auth_project_domain_id and | ||
swift_store_auth_user_domain_id to configure the required | ||
keystone domain settings. | ||
fixes: | ||
- Previously glance swift authentication would work only | ||
with keystone auth <= 2. This fix allows you to properly | ||
configured the (required) keystone domains for keystone | ||
v3 authentication. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.