-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdevstack.yml
More file actions
44 lines (36 loc) · 1.24 KB
/
devstack.yml
File metadata and controls
44 lines (36 loc) · 1.24 KB
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
---
- hosts: default
vars:
devstack_repo: git://github.com/openstack-dev/devstack.git
public_ip: 192.168.27.100
version: stable/mitaka
floating_ip_range: 172.24.4.0/24
heat: False
neutron: True
neutron_lbaasv2: False
swift: False
security_groups: False
tempest: False
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