b1bfee423b
This adds the webserver that serves the logs and generated images. Change-Id: I230f5291e0bd928af2e00966d76c3f385b749cb6
41 lines
960 B
YAML
41 lines
960 B
YAML
- name: Ensure dib directories
|
|
file:
|
|
state: directory
|
|
path: '{{ item }}'
|
|
mode: 0755
|
|
owner: nodepool
|
|
group: nodepool
|
|
loop:
|
|
- '/opt/dib_tmp'
|
|
- '/opt/nodepool_dib'
|
|
- '/var/log/nodepool/builds'
|
|
|
|
- name: Setup webserver
|
|
include_tasks: webserver.yaml
|
|
|
|
- name: Ensure /etc/nodepool-builder-compose directory
|
|
file:
|
|
state: directory
|
|
path: /etc/nodepool-builder-compose
|
|
mode: 0755
|
|
|
|
- name: Put docker-compose file in place
|
|
template:
|
|
src: docker-compose.yaml.j2
|
|
dest: /etc/nodepool-builder-compose/docker-compose.yaml
|
|
mode: 0644
|
|
|
|
- name: Install podman-compose
|
|
pip:
|
|
name: podman-compose
|
|
state: latest
|
|
# NOTE(mordred) Cannot use full path to pip3 here because it is
|
|
# different on zuul test nodes and in production. This is, of
|
|
# course, not stellar.
|
|
executable: pip3
|
|
|
|
- name: Run podman-compose up
|
|
shell:
|
|
cmd: podman-compose up -d
|
|
chdir: /etc/nodepool-builder-compose/
|