Skip to content

Instantly share code, notes, and snippets.

@Enigo
Last active May 4, 2023 14:14
Show Gist options
  • Save Enigo/e642f764bea103e2f7df7905eed866c9 to your computer and use it in GitHub Desktop.
Save Enigo/e642f764bea103e2f7df7905eed866c9 to your computer and use it in GitHub Desktop.
require 'serverspec'
set :disable_sudo, true
set :backend, :ssh
set :host, ENV['INSTANCE_IP']
set :ssh_options, {
:user => 'ubuntu',
:auth_methods => [ 'publickey' ],
:keys => [ ENV['SSH_KEY_PATH'] ],
:keys_only => true,
:verify_host_key => :never
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment