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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39143f216a91dfe66390f1ae31a1f8b93d180cc03a5f548dd0d7a5e6a3bb7c24
4
- data.tar.gz: 9ae2c9d0e0c5dc7dee168e5078d2a6fcbeef2b2346b28242fa486b4ccc3114cf
3
+ metadata.gz: f69b0b30f58f3313e59a5fc7cf0d510d5c95d99fe5e077a772588e6ffdccbbd9
4
+ data.tar.gz: e0020c24765ddd757ee839371f962325900b147aa69a399c7ad97eb60b7babb8
5
5
  SHA512:
6
- metadata.gz: ca176055c581b300a67a0891f73a56d26f5617fdb01fd5f90b9bc605dbe4418b8b24e4e26b3e8122dbd97946567d89a967e81adc130823bce1ea6cb5beb06431
7
- data.tar.gz: 858e89f34ed203ec856dd8edda786371f90a13c328e9aeb997516482c5cf6d48329ce3044dc8b817355d9cd0e0cf8001fe581f051b85d3b82f65b8212cc4221d
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 setup
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
 
@@ -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.0.4'
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"
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  # Integrate hook into Capistrano
14
14
  namespace :deploy do
15
- before :starting, :setup_controlmaster do
15
+ before :generate_otk, :setup_controlmaster do
16
16
  invoke 'controlmaster:setup'
17
17
  end
18
18
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  desc "check ssh connections to all app servers"
2
- task ssh_check: 'controlmaster:setup' do
2
+ task ssh_check: ['controlmaster:setup', 'otk:generate'] do
3
3
  on roles(:app), in: :sequence do
4
4
  execute
5
5
  end
@@ -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.0.4
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-17 00:00:00.000000000 Z
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