-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-load-drivers.yaml
113 lines (86 loc) · 2.63 KB
/
update-load-drivers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
- hosts: load-drivers
# roles:
#- rhsm-registered
#- monitoring
#- chronyd
vars:
#required_repos:
# - rhel-7-server-rpms
# - rhel-7-server-extras-rpms
interface: ens192
tasks:
#- name: Disable all repositories except required_repos
# rhsm_repository:
# name: "{{ enabled_repos.repositories |
# map(attribute='id') |
# difference(required_repos) |
# join(',' ) }}"
# state: disabled
#- name: enable required repositories
# rhsm_repository: name={{ required_repos | join(',') }}
# state: enabled
# register: enabled_repos
# - name: enable extra repo
# rhsm_repository: name="rhel-7-server-extras-rpms"
# state: enabled
# - name: install docker and ansible dependencies
# yum:
# name: docker
# state: present
# - name: install docker-python
# yum:
# name: docker-python
# state: present
# - name: start and enable docker
# service:
# name: docker
# state: started
# enabled: yes
# - name: pull down load driver containers
# docker_image: name={{ item }}
# with_items:
# #- dmesser/ds2mysqldriver
# - dmesser/ds3webdriver
# - name: install python dependencies
# package: name={{ item }} state=present
# with_items:
# - MySQL-python
# - name: copy the benchmark script
# copy:
# src: files/run_bench.py
# dest: /root/
# owner: root
# group: root
# mode: 0755
# - name: create the directory for the ds2 config files
#file: path=/root/ds2mysqldriver state=directory
- name: create the directory for the ds3 config files
file: path=/root/ds3webdriver state=directory
# - name: Copy collectd config file
#template:
# src: network-bandwidth-usage.conf.j2
# dest: /etc/collectd.d/network-bandwidth-usage.conf
# owner: root
# group: root
# mode: 0644
- hosts: rhhi-perf1.lab.eng.blr.redhat.com
tasks:
- name: create config files for the containers
template:
src: templates/ds3DriverConfig.txt.j2
dest: /root/ds3webdriver/DriverConfig.txt.{{ item.0 }}
owner: root
group: root
mode: 0644
loop: "{{ range(0,111,1)|list|zip(range(15,126,1))|list }}"
- hosts: rhhi-perf2.lab.eng.blr.redhat.com
tasks:
- name: create config files for the containers
template:
src: templates/ds3DriverConfig.txt.j2
dest: /root/ds3webdriver/DriverConfig.txt.{{ item.0 }}
owner: root
group: root
mode: 0644
loop: "{{ range(0,51,1)|list|zip(range(130,184,1))|list }}"