Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 1 | --- |
Andy Bavier | f69e77c | 2016-06-28 17:19:33 -0400 | [diff] [blame] | 2 | # Common ONOS setup |
| 3 | - hosts: onos-cord-1:onos-fabric-1 |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 4 | remote_user: ubuntu |
| 5 | |
| 6 | tasks: |
| 7 | - name: Include configuration vars |
| 8 | include_vars: onos-setup-vars.yml |
| 9 | |
Zack Williams | 9b3c361 | 2016-04-14 07:05:30 -0700 | [diff] [blame] | 10 | - name: Create CORD directory |
| 11 | file: |
| 12 | path={{ ansible_user_dir }}/cord |
| 13 | state=directory |
| 14 | |
Andy Bavier | f69e77c | 2016-06-28 17:19:33 -0400 | [diff] [blame] | 15 | - 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: |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 24 | - name: Copy over SSH keys |
| 25 | copy: |
| 26 | src=~/.ssh/{{ item }} |
| 27 | dest={{ ansible_user_dir }}/cord/{{ item }} |
| 28 | owner={{ ansible_user_id }} mode=0600 |
| 29 | with_items: |
| 30 | - id_rsa |
| 31 | - id_rsa.pub |
| 32 | |
Zack Williams | 2a28709 | 2016-05-18 13:41:31 -0700 | [diff] [blame] | 33 | - name: Copy over files to build XOS variant of ONOS |
| 34 | copy: |
| 35 | src="~/{{ item }}" |
| 36 | dest="{{ ansible_user_dir }}/cord/{{ item }}" |
| 37 | with_items: |
| 38 | - Dockerfile.xos-onos |
| 39 | - onos-service |
| 40 | |
Zack Williams | e4fbacc | 2016-05-21 07:18:43 -0700 | [diff] [blame] | 41 | - name: Copy over & rename docker-compose file |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 42 | copy: |
Zack Williams | 2a28709 | 2016-05-18 13:41:31 -0700 | [diff] [blame] | 43 | src=~/onos-docker-compose.yml |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 44 | dest={{ ansible_user_dir }}/cord/docker-compose.yml |
| 45 | |
Andy Bavier | f69e77c | 2016-06-28 17:19:33 -0400 | [diff] [blame] | 46 | - hosts: onos-fabric-1 |
| 47 | remote_user: ubuntu |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 48 | |
Andy Bavier | f69e77c | 2016-06-28 17:19:33 -0400 | [diff] [blame] | 49 | tasks: |
| 50 | - name: Copy over & rename docker-compose file |
| 51 | copy: |
| 52 | src=~/fabric-docker-compose.yml |
| 53 | dest={{ ansible_user_dir }}/cord/docker-compose.yml |