summaryrefslogtreecommitdiff
path: root/roles/devcloud/tasks/main.yml
blob: 72b67de137b96989bb985166d9f8099f78e67118 (plain)
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
- name: Add Jessie Backports pinning
  copy: src=jessie-backports dest=/etc/apt/preferences.d/
  register: backports

- name: Update apt if needed
  when: backports is defined and backports.changed
  apt: update_cache=yes

- name: Install nova-compute packages
  apt: pkg={{item}} state=installed
  with_items:
    - chrony
    - nova-compute
    - sysfsutils

- name: Install neutron packages
  apt: pkg={{item}} state=installed
  with_items:
    - neutron-plugin-linuxbridge-agent
    - conntrack

- name: Configure chrony (ntp)
  copy: src=chrony.conf dest=/etc/chrony/chrony.conf
  notify:
    - restart-chrony

- name: Configure nova-compute
  copy: src=nova-compute.conf dest=/etc/nova
  notify: restart-nova

- name: Configure nova
  template: src=nova.conf dest=/etc/nova
  notify: restart-nova

- name: Configure neutron.conf
  template: src=neutron.conf dest=/etc/neutron/
  notify: restart-neutron

- name: Configure neutron ml2_conf
  copy: src=ml2_conf.ini dest=/etc/neutron/plugins/ml2/
  notify: restart-neutron

- name: Configure linuxbridge_agent.ini
  template: src=linuxbridge_agent.ini dest=/etc/neutron/plugins/ml2/
  notify: restart-neutron

- name: packaging hack
  file: src=/etc/neutron/plugins/ml2 state=link
        dest=/etc/neutron/plugins/linuxbridge

- name: packaging hack
  file: src=/etc/neutron/plugins/ml2/linuxbridge_agent.ini state=link
        dest=/etc/neutron/plugins/ml2/linuxbridge_conf.ini