dlss-capistrano 5.0.4 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/dlss-capistrano.gemspec +2 -1
- data/lib/dlss/capistrano/tasks/control_master.rake +1 -1
- data/lib/dlss/capistrano/tasks/deployed_branch.rake +1 -1
- data/lib/dlss/capistrano/tasks/remote_execute.rake +1 -1
- data/lib/dlss/capistrano/tasks/ssh_check.rake +1 -1
- data/lib/dlss/capistrano.rb +1 -10
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f69b0b30f58f3313e59a5fc7cf0d510d5c95d99fe5e077a772588e6ffdccbbd9
|
4
|
+
data.tar.gz: e0020c24765ddd757ee839371f962325900b147aa69a399c7ad97eb60b7babb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e14e482febdd209f99802e0b4b0ac6323825da0312c6e50c21e97a51746fe651c8825691a9b0d86576b5239c7ba8328113c9df18565cc82a542d5cb158e0ba4
|
7
|
+
data.tar.gz: ddbc21daf2f1e259764d1257a741a9fb8208e8731e693c40daf9d15c49dfb6747615ce1161ce98f34e7757ae7eacd7cce5c09c3ccfde4c9c81b8cb654f5ad837
|
data/README.md
CHANGED
@@ -4,7 +4,9 @@
|
|
4
4
|
|
5
5
|
This gem provides Capistrano deployment tasks used by Stanford Libraries' Digital Library Systems and Services group.
|
6
6
|
|
7
|
-
## Necessary
|
7
|
+
## Necessary Setup
|
8
|
+
|
9
|
+
To start, we recommend an SSH configuration like the one described in the [DeveloperPlaybook](https://github.com/sul-dlss/DeveloperPlaybook/blob/main/best-practices/ssh_configuration.md), since it has sensible defaults for Kerberos authentication and multi-factor authentication (using `ProxyJump` and `ControlMaster`, etc.).
|
8
10
|
|
9
11
|
To use controlmaster, you need to opt-in by setting the environment variable `USE_CAPISTRANO_CONTROLMASTER=true` (in e.g. your `~/.zshenv` file or similar for your particular shell).
|
10
12
|
|
data/dlss-capistrano.gemspec
CHANGED
@@ -4,7 +4,7 @@ $:.unshift lib unless $:.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "dlss-capistrano"
|
7
|
-
s.version = '5.
|
7
|
+
s.version = '5.1.1'
|
8
8
|
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.authors = ["Chris Beer", 'Mike Giarlo']
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency "capistrano", "~> 3.0"
|
22
22
|
s.add_dependency "capistrano-bundle_audit", ">= 0.3.0"
|
23
23
|
s.add_dependency "capistrano-shared_configs"
|
24
|
+
s.add_dependency "capistrano-one_time_key", ">= 0.2.0"
|
24
25
|
# support for MacOS 14.4+ usage of ed25519 SSH keys
|
25
26
|
s.add_dependency "ed25519"
|
26
27
|
s.add_dependency "bcrypt_pbkdf"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
desc 'display the deployed branch and commit'
|
2
|
-
task deployed_branch: 'controlmaster:setup' do
|
2
|
+
task deployed_branch: ['controlmaster:setup', 'otk:generate'] do
|
3
3
|
# see https://github.com/mattbrictson/airbrussh/tree/v1.5.2?tab=readme-ov-file#capistrano-34x
|
4
4
|
Airbrussh.configure do |config|
|
5
5
|
config.truncate = false
|
@@ -10,7 +10,7 @@ namespace :load do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
desc "execute command on all servers"
|
13
|
-
task :remote_execute, [:command] => 'controlmaster:setup' do |_task, args|
|
13
|
+
task :remote_execute, [:command] => ['controlmaster:setup', 'otk:generate'] do |_task, args|
|
14
14
|
raise ArgumentError, 'remote_execute task requires an argument' unless args[:command]
|
15
15
|
|
16
16
|
# see https://github.com/mattbrictson/airbrussh/tree/v1.5.2?tab=readme-ov-file#capistrano-34x
|
data/lib/dlss/capistrano.rb
CHANGED
@@ -1,14 +1,5 @@
|
|
1
|
+
require 'capistrano/one_time_key'
|
1
2
|
require 'capistrano/bundle_audit'
|
2
3
|
require 'capistrano/shared_configs'
|
3
4
|
|
4
|
-
# NOTE: This is only here so we can test this task against any host without needing to touch config/deploy/*.rb
|
5
|
-
#
|
6
|
-
# Instead of generating a one-time key, add legit gssapi authN via `net-ssh-krb` gem (thanks again, cbeer!)
|
7
|
-
module Capistrano
|
8
|
-
module OneTimeKey
|
9
|
-
def self.generate_one_time_key!
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
5
|
Dir.glob("#{__dir__}/capistrano/tasks/*.rake").each { |r| import r }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dlss-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-06-
|
12
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -53,6 +53,20 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: capistrano-one_time_key
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 0.2.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.2.0
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
71
|
name: ed25519
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|