Merge "nodepool-builder: put container configs in /etc"
This commit is contained in:
commit
87db9b6ac6
@ -1,4 +1,4 @@
|
|||||||
openstacksdk_config_dir: /home/nodepool/.config/openstack
|
openstacksdk_config_dir: /etc/openstack
|
||||||
openstacksdk_config_owner: nodepool
|
openstacksdk_config_owner: root
|
||||||
openstacksdk_config_group: nodepool
|
openstacksdk_config_group: root
|
||||||
openstacksdk_config_template: clouds/nodepool_clouds.yaml.j2
|
openstacksdk_config_template: clouds/nodepool_clouds.yaml.j2
|
||||||
|
@ -12,12 +12,10 @@ services:
|
|||||||
- DEBUG=1
|
- DEBUG=1
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# NOTE(ianw): for non-containerised builds the base roles
|
|
||||||
# (configure-openstacksdk) have always deployed the cloud config
|
|
||||||
# in ~nodepool/.config.
|
|
||||||
- /home/nodepool/.config/openstack:/etc/openstack:ro
|
|
||||||
# nodepool config
|
# nodepool config
|
||||||
- /etc/nodepool:/etc/nodepool:ro
|
- /etc/nodepool:/etc/nodepool:ro
|
||||||
|
# openstacksdk config
|
||||||
|
- /etc/openstack:/etc/openstack:ro
|
||||||
# project-config
|
# project-config
|
||||||
- /opt/project-config:/opt/project-config:ro
|
- /opt/project-config:/opt/project-config:ro
|
||||||
# dib temporary storage; see config in project-config
|
# dib temporary storage; see config in project-config
|
||||||
@ -27,4 +25,4 @@ services:
|
|||||||
# dib image output; see config in project-config
|
# dib image output; see config in project-config
|
||||||
- /opt/nodepool_dib:/opt/nodepool_dib:rw
|
- /opt/nodepool_dib:/opt/nodepool_dib:rw
|
||||||
# logs (builder + dib build logs under /build)
|
# logs (builder + dib build logs under /build)
|
||||||
- /var/log/nodepool:/var/log/nodepool:rw
|
- /var/log/nodepool:/var/log/nodepool:rw
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# This file is deployed to nodepool builder hosts as
|
# This file is deployed to nodepool builder hosts as
|
||||||
#
|
#
|
||||||
# ~nodepool/.config/openstack/config/clouds.yaml
|
# {{ openstacksdk_config_dir }}/clouds.yaml
|
||||||
#
|
#
|
||||||
# and is used there to authenticate nodepool operations to clouds.
|
# and is used there to authenticate nodepool operations to clouds.
|
||||||
# The naming should correspond that used in nodepool configuration
|
# The naming should correspond that used in nodepool configuration
|
||||||
@ -155,7 +155,7 @@ clouds:
|
|||||||
api_timeout: 60
|
api_timeout: 60
|
||||||
identity_api_version: 3
|
identity_api_version: 3
|
||||||
floating_ip_source: None
|
floating_ip_source: None
|
||||||
cacert: /home/nodepool/.config/openstack/limestone_cacert.pem
|
cacert: '{{ openstacksdk_config_dir }}/limestone_cacert.pem'
|
||||||
packethost:
|
packethost:
|
||||||
regions:
|
regions:
|
||||||
- name: us-west-1
|
- name: us-west-1
|
||||||
|
@ -19,7 +19,12 @@ testinfra_hosts = ['nl01.openstack.org', 'nb01.openstack.org',
|
|||||||
|
|
||||||
|
|
||||||
def test_clouds_yaml(host):
|
def test_clouds_yaml(host):
|
||||||
clouds_yaml = host.file('/home/nodepool/.config/openstack/clouds.yaml')
|
if host.backend.get_hostname().endswith('openstack.org'):
|
||||||
|
cfg_file = '/home/nodepool/.config/openstack/clouds.yaml'
|
||||||
|
else:
|
||||||
|
cfg_file = '/etc/openstack/clouds.yaml'
|
||||||
|
|
||||||
|
clouds_yaml = host.file(cfg_file)
|
||||||
assert clouds_yaml.exists
|
assert clouds_yaml.exists
|
||||||
|
|
||||||
assert b'password' in clouds_yaml.content
|
assert b'password' in clouds_yaml.content
|
||||||
|
Loading…
Reference in New Issue
Block a user