-
Notifications
You must be signed in to change notification settings - Fork 16
/
browbeat.yml
35 lines (35 loc) · 1.14 KB
/
browbeat.yml
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
- hosts: undercloud
become: yes
become_user: stack
vars:
browbeat_dir: "/home/stack/browbeat"
tasks:
- name: clone browbeat
git:
repo: "https://github.com/cloud-bulldozer/browbeat.git"
dest: "{{ browbeat_dir }}"
force: yes
- name: get dns server
shell: |
cat /etc/resolv.conf | grep nameserver | head -n1 | cut -d ' ' -f2
register: dns_server
- name: replace dns_server in groups vars
shell: |
sed -i 's/dns_server: 8.8.8.8/dns_server: {{ dns_server.stdout }}/g' {{ browbeat_dir }}/ansible/install/group_vars/all.yml
- name: generate hosts file
shell: |
source /home/stack/stackrc
./generate_tripleo_inventory.sh -l
args:
chdir: "{{ browbeat_dir }}/ansible"
- name: install browbeat
shell: |
source /home/stack/.bash_profile
ansible-playbook -i hosts.yml install/browbeat.yml
args:
chdir: "{{ browbeat_dir }}/ansible"
- name: Activate virtualenv to run tests
shell: |
source .browbeat-venv/bin/activate
args:
chdir: "{{ browbeat_dir }}"