Class: Capistrano::Vault::SSH

Inherits:
Plugin
  • Object
show all
Defined in:
lib/capistrano/vault/ssh.rb

Constant Summary collapse

KEY_NAME =
"capistrano-vault-signed"

Instance Method Summary collapse

Instance Method Details

#define_tasksObject



19
20
21
22
23
24
25
26
27
# File 'lib/capistrano/vault/ssh.rb', line 19

def define_tasks
  task :configure_vault_ssh_options do
    configure_vault_ssh_options
  end

  task :signature_ssh_public_key do
    signature_ssh_public_key
  end
end

#register_hooksObject



12
13
14
15
16
17
# File 'lib/capistrano/vault/ssh.rb', line 12

def register_hooks
  stages.each do |stage|
    after stage, 'configure_vault_ssh_options'
    after stage, 'signature_ssh_public_key'
  end
end

#set_defaultsObject



6
7
8
9
10
# File 'lib/capistrano/vault/ssh.rb', line 6

def set_defaults
  set_if_empty :vault_address, ENV['VAULT_ADDR']
  set_if_empty :vault_ssh_role, 'deploy'
  set_if_empty :vault_ssh_mount_path, 'ssh-client-signer'
end