Upgrade pbench install to 0.35
Change-Id: I5e042cbfe341e4802bf5e14a9e05c8f7c108f866
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
---
|
||||
centos_image: http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2
|
||||
|
||||
connmon_host: 192.0.2.1
|
||||
|
||||
dns_server: 8.8.8.8
|
||||
pbench_repo_file_url: http://pbench.example.com/repo/yum.repos.d/pbench.repo
|
||||
|
||||
# pbench repos, you must replace the internal to the correct repo to install pbench
|
||||
pbench_internal_repo_file_url: http://pbench.example.com/repo/yum.repos.d/pbench.repo
|
||||
pbench_repo_file_url: https://copr.fedoraproject.org/coprs/ndokos/pbench/repo/epel-7/ndokos-pbench-epel-7.repo
|
||||
configtools_repo_file_url: https://copr.fedoraproject.org/coprs/ndokos/configtools/repo/epel-7/ndokos-configtools-epel-7.repo
|
||||
|
||||
# Enterprise Linux Repo name. Copied from undercloud to controllers for
|
||||
# installing any pbench dependencies
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
- hosts: undercloud
|
||||
remote_user: stack
|
||||
gather_facts: false
|
||||
vars:
|
||||
ansible_sudo: true
|
||||
undercloud: true
|
||||
@@ -12,8 +13,9 @@
|
||||
- common
|
||||
- pbench
|
||||
|
||||
- hosts: controller
|
||||
- hosts: controller:compute
|
||||
remote_user: heat-admin
|
||||
gather_facts: false
|
||||
vars:
|
||||
ansible_sudo: true
|
||||
undercloud: false
|
||||
|
||||
@@ -12,18 +12,28 @@
|
||||
copy: src=el.repo dest=/etc/yum.repos.d/
|
||||
when: not undercloud
|
||||
|
||||
- name: Install pbench repo file
|
||||
- name: Install internal pbench repo file
|
||||
get_url: url="{{ pbench_internal_repo_file_url }}" dest=/etc/yum.repos.d/pbench-internal.repo
|
||||
|
||||
- name: Install pbench copr repo file
|
||||
get_url: url="{{ pbench_repo_file_url }}" dest=/etc/yum.repos.d/pbench.repo
|
||||
|
||||
- name: Install configtools copr repo file
|
||||
get_url: url="{{ configtools_repo_file_url }}" dest=/etc/yum.repos.d/configtools.repo
|
||||
|
||||
- name: Install pbench-agent
|
||||
yum: name=pbench-agent state=latest
|
||||
yum: name=pbench-agent-internal state=latest
|
||||
|
||||
- name: Ensure pbench directory exists as stack user on undercloud
|
||||
file: path=/var/lib/pbench-agent state=directory owner=stack group=stack recurse=yes
|
||||
when: undercloud
|
||||
|
||||
- name: Ensure pbench tools-default directory exists as stack user on undercloud
|
||||
file: path=/var/lib/pbench-agent/tools-default state=directory owner=stack group=stack recurse=yes
|
||||
when: undercloud
|
||||
|
||||
- name: Ensure pbench id_rsa is owned by stack
|
||||
file: path=/opt/pbench-agent/id_rsa owner=stack group=stack
|
||||
file: path=/opt/pbench-agent/id_rsa owner=stack group=stack mode=0600
|
||||
when: undercloud
|
||||
|
||||
- name: Get undercloud root ssh public key
|
||||
|
||||
Reference in New Issue
Block a user