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:
parent
970ab4b387
commit
4b18a0c82c
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue