Removed fuel from Genesis master since fuel has moved to repo fuel.
[genesis.git] / compass / deploy / ansible / roles / neutron-compute / tasks / main.yml
1 ---
2
3 - name: activate ipv4 forwarding
4   sysctl: name=net.ipv4.ip_forward value=1
5           state=present reload=yes
6
7 - name: deactivate ipv4 rp filter
8   sysctl: name=net.ipv4.conf.all.rp_filter value=0
9           state=present reload=yes
10
11 - name: deactivate ipv4 default rp filter
12   sysctl: name=net.ipv4.conf.default.rp_filter
13           value=0 state=present reload=yes
14
15 - name: install compute-related neutron packages
16   apt: name={{ item }} state=present force=yes
17   with_items:
18     - neutron-common
19     - neutron-plugin-ml2
20     - openvswitch-datapath-dkms
21     - openvswitch-switch
22
23 - name: generate neutron computer service list
24   shell: echo {{ item }} >> /opt/service
25   with_items:
26     - neutron-plugin-openvswitch-agent
27
28 - name: install neutron openvswitch agent
29   apt: name=neutron-plugin-openvswitch-agent
30        state=present force=yes
31   when: "'opendaylight' not in {{ NEUTRON_MECHANISM_DRIVERS }}"
32
33 - name: config neutron
34   template: src=neutron-network.conf
35             dest=/etc/neutron/neutron.conf backup=yes
36   notify:
37     - restart neutron-plugin-openvswitch-agent
38
39 - name: config ml2 plugin
40   template: src=ml2_conf.ini
41             dest=/etc/neutron/plugins/ml2/ml2_conf.ini
42             backup=yes
43   notify:
44     - restart neutron-plugin-openvswitch-agent 
45
46 - name: add br-int
47   openvswitch_bridge: bridge=br-int state=present
48   notify:
49     - restart neutron-plugin-openvswitch-agent
50     - restart nova-compute
51
52 - include: ../../neutron-network/tasks/odl.yml
53   when: "'opendaylight' in {{ NEUTRON_MECHANISM_DRIVERS }}"
54
55 - meta: flush_handlers