Merge "Allow disabling of sysctl values"
This commit is contained in:
commit
58a9759b84
@ -114,6 +114,9 @@ openstack_logging_debug: "False"
|
|||||||
|
|
||||||
openstack_region_name: "RegionOne"
|
openstack_region_name: "RegionOne"
|
||||||
|
|
||||||
|
# Optionally allow Kolla to set sysctl values
|
||||||
|
set_sysctl: "yes"
|
||||||
|
|
||||||
# Valid options are [ novnc, spice ]
|
# Valid options are [ novnc, spice ]
|
||||||
nova_console: "novnc"
|
nova_console: "novnc"
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
- name: Allowing non-local IP binding
|
- name: Allowing non-local IP binding
|
||||||
sysctl: name="net.ipv4.ip_nonlocal_bind" value=1 sysctl_set=yes
|
sysctl: name="net.ipv4.ip_nonlocal_bind" value=1 sysctl_set=yes
|
||||||
|
when: set_sysctl | bool
|
||||||
|
|
||||||
- name: Ensuring config directory exists
|
- name: Ensuring config directory exists
|
||||||
file:
|
file:
|
||||||
|
@ -1,14 +1,18 @@
|
|||||||
---
|
---
|
||||||
- name: Allowing IP forwarding on network node
|
- name: Allowing IP forwarding on network node
|
||||||
sysctl: name="net.ipv4.ip_forward" value=1 sysctl_set=yes
|
sysctl: name="net.ipv4.ip_forward" value=1 sysctl_set=yes
|
||||||
when: inventory_hostname in groups['neutron-agents']
|
when:
|
||||||
|
- set_sysctl | bool
|
||||||
|
- inventory_hostname in groups['neutron-agents']
|
||||||
|
|
||||||
- name: Disabling reverse path filter on network node
|
- name: Disabling reverse path filter on network node
|
||||||
sysctl: name="net.ipv4.conf.{{ item }}.rp_filter" value=0 sysctl_set=yes
|
sysctl: name="net.ipv4.conf.{{ item }}.rp_filter" value=0 sysctl_set=yes
|
||||||
with_items:
|
with_items:
|
||||||
- "all"
|
- "all"
|
||||||
- "default"
|
- "default"
|
||||||
when: inventory_hostname in groups['neutron-agents']
|
when:
|
||||||
|
- set_sysctl | bool
|
||||||
|
- inventory_hostname in groups['neutron-agents']
|
||||||
|
|
||||||
- include: ../../config.yml
|
- include: ../../config.yml
|
||||||
vars:
|
vars:
|
||||||
|
@ -4,14 +4,18 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- "iptables"
|
- "iptables"
|
||||||
- "ip6tables"
|
- "ip6tables"
|
||||||
when: inventory_hostname in groups['compute']
|
when:
|
||||||
|
- set_sysctl | bool
|
||||||
|
- inventory_hostname in groups['compute']
|
||||||
|
|
||||||
- name: Disabling reverse path filter on compute node
|
- name: Disabling reverse path filter on compute node
|
||||||
sysctl: name="net.ipv4.conf.{{ item }}.rp_filter" value=0 sysctl_set=yes
|
sysctl: name="net.ipv4.conf.{{ item }}.rp_filter" value=0 sysctl_set=yes
|
||||||
with_items:
|
with_items:
|
||||||
- "all"
|
- "all"
|
||||||
- "default"
|
- "default"
|
||||||
when: inventory_hostname in groups['neutron-agents']
|
when:
|
||||||
|
- set_sysctl | bool
|
||||||
|
- inventory_hostname in groups['neutron-agents']
|
||||||
|
|
||||||
- include: ../../config.yml
|
- include: ../../config.yml
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user