Move sysctl settings into hieradata

This will configure the sysctl settings via puppet instead of
sysctl image element.

Change-Id: Ieb129d4cbe4b6d4184172631499ecd638073564f
This commit is contained in:
Giulio Fidente 2015-05-19 11:23:09 +02:00
parent 3edb98a0d4
commit 9669efa87a
8 changed files with 20 additions and 4 deletions

View File

@ -42,10 +42,6 @@ resources:
- list_join:
- "\n"
- {get_param: ceph_storage_hosts}
sysctl:
net.ipv4.tcp_keepalive_time: 5
net.ipv4.tcp_keepalive_probes: 5
net.ipv4.tcp_keepalive_intvl: 1
hiera:
datafiles:
all_nodes:

View File

@ -12,3 +12,11 @@ nova::network::neutron::neutron_admin_username: 'neutron'
nova::network::neutron::vif_plugging_is_fatal: false
nova::network::neutron::vif_plugging_timeout: 30
nova::network::neutron::dhcp_domain: ''
sysctl_settings:
net.ipv4.tcp_keepalive_intvl:
value: 1
net.ipv4.tcp_keepalive_probes:
value: 5
net.ipv4.tcp_keepalive_time:
value: 5

View File

@ -24,6 +24,8 @@ if !str2bool(hiera('enable_package_install', 'false')) {
}
}
create_resources(sysctl::value, hiera('sysctl_settings'), {})
if count(hiera('ntp::servers')) > 0 {
include ::ntp
}

View File

@ -24,6 +24,8 @@ if !str2bool(hiera('enable_package_install', 'false')) {
}
}
create_resources(sysctl::value, hiera('sysctl_settings'), {})
if count(hiera('ntp::servers')) > 0 {
include ::ntp
}

View File

@ -26,6 +26,8 @@ if !str2bool(hiera('enable_package_install', 'false')) {
if hiera('step') >= 1 {
create_resources(sysctl::value, hiera('sysctl_settings'), {})
$controller_node_ips = split(hiera('controller_node_ips'), ',')
class { '::tripleo::loadbalancer' :

View File

@ -39,6 +39,8 @@ if $::hostname == downcase(hiera('bootstrap_nodeid')) {
if hiera('step') >= 1 {
create_resources(sysctl::value, hiera('sysctl_settings'), {})
if count(hiera('ntp::servers')) > 0 {
include ::ntp
}

View File

@ -24,6 +24,8 @@ if !str2bool(hiera('enable_package_install', 'false')) {
}
}
create_resources(sysctl::value, hiera('sysctl_settings'), {})
if count(hiera('ntp::servers')) > 0 {
include ::ntp
}

View File

@ -24,6 +24,8 @@ if str2bool(hiera('disable_package_install', 'false')) {
}
}
create_resources(sysctl::value, hiera('sysctl_settings'), {})
if count(hiera('ntp::servers')) > 0 {
include ::ntp
}