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

first commit

parents
Loading
Loading
Loading
Loading
Loading

manifests/init.pp

0 → 100644
+23 −0
Original line number Diff line number Diff line
# 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',
  }


}

metadata.json

0 → 100644
+12 −0
Original line number Diff line number Diff line
{
    "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" }
    ]
}