Install packages with roles in multinode

Use extras roles to build packages and install them both on
primary node and subnodes.

Change-Id: I3ff6bffe36aab3faa078f17d1da99b94da7154c5
This commit is contained in:
Sagi Shnaidman 2017-03-09 17:15:23 +02:00
parent 970ab4b387
commit 4b18a0c82c
2 changed files with 40 additions and 8 deletions

View File

@ -11,10 +11,6 @@
roles:
- tripleo-inventory
- include: build-install-playbook.yml
tags:
- build
- name: Create configs on subnodes
hosts: overcloud
roles:
@ -40,6 +36,26 @@
WORKSPACE: "{{ lookup('env','WORKSPACE') }}"
SSH_OPTIONS: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=Verbose -o PasswordAuthentication=no -o ConnectionAttempts=32 -l jenkins"
- name: Run DLRN gate role and install repo
hosts: undercloud
vars:
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
artg_repos_dir: "{{ tripleo_root }}"
roles:
- build-test-packages
- { role: install-built-repo, when: compressed_gating_repo is defined }
tags:
- build
- name: Install built packages on subnodes
hosts: overcloud
vars:
ib_repo_host: undercloud
roles:
- { role: install-built-repo, when: "hostvars['undercloud']['compressed_gating_repo'] is defined" }
tags:
- build
- name: Install the undercloud
hosts: undercloud
roles:

View File

@ -11,10 +11,6 @@
roles:
- tripleo-inventory
- include: build-install-playbook.yml
tags:
- build
- name: Create configs on subnodes
hosts: overcloud
roles:
@ -40,6 +36,26 @@
WORKSPACE: "{{ lookup('env','WORKSPACE') }}"
SSH_OPTIONS: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=Verbose -o PasswordAuthentication=no -o ConnectionAttempts=32 -l jenkins"
- name: Run DLRN gate role and install repo
hosts: undercloud
vars:
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
artg_repos_dir: "{{ tripleo_root }}"
roles:
- build-test-packages
- { role: install-built-repo, when: compressed_gating_repo is defined }
tags:
- build
- name: Install built packages on subnodes
hosts: overcloud
vars:
ib_repo_host: undercloud
roles:
- { role: install-built-repo, when: "hostvars['undercloud']['compressed_gating_repo'] is defined" }
tags:
- build
- name: Install the undercloud
hosts: undercloud
roles: