deploy_mate 0.25 → 0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/deploy-mate.gemspec +2 -2
- data/lib/capistrano/configs/security_sources_list.erb +4 -0
- data/lib/capistrano/configs/security_upgrades.erb +1 -0
- data/lib/capistrano/tasks/machine.rake +11 -8
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 768e0e7e64a77e1554ddab368e4a8e98de31c483
|
4
|
+
data.tar.gz: 7e5ca262e476219e9952d44fe835601ec6ca606f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86279a148fed38db0ed1718a090219358a874852cb862be5c4c56a996a4feb218ceb25fb8a5a05da8ac4297b8d3b84d5568f44733125144cb99f10124af70f81
|
7
|
+
data.tar.gz: bf893c4d363d929ca0a6c3c5c82fe7d7767f59a28e7b5c68ec60bcc6385a8f7fbde2575d01f4f1959be5102a00ee095262f0e57723dc5cd979ee63a5d97e1398
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
* **0.26 (2016-05-25)**: Swapped `unattended-upgrades` for `cron-apt` to remove manual labor
|
1
2
|
* **0.25 (2016-05-23)**: Support multiple stages in YAML-file.
|
2
3
|
* **0.2 (2016-05-18)**: Configuration moved to YAML-file. SSH-Keys optional. Config-templates overwritable locally.
|
3
4
|
* **0.18.4 (2016-03-22)**: Added mandatory task to install `ssh_key`s
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# The sturdy d'ploy-mate [![Build Status](https://travis-ci.org/
|
1
|
+
# The sturdy d'ploy-mate [![Build Status](https://travis-ci.org/hanseventures/deploy-mate.svg?branch=master)](https://travis-ci.org/hanseventures/deploy-mate) [![Code Climate](https://codeclimate.com/repos/57440ed420a311008900761d/badges/68688d96d13732d3ef41/gpa.svg)](https://codeclimate.com/repos/57440ed420a311008900761d/feed)
|
2
2
|
<img src="http://hanseventures.s3.amazonaws.com/github/pirate-redbeard_1024.png" width="300" />
|
3
3
|
> T'arrust me, bucko. I can do it.
|
4
4
|
|
data/deploy-mate.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "deploy_mate"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.26"
|
4
4
|
|
5
5
|
s.authors = ["Tim Adler", "Marcus Geißler", "Johannes Strampe"]
|
6
|
-
s.date = '2016-05-
|
6
|
+
s.date = '2016-05-25'
|
7
7
|
s.description = 'This is how we deploy around here.'
|
8
8
|
s.summary = s.description
|
9
9
|
s.email = 'development (at) hanseventures (dot) com'
|
@@ -0,0 +1 @@
|
|
1
|
+
upgrade -y -o APT::Get::Show-Upgraded=true -o quiet=1 -o APT::Get::List-Cleanup=false -o Dir::Etc::SourceList=/etc/apt/security.sources.list -o Dir::Etc::SourceParts="/dev/null"
|
@@ -10,7 +10,7 @@ namespace :machine do
|
|
10
10
|
invoke "machine:install:ssh_keys"
|
11
11
|
invoke "machine:install:htop"
|
12
12
|
invoke "machine:install:language_pack_de"
|
13
|
-
invoke "machine:install:
|
13
|
+
invoke "machine:install:cron_apt"
|
14
14
|
invoke "machine:install:ntp"
|
15
15
|
invoke "machine:install:git"
|
16
16
|
invoke "machine:install:nginx"
|
@@ -58,9 +58,6 @@ namespace :machine do
|
|
58
58
|
task :set_defaults do
|
59
59
|
on roles(:app) do
|
60
60
|
execute_script("set_defaults.sh", fetch(:rvm_ruby_version))
|
61
|
-
warn "--------------------------------------------------------------------------------------"
|
62
|
-
warn "Run 'dpkg-reconfigure -plow unattended-upgrades' to enable automatic security updates!"
|
63
|
-
warn "--------------------------------------------------------------------------------------"
|
64
61
|
end
|
65
62
|
end
|
66
63
|
|
@@ -177,11 +174,17 @@ namespace :machine do
|
|
177
174
|
end
|
178
175
|
end
|
179
176
|
|
180
|
-
task :
|
177
|
+
task :cron_apt do
|
181
178
|
on roles(:app) do
|
182
|
-
unless
|
183
|
-
|
184
|
-
|
179
|
+
apt_get_install("cron-apt") unless is_package_installed?("cron-apt")
|
180
|
+
|
181
|
+
template "security_sources_list.erb", "/tmp/security_sources_list"
|
182
|
+
sudo "mv /tmp/security_sources_list /etc/apt/security.sources.list"
|
183
|
+
sudo "chmod 644 /etc/apt/security.sources.list"
|
184
|
+
|
185
|
+
template "security_upgrades.erb", "/tmp/security_upgrades"
|
186
|
+
sudo "mv /tmp/security_upgrades /etc/cron-apt/action.d/5-security"
|
187
|
+
sudo "chmod 644 /etc/cron-apt/action.d/5-security"
|
185
188
|
end
|
186
189
|
end
|
187
190
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_mate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.26'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Adler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-05-
|
13
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -108,6 +108,8 @@ files:
|
|
108
108
|
- lib/capistrano/configs/nginx_app.conf.erb
|
109
109
|
- lib/capistrano/configs/nginx_base.conf.erb
|
110
110
|
- lib/capistrano/configs/puma.rb.erb
|
111
|
+
- lib/capistrano/configs/security_sources_list.erb
|
112
|
+
- lib/capistrano/configs/security_upgrades.erb
|
111
113
|
- lib/capistrano/configs/unicorn.rb.erb
|
112
114
|
- lib/capistrano/configs/upstart.conf.erb
|
113
115
|
- lib/capistrano/deploy_mate_capfile.rb
|