f4594e9107
Added playbook which replicates the actions of openstack-service-setup.sh which was present in earlier versions. This creates a sample set of flavors, Linux images, networks, security group rules and a router so OpenStack is ready to use. The data controlling what is created is all in the file multi-node-aio/playbooks/vars/openstack-service-config.yml Change-Id: Ib1999f215aabadb23a3ebeb55fbce4a2caf69030
26 lines
633 B
YAML
26 lines
633 B
YAML
---
|
|
# These tasks are included in openstack-service-setup.yml playbook and
|
|
# are repeated for each required image file.
|
|
|
|
- name: Download system image file
|
|
get_url:
|
|
url: "{{ item.url }}"
|
|
dest: "/tmp/os_image_{{ item.name }}"
|
|
timeout: 600 # big files might take a while to download
|
|
|
|
- name: Install system image
|
|
os_image:
|
|
endpoint_type: internal
|
|
cloud: default
|
|
state: present
|
|
is_public: true
|
|
name: "{{ item.name }}"
|
|
filename: "/tmp/os_image_{{ item.name }}"
|
|
disk_format: "{{ item.format }}"
|
|
|
|
- name: Clean up temp file
|
|
file:
|
|
path: "/tmp/os_image_{{ item.name }}"
|
|
state: absent
|
|
|