config proxy settings inside glance_api container

Adding the capability to configure settings for http_proxy https_proxy
and no_proxy inside glance_api container. This is required when import
images from external http resources behind a proxy.

Co-Authored-By: Paul Bourke <paul.bourke@oracle.com>
Closes-bug: #1775815
Change-Id: I85661f04311d5671adecc84c470f2e4db07cfe1d
This commit is contained in:
Mark Duggan 2018-06-08 12:11:31 +01:00 committed by zhulingjie
parent ab5fd56bb0
commit 87043bc918
3 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ glance_services:
group: glance-api
enabled: true
image: "{{ glance_api_image_full }}"
environment: "{{ container_proxy }}"
volumes:
- "{{ node_config_directory }}/glance-api/:{{ container_config_directory }}/:ro"
- "/etc/localtime:/etc/localtime:ro"

View File

@ -13,6 +13,7 @@
common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}"
image: "{{ service.image }}"
environment: "{{ service.environment }}"
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
when:
- kolla_action != "config"

View File

@ -118,6 +118,7 @@
common_options: "{{ docker_common_options }}"
name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}"
environment: "{{ item.value.environment | default(omit) }}"
volumes: "{{ item.value.volumes|reject('equalto', '')|list }}"
register: check_glance_containers
when: