Merge pull request #768 from mcsage/master

Make install-ansible.sh work with Linux Mint and enable swap by default but decrease vm.swappiness
pull/770/merge
Leseb 2016-05-10 10:24:02 +02:00
commit 7a9a62302a
3 changed files with 5 additions and 4 deletions

View File

@ -314,7 +314,6 @@ dummy:
## MDS options
#
#mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
#mds_name: "{{ ansible_hostname }}"
## Rados Gateway options
#
@ -374,12 +373,13 @@ dummy:
#############
#disable_transparent_hugepage: true
#disable_swap: true
#disable_swap: false
#os_tuning_params:
# - { name: kernel.pid_max, value: 4194303 }
# - { name: fs.file-max, value: 26234859 }
# - { name: vm.zone_reclaim_mode, value: 0 }
# - { name: vm.vfs_cache_pressure, value: 50 }
# - { name: vm.swappiness, value: 10 }
# - { name: vm.min_free_kbytes, value: "{{ vm_min_free_kbytes }}" }

View File

@ -20,7 +20,7 @@ if [[ "Debian" =~ $os_VENDOR ]]; then
cd ansible
make install
mkdir /etc/ansible
elif [[ "Ubuntu" =~ $os_VENDOR ]]; then
elif [[ "Ubuntu" =~ $os_VENDOR || "LinuxMint" =~ $os_VENDOR ]]; then
add-apt-repository -y ppa:ansible/ansible
apt-get update
apt-get install -y ansible

View File

@ -365,12 +365,13 @@ ceph_conf_overrides: {}
#############
disable_transparent_hugepage: true
disable_swap: true
disable_swap: false
os_tuning_params:
- { name: kernel.pid_max, value: 4194303 }
- { name: fs.file-max, value: 26234859 }
- { name: vm.zone_reclaim_mode, value: 0 }
- { name: vm.vfs_cache_pressure, value: 50 }
- { name: vm.swappiness, value: 10 }
- { name: vm.min_free_kbytes, value: "{{ vm_min_free_kbytes }}" }