Samuel Sampaio

samukasmk

9,166 downloads

8,796 latest version

1.9 quality score

Version information

  • 0.2.7 (latest)
  • 0.2.2
  • 0.1.2
  • 0.1.0
released Mar 21st 2014

Start using this module

Documentation

samukasmk/deploy_keys — version 0.2.7 Mar 21st 2014

samukasmk-deploy_keys

Puppet module to manage deploy keys, for use example in (git clone)/(vcsrepo) actions.

Goal: Store your private keys for secure deploys, avoiding unsafe ssh connections with user/password. ##Example 1: Basic Usage By default your keys will be stored in schema: "/etc/puppet/.deploy_keys/<username>/<my_deploy_key>"

class { "deploy_keys":
  key_name     => "my_deploy_key",
  source       => "puppet:///files/.../my_deploy_key",
  user         => "root"
}

##Example 2: Defining different base folder in same schema If you wish, is possible store your keys in other folder, but in the same schema: "/path/to/my/other/folder/<username>/<my_deploy_key>"

class { "deploy_keys":
  key_name     => "my_deploy_key",
  source       => "puppet:///files/.../my_deploy_key",
  user         => "root",
  base_folder  => "/path/to/my/other/folder",
}

##Example 3: Define the specific folder to key To the final example, your keys will be stored simply in "/root/.ssh/id_rsa"

class { "deploy_keys":
  key_name     => "my_deploy_key",
  source       => "puppet:///files/.../my_deploy_key",
  user         => "root",
  key_dest     => "/root/.ssh/id_rsa"
}

##Please contribute with us:

  • creating your pull request: https://github.com/samukasmk/puppet-deploy_keys.git