-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevstack.yml
71 lines (57 loc) · 1.78 KB
/
devstack.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
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
---
- name: provision two devstack nodes for neutron floodlight - common
hosts:
- controller
- compute1
user: vagrant
gather_facts: False
tasks:
- name: install packages
sudo: True
apt: name={{ item }} update_cache=yes
with_items:
- git
- python-pip
- language-pack-en-base
- openvswitch-datapath-dkms
- openvswitch-common
- openvswitch-switch
# workaround a dependency issue where 0.6.1 is installed, but devstack needs 0.7.2
- pip: name=prettytable state=latest
sudo: True
# http://askubuntu.com/a/17002
- command: dpkg-reconfigure locales
creates=/home/vagrant/.reconfigure-locale-done
sudo: True
- command: git config --global color.ui true
- name: git clone devstack
git: repo=https://github.com/openstack-dev/devstack
dest=/home/vagrant/devstack force=no update=no
- name: copy script for configuring openvswitch
copy: src=ovs-init.sh dest=/home/vagrant/ovs-init.sh
owner=vagrant group=vagrant mode=0755
- name: controller node
hosts: controller
user: vagrant
gather_facts: False
tasks:
- name: install packages
sudo: True
apt: name={{ item }}
with_items:
- default-jdk
- ant
- name: git clone floodlight
git: repo=https://github.com/floodlight/floodlight
dest=/home/vagrant/floodlight version=fl-last-passed-build force=no update=no
- name: copy localrc
copy: src=localrc.controller dest=/home/vagrant/devstack/localrc
force=no owner=vagrant group=vagrant mode=0644
- name: compute node
hosts: compute1
user: vagrant
gather_facts: False
tasks:
- name: copy localrc
copy: src=localrc.compute1 dest=/home/vagrant/devstack/localrc
force=no owner=vagrant group=vagrant mode=0644