diff options
author | mail_redacted_for_web | 2015-12-07 07:55:32 -0800 |
---|---|---|
committer | mail_redacted_for_web | 2015-12-18 09:22:44 -0800 |
commit | cc34e25fd54e60caf744130d90c14f8d839c7823 (patch) | |
tree | af3f767b92ac48b17795fcadfe70e852a658b0df /site/profile/manifests/puppetmaster.pp | |
parent | 1b0f63be83464dc7bdc9561b3d5b3a937a4dfb39 (diff) | |
download | control-repo-template-cc34e25fd54e60caf744130d90c14f8d839c7823.tar.bz2 |
Final steps to make Code Manager work
- Moved ssh key generation and git deploy key out of the puppetmaster
profile and into zack_r10k and code_manager
- Swapped code manager into the all_in_one role
- Made a 2015.2 all_in_one role if users prefer to use it
- Conditionally move all existing code out of environmentpath
to allow file sync to sync files
- Update the README to compliment the new puppet code
Diffstat (limited to 'site/profile/manifests/puppetmaster.pp')
-rw-r--r-- | site/profile/manifests/puppetmaster.pp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/site/profile/manifests/puppetmaster.pp b/site/profile/manifests/puppetmaster.pp index d6a657f..28b3bdf 100644 --- a/site/profile/manifests/puppetmaster.pp +++ b/site/profile/manifests/puppetmaster.pp @@ -13,33 +13,6 @@ class profile::puppetmaster { notify => Service['pe-puppetserver'], } - #BEGIN - Generate an SSH key for r10k to connect to git - $r10k_ssh_key_file = '/root/.ssh/r10k_rsa' - exec { 'create r10k ssh key' : - command => "/usr/bin/ssh-keygen -t rsa -b 2048 -C 'r10k' -f ${r10k_ssh_key_file} -q -N ''", - creates => $r10k_ssh_key_file, - } - #END - Generate an SSH key for r10k to connect to git - - #BEGIN - Add deploy key and webook to git management system - $git_management_system = hiera('git_management_system', undef) - $gms_api_token = hiera('gms_api_token', undef) - - if !empty($gms_api_token) { - - git_deploy_key { "add_deploy_key_to_puppet_control-${::fqdn}": - ensure => present, - name => $::fqdn, - path => "${r10k_ssh_key_file}.pub", - token => $gms_api_token, - project_name => 'puppet/control-repo', - server_url => hiera('gms_server_url'), - provider => $git_management_system, - } - - } - #END - Add deploy key and webhook to git management system - #Lay down update-classes.sh for use in r10k postrun_command #This is configured via the pe_r10k::postrun key in hiera file { '/usr/local/bin/update-classes.sh' : |