Skip to content

Commit

Permalink
Merge pull request #768 from mcsage/master
Browse files Browse the repository at this point in the history
Make install-ansible.sh work with Linux Mint and enable swap by default but decrease vm.swappiness
  • Loading branch information
leseb committed May 10, 2016
2 parents f748f86 + 6ae2454 commit 7a9a623
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions group_vars/all.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -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 }}" }


Expand Down
2 changes: 1 addition & 1 deletion install-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion roles/ceph-common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}" }


Expand Down

0 comments on commit 7a9a623

Please sign in to comment.