blob: e882e290f42710593ebfb4a974bd555b0839472a [file] [log] [blame]
Zack Williams363bc852016-04-12 13:58:29 -07001---
2- hosts: xos-1
3 remote_user: ubuntu
4
5 tasks:
6 - name: Include configuration vars
7 include_vars: xos-setup-vars.yml
8
9 - name: Install prerequisites
10 apt:
11 name={{ item }}
12 update_cache=yes
13 cache_valid_time=3600
14 become: yes
15 with_items:
16 - git
17 - make
18 - python-novaclient
19 - python-neutronclient
20 - python-keystoneclient
21 - python-glanceclient
22
Zack Williams363bc852016-04-12 13:58:29 -070023 - name: Clone XOS repo
24 git:
25 repo={{ xos_repo_url }}
26 dest={{ xos_repo_dest }}
27 version={{ xos_repo_branch }}
Zack Williams363bc852016-04-12 13:58:29 -070028
29 - name: Make XOS prerequisites
30 command: make -f {{ xos_repo_dest }}/xos/configurations/common/Makefile.prereqs
31
32 - name: Copy over SSH keys
33 copy:
34 src=~/.ssh/{{ item }}
35 dest={{ xos_repo_dest }}/xos/configurations/{{ xos_configuration }}/
36 owner={{ ansible_user_id }} mode=0600
37 with_items:
38 - id_rsa
39 - id_rsa.pub
40
41 - name: copy over admin-openrc.sh
42 copy:
43 src=~/admin-openrc.sh
44 dest={{ xos_repo_dest }}/xos/configurations/{{ xos_configuration }}
45
46 - name: copy over SSH key as node_key
47 copy:
48 src=~/.ssh/id_rsa
49 dest={{ xos_repo_dest }}//xos/configurations/{{ xos_configuration }}/node_key
50
Zack Williams363bc852016-04-12 13:58:29 -070051 - name: download software image
52 get_url:
53 url=http://www.vicci.org/opencloud/trusty-server-cloudimg-amd64-disk1.img
54 checksum=sha256:5fb160ea09649f9cebe5cfd7aaf3d1a341e8e0f9eca6e52e46eb6271155c48b0
55 dest={{ xos_repo_dest }}/xos/configurations/{{ xos_configuration }}/images/trusty-server-multi-nic.img
56
57