Commit 76491f8a authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

first commit

parents
Pipeline #730 skipped
# The name $name should match a wallet file object of the form
# ssh-rsa/gitlab-$name.
#
# Example:
# gitlab_deploykey { 'adamskey':
# }
#
# will download the SSH private key wallet object 'ssh-rsa/gitlab-adamskey' into
# /root/.ssh/id_rsa and the SSH public key stored in the files/
define gitlab_deploykey (
$key_type = 'rsa',
) {
# Get the code.stanford.edu (GitLab) private key from wallet and put it
# in the ssh config directory.
wallet { "ssh-${key_type}/${name}":
file => '/root/.ssh/id_rsa',
mode => '0600',
}
}
{
"name": "puppet_public-gitlab_deploykeys",
"version": "1",
"author": "Adam H. Lewenberg <adamhl@stanford.edu>",
"summary": "Get a GitLab deployment key",
"source": "https://code.stanford.edu/puppet_public/gitlab_deploykeys.git",
"issues_url": null,
"license": "MIT",
"dependencies": [
{ "name": "puppet_public/wallet", "version_requirement": ">= 1" }
]
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment