File tree 2 files changed +1
-8
lines changed
test/fixtures/cookbooks/jenkins_slave/recipes
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 18
18
19
19
depends 'runit' , '>= 1.7'
20
20
depends 'dpkg_autostart'
21
-
Original file line number Diff line number Diff line change 27
27
require 'openssl'
28
28
require 'net/ssh'
29
29
key = OpenSSL ::PKey ::RSA . new ( jenkins_user_data [ 'private_key' ] )
30
- private_key = key . to_pem
31
- public_key = "#{ key . ssh_type } #{ [ key . to_blob ] . pack ( 'm0' ) } "
30
+ public_key = "#{ key . ssh_type } #{ [ key . to_blob ] . pack ( 'm0' ) } "
32
31
33
32
user 'jenkins-ssh-key' do
34
33
home '/home/jenkins-ssh-key'
52
51
#########################################################################
53
52
# CREDENTIALS
54
53
#########################################################################
55
- credentials = jenkins_private_key_credentials 'jenkins-ssh-key' do
56
- id '38537014-ec66-49b5-aff2-aed1c19e2989'
57
- private_key private_key
58
- end
59
-
60
54
jenkins_password_credentials 'jenkins-ssh-password' do
61
55
id 'jenkins-ssh-password'
62
56
password jenkins_user_data [ 'password_clear' ]
You can’t perform that action at this time.
0 commit comments