forked from lorin/devstack-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devstack.yml
45 lines (37 loc) · 1.34 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
---
- hosts: default
vars:
devstack_repo: git://github.com/openstack-dev/devstack.git
public_ip: 192.168.27.100
version: stable/newton
floating_ip_range: 172.24.4.0/24
heat: True
neutron: True
neutron_lbaasv2: False
neutron_lbaas: False # LBaaS v1 is obsolete from stable/newton (use only with mitaka and lower)
swift: True
security_groups: True
tempest: True
keyring_config_dir: /home/vagrant/.local/share/python_keyring
app_catalog: False
tasks:
- name: create keyring config directory
file: >
state=directory
dest={{ keyring_config_dir }}
- name: copy keyring config file to workaround https://bugs.launchpad.net/bugs/1242992
copy: >
src=files/keyringrc.cfg
dest={{ keyring_config_dir }}/keyringrc.cfg
- name: install git
apt: "name=git update_cache=yes"
become: True
- name: checkout devstack
git: repo={{ devstack_repo }} dest=/home/vagrant/devstack version={{ version }} accept_hostkey=yes
- name: local.conf
template: src=templates/local.conf.j2 dest=/home/vagrant/devstack/local.conf
- name: source openrc in profile
lineinfile: dest=/home/vagrant/.profile regexp=".*openrc" line='. /home/vagrant/devstack/openrc'
- name: enable eth2
command: ip link set dev eth2 up
become: True