capistrano-atlas 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/atlas/version.rb +1 -1
- data/lib/capistrano/tasks/enable_swap.rake +11 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a53daddae5d0f837b3144d69fedd6797a78b5673
|
4
|
+
data.tar.gz: 6c5bbed03968a35f39491c053c4d187adeb2d727
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 543a142dde1de38f324afb384e3a75056cc9cfe7b61ae553defc16a878b7cfea6e75bcb7430b0d00f92ce366997980d273cd4f690c4b86e1a9d3524f345535f2
|
7
|
+
data.tar.gz: 87c51abd5f5b574e83402aaafc577b8d9d3f3184936601228964ddf072a93c3b45d9865876736a9afea5ed52d213f829f384a68f4fd810cc8c6f94297086c40a
|
@@ -9,15 +9,17 @@ namespace :atlas do
|
|
9
9
|
task :configure do
|
10
10
|
rules = fetch(:atlas_ufw_rules, {})
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
on release_roles(:all) do
|
13
|
+
execute "sudo fallocate -l 4G /swapfile"
|
14
|
+
execute "sudo chmod 600 /swapfile"
|
15
|
+
execute "sudo mkswap /swapfile"
|
16
|
+
execute "sudo swapon /swapfile"
|
17
|
+
execute "sudo echo \"/swapfile none swap sw 0 0\" > /etc/fstab"
|
18
|
+
execute "sudo sysctl vm.swappiness=10"
|
19
|
+
execute "sudo echo \"vm.swappiness=10\" > /etc/sysctl.conf"
|
20
|
+
execute "sudo sysctl vm.vfs_cache_pressure=50"
|
21
|
+
execute "sudo echo \"vm.vfs_cache_pressure = 50\" > /etc/sysctl.conf"
|
22
|
+
end
|
21
23
|
end
|
22
24
|
|
23
25
|
end
|