![James E. Blair](/assets/img/avatar_default.png)
Rather than implement functional OpenStack testing as a devstack plugin, use devstack as a black-box OpenStack. This allows us to move nodepool to a new Zuul tenant without depending on the devstack job and all its associated projects. It will also let us replace devstack with something potentially lighter weight in the future. The job permits customized settings for what images to build, so that the DIB project can inherit from it and make child jobs for each of the operating systems it cares about. Change-Id: Ie6bc891cebd32b3d1bb646109f13ac2fd383bba5
31 lines
811 B
YAML
31 lines
811 B
YAML
- name: Load clouds.yaml
|
|
become: true
|
|
slurp:
|
|
path: /etc/openstack/clouds.yaml
|
|
register: clouds_yaml
|
|
- name: Parse clouds.yaml
|
|
set_fact:
|
|
clouds_yaml: "{{ clouds_yaml.content | b64decode | from_yaml }}"
|
|
- name: Update clouds.yaml
|
|
vars:
|
|
new_config:
|
|
# cache:
|
|
# max_age: 3600
|
|
# class: dogpile.cache.dbm
|
|
# arguments:
|
|
# filename: .cache/openstack/shade.dbm
|
|
# expiration:
|
|
# floating-ip: 5
|
|
# server: 5
|
|
# port: 5
|
|
# TODO(pabelanger): Remove once glean fully supports IPv6.
|
|
client:
|
|
force_ipv4: True
|
|
set_fact:
|
|
clouds_yaml: "{{ clouds_yaml | combine(new_config) }}"
|
|
- name: Save clouds.yaml
|
|
become: true
|
|
copy:
|
|
content: "{{ clouds_yaml | to_nice_yaml }}"
|
|
dest: /etc/openstack/clouds.yaml
|