Skip to content

Commit

Permalink
Allow user sysctl list
Browse files Browse the repository at this point in the history
Let operators feed the role a list of sysctl settings to set without
overriding the default openstack_kernel_options list.

Change-Id: I148492e691e552add6787fdc3937e65bd1366772
(cherry picked from commit f5caf08)
  • Loading branch information
logan2211 committed Feb 17, 2017
1 parent b20b676 commit b60c8e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions defaults/main.yml
Expand Up @@ -90,5 +90,9 @@ openstack_kernel_options:
- { key: 'net.ipv6.neigh.default.gc_stale_time', value: 120 }
- { key: 'fs.aio-max-nr', value: 131072 }

# Optional user defined list of sysctl options in the same dict item format as
# above.
openstack_user_kernel_options: []

# Set the openstack domain name
openstack_domain: openstack.local
2 changes: 1 addition & 1 deletion tasks/openstack_kernel_tuning.yml
Expand Up @@ -20,5 +20,5 @@
sysctl_set: "{{ item.set|default('yes') }}"
state: "{{ item.state|default('present') }}"
reload: "{{ item.reload|default('yes') }}"
with_items: "{{ openstack_kernel_options }}"
with_items: "{{ openstack_kernel_options + openstack_user_kernel_options }}"
failed_when: false

0 comments on commit b60c8e1

Please sign in to comment.