blob: 4ab44cb73f427f43f6dcfdcf1b9b9dc3d48eda80 [file] [log] [blame]
Zack Williams363bc852016-04-12 13:58:29 -07001---
Andy Bavierf69e77c2016-06-28 17:19:33 -04002# Common ONOS setup
3- hosts: onos-cord-1:onos-fabric-1
Zack Williams363bc852016-04-12 13:58:29 -07004 remote_user: ubuntu
5
6 tasks:
7 - name: Include configuration vars
8 include_vars: onos-setup-vars.yml
9
Zack Williams9b3c3612016-04-14 07:05:30 -070010 - name: Create CORD directory
11 file:
12 path={{ ansible_user_dir }}/cord
13 state=directory
14
Andy Bavierf69e77c2016-06-28 17:19:33 -040015 - name: Pull docker image for ONOS
16 become: yes
17 command: docker pull onosproject/onos:1.6
18
19# Setup specific for onos-cord VM
20- hosts: onos-cord-1
21 remote_user: ubuntu
22
23 tasks:
Andy Bavier057a8832016-08-02 17:31:07 -040024 - name: Copy over SSH key
Zack Williams363bc852016-04-12 13:58:29 -070025 copy:
Andy Bavier057a8832016-08-02 17:31:07 -040026 src={{ node_private_key }}
27 dest={{ ansible_user_dir }}/cord/node_key
Zack Williams363bc852016-04-12 13:58:29 -070028 owner={{ ansible_user_id }} mode=0600
Zack Williams363bc852016-04-12 13:58:29 -070029
Zack Williams2a287092016-05-18 13:41:31 -070030 - name: Copy over files to build XOS variant of ONOS
31 copy:
32 src="~/{{ item }}"
33 dest="{{ ansible_user_dir }}/cord/{{ item }}"
34 with_items:
35 - Dockerfile.xos-onos
36 - onos-service
37
Zack Williamse4fbacc2016-05-21 07:18:43 -070038 - name: Copy over & rename docker-compose file
Zack Williams363bc852016-04-12 13:58:29 -070039 copy:
Zack Williams2a287092016-05-18 13:41:31 -070040 src=~/onos-docker-compose.yml
Zack Williams363bc852016-04-12 13:58:29 -070041 dest={{ ansible_user_dir }}/cord/docker-compose.yml
42
Andy Bavierf69e77c2016-06-28 17:19:33 -040043- hosts: onos-fabric-1
44 remote_user: ubuntu
Zack Williamsd31bbc92016-05-20 11:43:18 -070045
Andy Bavierf69e77c2016-06-28 17:19:33 -040046 tasks:
47 - name: Copy over & rename docker-compose file
48 copy:
49 src=~/fabric-docker-compose.yml
50 dest={{ ansible_user_dir }}/cord/docker-compose.yml