Skip to content
Generate a key and wrapper for the deploy resource's ssh_wrapper attribute
Branch: master
Clone or download
Pull request Compare This branch is 12 commits behind tstat:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
providers
resources
templates/default
CHANGELOG.md
README.md
metadata.rb

README.md

Description

A nice LWRP to create a git wrapper and ssh_key file for use with the deploy resources ssh_wrapper attribute.

Requirements

You must have git installed :)

Attributes

  • name: The name attribute, to prepended to the ssh key and the wrapper
  • owner: to specify the owner of the generated files
  • group: to specify the group of the generated files
  • ssh_key_dir: the directory that the ssh key will be placed in, default => ~/.ssh
  • ssh_wrapper_dir: the directory that the wrapper will be placed in, default => ~/
  • ssh_key_data: the private ssh key

Usage

git_ssh_wrapper "example" do
  user 'custer'
  group 'custer'
  ssh_key_data data_bag['deploy_key']
end
You can’t perform that action at this time.