2015-07-12 03:02:33 +00:00
|
|
|
---
|
2015-10-04 06:29:20 +00:00
|
|
|
- name: Disabling netfilter for bridges
|
2015-10-07 07:03:45 +00:00
|
|
|
sysctl: name="net.bridge.bridge-nf-call-{{ item }}" value=1 sysctl_set=yes
|
2015-10-04 06:29:20 +00:00
|
|
|
with_items:
|
|
|
|
- "iptables"
|
|
|
|
- "ip6tables"
|
2015-11-05 03:27:57 +00:00
|
|
|
when:
|
|
|
|
- set_sysctl | bool
|
|
|
|
- inventory_hostname in groups['compute']
|
2015-10-04 06:29:20 +00:00
|
|
|
|
|
|
|
- name: Disabling reverse path filter on compute node
|
2015-10-07 07:03:45 +00:00
|
|
|
sysctl: name="net.ipv4.conf.{{ item }}.rp_filter" value=0 sysctl_set=yes
|
2015-10-04 06:29:20 +00:00
|
|
|
with_items:
|
|
|
|
- "all"
|
|
|
|
- "default"
|
2015-11-05 03:27:57 +00:00
|
|
|
when:
|
|
|
|
- set_sysctl | bool
|
2016-01-26 19:50:43 +00:00
|
|
|
- inventory_hostname in groups['compute']
|
2015-10-04 06:29:20 +00:00
|
|
|
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Ensuring config directories exist
|
|
|
|
file:
|
|
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
|
|
state: "directory"
|
|
|
|
recurse: yes
|
|
|
|
with_items:
|
|
|
|
- "nova-api"
|
|
|
|
- "nova-compute"
|
2015-12-25 18:07:41 +02:00
|
|
|
- "nova-compute-ironic"
|
2015-12-18 19:40:48 +00:00
|
|
|
- "nova-conductor"
|
|
|
|
- "nova-consoleauth"
|
|
|
|
- "nova-libvirt"
|
|
|
|
- "nova-novncproxy"
|
|
|
|
- "nova-scheduler"
|
|
|
|
- "nova-spicehtml5proxy"
|
|
|
|
|
|
|
|
- name: Copying over config.json files for services
|
2015-08-28 18:42:18 -04:00
|
|
|
template:
|
2015-12-18 19:40:48 +00:00
|
|
|
src: "{{ item }}.json.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
|
|
with_items:
|
|
|
|
- "nova-api"
|
|
|
|
- "nova-compute"
|
2015-12-25 18:07:41 +02:00
|
|
|
- "nova-compute-ironic"
|
2015-12-18 19:40:48 +00:00
|
|
|
- "nova-conductor"
|
|
|
|
- "nova-consoleauth"
|
|
|
|
- "nova-libvirt"
|
|
|
|
- "nova-novncproxy"
|
|
|
|
- "nova-scheduler"
|
|
|
|
- "nova-spicehtml5proxy"
|
|
|
|
|
|
|
|
- name: Copying over nova.conf
|
|
|
|
merge_configs:
|
|
|
|
vars:
|
|
|
|
service_name: "{{ item }}"
|
|
|
|
sources:
|
|
|
|
- "{{ role_path }}/templates/nova.conf.j2"
|
2015-11-06 03:39:31 +00:00
|
|
|
- "/etc/kolla/config/global.conf"
|
|
|
|
- "/etc/kolla/config/database.conf"
|
|
|
|
- "/etc/kolla/config/messaging.conf"
|
2015-12-18 19:40:48 +00:00
|
|
|
- "/etc/kolla/config/nova.conf"
|
|
|
|
- "/etc/kolla/config/nova/{{ item }}.conf"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/nova.conf"
|
|
|
|
with_items:
|
|
|
|
- "nova-api"
|
|
|
|
- "nova-compute"
|
2015-12-25 18:07:41 +02:00
|
|
|
- "nova-compute-ironic"
|
2015-12-18 19:40:48 +00:00
|
|
|
- "nova-conductor"
|
|
|
|
- "nova-consoleauth"
|
|
|
|
- "nova-novncproxy"
|
|
|
|
- "nova-scheduler"
|
|
|
|
- "nova-spicehtml5proxy"
|
|
|
|
|
|
|
|
- name: Copying over libvirtd.conf
|
2015-09-27 13:10:00 +00:00
|
|
|
template:
|
2015-12-18 19:40:48 +00:00
|
|
|
src: "{{ role_path }}/templates/libvirtd.conf.j2"
|
2015-09-27 13:10:00 +00:00
|
|
|
dest: "{{ node_config_directory }}/nova-libvirt/libvirtd.conf"
|